Skip to content

Commit

Permalink
Merge pull request #239 from primer/lcw/createAddToInboxWorkflow
Browse files Browse the repository at this point in the history
Create workflow to add primer/behaviors issues to the Primer teams backlog for triage
  • Loading branch information
camertron authored Oct 26, 2023
2 parents 0af3d6a + 60cc137 commit 6ed742f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/add-to-inbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Add to Inbox 📥
on:
issues:
types: [opened, reopened]

jobs:
add-to-inbox:
if: ${{ github.repository == 'primer/behaviors' }}
runs-on: ubuntu-latest
env:
ISSUE_URL: ${{ github.event.issue.html_url }}
PROJECT_ID: 4503
steps:
- id: get-primer-access-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_ID }}
private-key: ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_PRIVATE_KEY }}
- name: Add labels to issue
run: |
gh issue edit $ISSUE_URL --add-label 'rails,react'
env:
GH_TOKEN: ${{ steps.get-primer-access-token.outputs.token }}
- id: get-github-access-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_ID_FOR_GITHUB }}
private-key: ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_PRIVATE_KEY_FOR_GITHUB }}
owner: github
- name: Add issue to project
run: gh project item-add $PROJECT_ID --url $ISSUE_URL --owner github
env:
GH_TOKEN: ${{ steps.get-github-access-token.outputs.token }}

0 comments on commit 6ed742f

Please sign in to comment.