From 49e05599ef6702432b2dd5874f380444944a6286 Mon Sep 17 00:00:00 2001 From: ecurrencyhodler Date: Thu, 25 Jan 2024 12:57:39 -0800 Subject: [PATCH] Auto-add issues to bounties platform project Since we've separated the frontend from the backend, we must track 2 repos in our bounties platform project. The free version of github only allows for to refernce one repo for free. So we are implementing workflow to have issues be auto-added to the project board from a second repo. --- .github/workflows/add_issues_to_project.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/add_issues_to_project.yml diff --git a/.github/workflows/add_issues_to_project.yml b/.github/workflows/add_issues_to_project.yml new file mode 100644 index 000000000..eea63f06a --- /dev/null +++ b/.github/workflows/add_issues_to_project.yml @@ -0,0 +1,19 @@ +# Since we've separated the frontend from the backend, we must track 2 repos in our bounties platform project. The free version of github only allows the project to reference one repo for free. So we are implementing this workflow to have issues be auto-added to the project board from a second repo. + +name: Add issues labeled `bounties` to bounties platform project + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/stakwork/projects/24 + github-token: ${{ secrets.ADD_TO_PROJECT }} + labeled: bounties