From 3e2346193858e3bf6bf1e3375b91087088996521 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Thu, 1 Dec 2022 11:30:12 -0600 Subject: [PATCH 1/3] Add github workflow to add 'untriaged' label during issue lifecycle events Signed-off-by: Peter Nied Signed-off-by: Peter Nied --- .github/workflows/add-untriaged.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/add-untriaged.yml diff --git a/.github/workflows/add-untriaged.yml b/.github/workflows/add-untriaged.yml new file mode 100644 index 00000000000..9dcc7020d24 --- /dev/null +++ b/.github/workflows/add-untriaged.yml @@ -0,0 +1,19 @@ +name: Apply 'untriaged' label during issue lifecycle + +on: + issues: + types: [opened, reopened, transferred] + +jobs: + apply-label: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['untriaged'] + }) From ff309a3c555bc3c7141d142b5e705016cc69e577 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Tue, 3 Jan 2023 15:46:53 -0600 Subject: [PATCH 2/3] Update reposiblities to include section about automatic labeling Signed-off-by: Peter Nied --- RESPONSIBILITIES.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RESPONSIBILITIES.md b/RESPONSIBILITIES.md index 51f718da875..2fc4b7788f7 100644 --- a/RESPONSIBILITIES.md +++ b/RESPONSIBILITIES.md @@ -5,6 +5,7 @@ - [Prioritize Security](#prioritize-security) - [Review Pull Requests](#review-pull-requests) - [Triage Open Issues](#triage-open-issues) + - [Automatically Label Issues](#automatically-label-issues) - [Be Responsive](#be-responsive) - [Maintain Overall Health of the Repo](#maintain-overall-health-of-the-repo) - [Keep Dependencies up to Date](#keep-dependencies-up-to-date) @@ -57,6 +58,10 @@ All repositories in this organization have a standard set of labels, including ` Use labels to target an issue or a PR for a given release, add `help wanted` to good issues for new community members, and `blocker` for issues that scare you or need immediate attention. Request for more information from a submitter if an issue is not clear. Create new labels as needed by the project. +#### Automatically Label Issues + +There are many tools available in GitHub for controlling labels on issues and pull requests. Use standard issue templates in the [./.github/ISSUE_TEMPLATE](./.github/ISSUE_TEMPLATE) directory to apply appropriate labels such as `bug` and `untriaged`. Repositories can choose to use GitHub actions such as [add-untriaged.yml](.github\workflows\add-untriaged.yml) to apply labels automatically. + ### Be Responsive Respond to enhancement requests, and forum posts. Allocate time to reviewing and commenting on issues and conversations as they come in. From 9e1e124d525a0a7dbba71851c2ba656645bae489 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Wed, 4 Jan 2023 10:23:21 -0600 Subject: [PATCH 3/3] Fix link Signed-off-by: Peter Nied Signed-off-by: Peter Nied --- RESPONSIBILITIES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RESPONSIBILITIES.md b/RESPONSIBILITIES.md index 2fc4b7788f7..4e772ee3fe0 100644 --- a/RESPONSIBILITIES.md +++ b/RESPONSIBILITIES.md @@ -60,7 +60,7 @@ Use labels to target an issue or a PR for a given release, add `help wanted` to #### Automatically Label Issues -There are many tools available in GitHub for controlling labels on issues and pull requests. Use standard issue templates in the [./.github/ISSUE_TEMPLATE](./.github/ISSUE_TEMPLATE) directory to apply appropriate labels such as `bug` and `untriaged`. Repositories can choose to use GitHub actions such as [add-untriaged.yml](.github\workflows\add-untriaged.yml) to apply labels automatically. +There are many tools available in GitHub for controlling labels on issues and pull requests. Use standard issue templates in the [./.github/ISSUE_TEMPLATE](./.github/ISSUE_TEMPLATE) directory to apply appropriate labels such as `bug` and `untriaged`. Repositories can choose to use GitHub actions such as [add-untriaged.yml](./.github/workflows/add-untriaged.yml) to apply labels automatically. ### Be Responsive