Skip to content

Commit

Permalink
feat(ci): add dependency PRs to project, set status/effort
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jul 15, 2024
1 parent 48eba62 commit 6cd24e6
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: Depedencies"

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 6cd24e6

Please sign in to comment.