diff --git a/.github/workflows/add-to-project-dependabot.yml b/.github/workflows/add-to-project-dependencies.yml similarity index 50% rename from .github/workflows/add-to-project-dependabot.yml rename to .github/workflows/add-to-project-dependencies.yml index be934dae..0e153a88 100644 --- a/.github/workflows/add-to-project-dependabot.yml +++ b/.github/workflows/add-to-project-dependencies.yml @@ -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 }}