Skip to content

Commit

Permalink
Create add_staff_label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp authored Jul 9, 2024
1 parent 55d53f2 commit 9efe167
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/add_staff_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Move new issues to inbox

on:
issues:
types: [opened, reopened]
pull_request:

jobs:
add-staff-label:
if: ${{ github.repository == 'primer/react' }}
runs-on: ubuntu-latest
env:
ISSUE_URL: ${{ github.event.issue.html_url }}
steps:
- name: Check author
id: check-author
run: |
echo ${{ github.event.issue }}
- name: Add label
if: ${{ steps.check-author.outputs.staff == 'true' }}
run: |
gh issue edit $ISSUE_URL --add-label staff

0 comments on commit 9efe167

Please sign in to comment.