Skip to content

Commit

Permalink
Merge pull request #278 from uswds/al-add-label-workflow
Browse files Browse the repository at this point in the history
Public-sans: Create add-issue-labels workflow
  • Loading branch information
mejiaj authored Jul 5, 2023
2 parents 3f004a5 + 2d9a13d commit f8e38ba
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 Public Sans improve.
title: "Public Sans - 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 Public Sans.
title: 'Public Sans - 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 f8e38ba

Please sign in to comment.