From da52468d9b9467dc00cbd2a1142967c01918f667 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Tue, 23 Jan 2024 17:55:25 +0100 Subject: [PATCH] chore: common .github files (#151) --- .github/workflows/add-issue-to-project.yml | 27 ++++++++++++++++++++++ .github/workflows/add-pr-to-project.yml | 18 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/add-issue-to-project.yml create mode 100644 .github/workflows/add-pr-to-project.yml diff --git a/.github/workflows/add-issue-to-project.yml b/.github/workflows/add-issue-to-project.yml new file mode 100644 index 0000000..7d2b234 --- /dev/null +++ b/.github/workflows/add-issue-to-project.yml @@ -0,0 +1,27 @@ +name: add issues to project + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: add issue to project + runs-on: ubuntu-latest + steps: + - name: register bug/needs-triage with bug tracker project + uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/varfish-org/projects/3 + github-token: ${{ secrets.BOT_TOKEN }} + labeled: bug, needs-triage + label-operator: OR + + - name: register bug/enhancement issues with release planning project + uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/varfish-org/projects/2 + labeled: bug, needs-triage, enhancement + label-operator: OR + github-token: ${{ secrets.BOT_TOKEN }} diff --git a/.github/workflows/add-pr-to-project.yml b/.github/workflows/add-pr-to-project.yml new file mode 100644 index 0000000..22cc9fc --- /dev/null +++ b/.github/workflows/add-pr-to-project.yml @@ -0,0 +1,18 @@ +name: add needs-review pull requests to projects + +on: + pull_request: + types: + - labeled + +jobs: + add-to-project: + name: Add pull request to project + runs-on: ubuntu-latest + steps: + - name: register pull requests with release planning project + uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/varfish-org/projects/2 + github-token: ${{ secrets.BOT_TOKEN }} + labeled: needs-review