From 6cd24e6da7e713080be2db657c00a51d8e946984 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Mon, 15 Jul 2024 20:27:32 +0000 Subject: [PATCH] feat(ci): add dependency PRs to project, set status/effort --- .../workflows/add-to-project-dependencies.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/add-to-project-dependencies.yml diff --git a/.github/workflows/add-to-project-dependencies.yml b/.github/workflows/add-to-project-dependencies.yml new file mode 100644 index 00000000..351069f9 --- /dev/null +++ b/.github/workflows/add-to-project-dependencies.yml @@ -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 }}