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'] + }) diff --git a/RESPONSIBILITIES.md b/RESPONSIBILITIES.md index 51f718da875..4e772ee3fe0 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.