From 4c12b8bcd965e31b613c89585f21272c981b7820 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 24 May 2022 00:53:10 +0000 Subject: [PATCH 1/2] feat(github): workflow adds issues to project --- .github/workflows/add-to-project-issues.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/add-to-project-issues.yml 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 }} From 6e38829a1e4f40212ff0b07bd29e0ce0a5797fd5 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 24 May 2022 00:53:39 +0000 Subject: [PATCH 2/2] feat(github): workflow adds dependabot PRs to project --- .github/workflows/add-to-project-dependabot.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/add-to-project-dependabot.yml 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 }}