Skip to content

Commit

Permalink
feat(ci): 🔖 add needs-refinement label to new issues
Browse files Browse the repository at this point in the history
the Penumbra team meets regularly to refine and discuss our backlog of
tasks. this adds a workflow so that newly opened issues are accordingly
labeled `needs-refinement`, so that they can be easily filtered in our
refinement meeting.

this workflow is heavily inspired by the example workflow shown here:
https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues
  • Loading branch information
cratelyn authored and conorsch committed Apr 12, 2024
1 parent f0dba4c commit 24bcfbd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/new-issues-labeled-needs-refinement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Adds the `needs-refinement` label to newly opened issues.
name: New issues need refinement
on:
issues:
types:
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
# Separate multiple labels with commas if other labels are ever
# needed e.g., `needs-refinement,foo`.
LABELS: needs-refinement

0 comments on commit 24bcfbd

Please sign in to comment.