diff --git a/.github/workflows/add-to-project-dependabot.yml b/.github/workflows/add-to-project-dependabot.yml new file mode 100644 index 00000000..be934dae --- /dev/null +++ b/.github/workflows/add-to-project-dependabot.yml @@ -0,0 +1,16 @@ +name: "Project triage: Dependabot" + +on: + pull_request: + types: [opened] + +jobs: + add-to-project-dependabot: + 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]' + 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 }} diff --git a/.github/workflows/add-to-project-issues.yml b/.github/workflows/add-to-project-issues.yml new file mode 100644 index 00000000..c72696ff --- /dev/null +++ b/.github/workflows/add-to-project-issues.yml @@ -0,0 +1,14 @@ +name: "Project triage: Issues" + +on: + issues: + types: [opened, transferred] + +jobs: + add-to-project-issues: + runs-on: ubuntu-latest + 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 }}