Skip to content

Commit

Permalink
Add automatic labeling section with template examples, and a github w…
Browse files Browse the repository at this point in the history
…orkflow to add 'untriaged' label on new issues (#111)

* Add github workflow to add 'untriaged' label during issue lifecycle events
* Update reposiblities to include section about automatic labeling

Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
peternied committed Jan 11, 2023
1 parent b8948f9 commit 51fb6fa
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/add-untriaged.yml
Original file line number Diff line number Diff line change
@@ -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']
})
5 changes: 5 additions & 0 deletions RESPONSIBILITIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 51fb6fa

Please sign in to comment.