Skip to content

Commit

Permalink
Create auto-add-to-project.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
isabensusan committed Mar 19, 2024
1 parent ce78717 commit 46b9e85
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/auto-add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Adds all issues opened in the /api repo to the Team Dashboard

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.OS_GITHUB_APP_ID }}
private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }}

- name: add issue to team dashboard
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/open-sauced/projects/25
github-token: ${{ steps.generate_token.outputs.token }}

0 comments on commit 46b9e85

Please sign in to comment.