Skip to content

Commit

Permalink
Feat: auto-add dependency PRs to project (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Jun 17, 2024
2 parents 4126d9a + 1c62c40 commit 9299657
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/add-to-project-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Project triage: dependencies"

on:
pull_request:
types: [opened]

jobs:
add-to-project-dependencies:
runs-on: ubuntu-latest
# see https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events
if: github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]'
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/cal-itp/projects/${{ secrets.GH_PROJECT }}
github-token: ${{ secrets.GH_PROJECTS_TOKEN }}

- uses: EndBug/project-fields@v2
with:
operation: set
fields: Effort,Status
values: 1,In review
project_url: https://github.com/orgs/cal-itp/projects/${{ secrets.GH_PROJECT }}
github_token: ${{ secrets.GH_PROJECTS_TOKEN }}

0 comments on commit 9299657

Please sign in to comment.