Skip to content

Commit

Permalink
Merge pull request #64 from uswds/al-add-label-workflow
Browse files Browse the repository at this point in the history
USWDS-Compile: Create add-issue-labels workflow
  • Loading branch information
mejiaj authored Jul 5, 2023
2 parents 223fe67 + d1b13df commit f4aa87e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug Report 🐞
description: Report a bug and help USWDS Compile improve.
title: "USWDS-Compile - Bug: [YOUR TITLE]"
labels: ['Type: Bug','Status: Triage','Needs: Confirmation']
labels: ['Type: Bug','Needs: Confirmation']
body:
- type: textarea
id: problem
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Feature Request 💡
description: Suggest a new idea for USWDS Compile.
title: 'USWDS-Compile - Feature: [YOUR TITLE]'
labels: ['Type: Feature Request','Status: Triage']
labels: ['Type: Feature Request']
body:
- type: markdown
attributes:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/add-issue-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Label issues
on:
issues:
types:
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
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: ["Status: Triage"]
})

0 comments on commit f4aa87e

Please sign in to comment.