From 42d16aaed5b0bd7c01fbdd385e6af43791cd65ce Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sat, 4 Sep 2021 15:01:06 +0200 Subject: [PATCH] chore: Github action for assigning to project --- .github/project.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/project.yml diff --git a/.github/project.yml b/.github/project.yml new file mode 100644 index 00000000000..2a796c49774 --- /dev/null +++ b/.github/project.yml @@ -0,0 +1,28 @@ +name: Auto-assign to FreeSewing project + +on: + issues: + types: &types [opened, labeled] + pull_requests: + types: *types +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + assign_one_project: + runs-on: ubuntu-latest + name: Assign to FreeSewing Project + steps: + - name: Assign NEW issues and NEW pull requests to project 1 + uses: srggrs/assign-one-project-github-action@1.2.1 + if: github.event.action == 'opened' + with: + project: 'https://github.com/orgs/freesewing/projects/1' + column_name: 'Open issues' + + - name: Assign issues and pull requests with `bug` label to project 1 + uses: srggrs/assign-one-project-github-action@1.2.1 + if: github.event.action == 'opened' + with: + project: 'https://github.com/orgs/freesewing/projects/1' + column_name: 'Open pull requests'