From 0bca79b1c2998e5ecb6fa67931b657c86ed28629 Mon Sep 17 00:00:00 2001 From: Jason Fry Date: Wed, 7 Dec 2022 18:13:43 -0500 Subject: [PATCH] Add TODOs https://github.com/actions/labeler/issues/100 --- src/labeler.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/labeler.ts b/src/labeler.ts index 59cf23f32..f3a693a08 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -22,6 +22,16 @@ export async function run() { console.log("Could not get pull request number from context, exiting"); return; } + /* TODO + * + * [Assigns labels based on branch names](https://github.com/actions/labeler/pull/203/files) + * + * - [ ] get list of provided actors + * - [ ] if list is nonempty, get actor https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts#L17 + * - [ ] find actor in list of provided actors + * - [ ] if found, add label(s) + * - [ ] if not found, do nothing + * */ const client: ClientType = github.getOctokit(token);