Skip to content

Commit

Permalink
CI: add pre-commit PRs to project, assign initial effort/status (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Jun 17, 2024
2 parents b32d4de + 626df66 commit 43079b2
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
name: "Project triage: Dependabot"
name: "Project triage: dependencies"

on:
pull_request:
types: [opened]

jobs:
add-to-project-dependabot:
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]'
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 43079b2

Please sign in to comment.