From 3824ead3686f94eb879ff4544a2869e24b47a5bb Mon Sep 17 00:00:00 2001 From: DanielHabenicht Date: Tue, 3 Nov 2020 12:38:40 +0100 Subject: [PATCH 1/2] chore: add auto assign to project workflow --- .github/workflows/auto-assign-to-project.yml | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/auto-assign-to-project.yml diff --git a/.github/workflows/auto-assign-to-project.yml b/.github/workflows/auto-assign-to-project.yml new file mode 100644 index 00000000..eb5e6da9 --- /dev/null +++ b/.github/workflows/auto-assign-to-project.yml @@ -0,0 +1,37 @@ +name: Auto Assign to Project(s) + +on: + issues: + types: [opened, labeled] + pull_request: + types: [opened, labeled] +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + assign_one_project: + runs-on: ubuntu-latest + name: Assign to One Project + steps: + - name: Assign NEW pull requests to Overview Board + uses: srggrs/assign-one-project-github-action@1.2.0 + if: github.event.action == 'opened' && github.event_name == 'pull_request' + with: + project: 'https://github.com/CovOpen/CovMapper/projects/1' + column_name: 'Work in progess' + + - name: Assign NEW issues to Overview Board + uses: srggrs/assign-one-project-github-action@1.2.0 + if: github.event.action == 'opened' && github.event_name == 'issues' + with: + project: 'https://github.com/CovOpen/CovMapper/projects/1' + column_name: 'Backlog' + +# - name: Assign issues and pull requests with `bug` label to project 3 +# uses: srggrs/assign-one-project-github-action@1.2.0 +# if: | +# contains(github.event.issue.labels.*.name, 'bug') || +# contains(github.event.pull_request.labels.*.name, 'bug') +# with: +# project: 'https://github.com/srggrs/assign-one-project-github-action/projects/3' +# column_name: 'Labeled' From a35cd6376a041c303794933f1c1ab71291332c7f Mon Sep 17 00:00:00 2001 From: DanielHabenicht Date: Wed, 4 Nov 2020 13:43:36 +0100 Subject: [PATCH 2/2] Update .github/workflows/auto-assign-to-project.yml Co-authored-by: Sebastian Herrlinger --- .github/workflows/auto-assign-to-project.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/auto-assign-to-project.yml b/.github/workflows/auto-assign-to-project.yml index eb5e6da9..39b4756b 100644 --- a/.github/workflows/auto-assign-to-project.yml +++ b/.github/workflows/auto-assign-to-project.yml @@ -26,12 +26,3 @@ jobs: with: project: 'https://github.com/CovOpen/CovMapper/projects/1' column_name: 'Backlog' - -# - name: Assign issues and pull requests with `bug` label to project 3 -# uses: srggrs/assign-one-project-github-action@1.2.0 -# if: | -# contains(github.event.issue.labels.*.name, 'bug') || -# contains(github.event.pull_request.labels.*.name, 'bug') -# with: -# project: 'https://github.com/srggrs/assign-one-project-github-action/projects/3' -# column_name: 'Labeled'