From 6352319eb5cac055867f35df31ded62925d994dc Mon Sep 17 00:00:00 2001 From: mavaylon1 Date: Tue, 10 Jan 2023 08:05:30 -0800 Subject: [PATCH 1/2] Create project_action.yml Workflow to add issues to project board --- .github/workflows/project_action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/project_action.yml diff --git a/.github/workflows/project_action.yml b/.github/workflows/project_action.yml new file mode 100644 index 00000000..1c608f90 --- /dev/null +++ b/.github/workflows/project_action.yml @@ -0,0 +1,26 @@ +name: Add issues to Development Project Board + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - name: GitHub App token + id: generate_token + uses: tibdex/github-app-token@v1.7.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PEM }} + + - name: Add to Project + env: + TOKEN: ${{ steps.generate_token.outputs.token }} + uses: actions/add-to-project@v0.4.0 + with: + project-url: https://github.com/orgs/NeurodataWithoutBorders/projects/7 + github-token: ${{ env.TOKEN }} From 51f0010efafbd45b8f2831ccf13c1b48258b607a Mon Sep 17 00:00:00 2001 From: mavaylon1 Date: Wed, 11 Jan 2023 08:56:00 -0800 Subject: [PATCH 2/2] Update project_action.yml --- .github/workflows/project_action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/project_action.yml b/.github/workflows/project_action.yml index 1c608f90..860d34da 100644 --- a/.github/workflows/project_action.yml +++ b/.github/workflows/project_action.yml @@ -17,10 +17,18 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PEM }} - - name: Add to Project + - name: Add to Developer Board env: TOKEN: ${{ steps.generate_token.outputs.token }} uses: actions/add-to-project@v0.4.0 with: project-url: https://github.com/orgs/NeurodataWithoutBorders/projects/7 github-token: ${{ env.TOKEN }} + + - name: Add to Community Board + env: + TOKEN: ${{ steps.generate_token.outputs.token }} + uses: actions/add-to-project@v0.4.0 + with: + project-url: https://github.com/orgs/NeurodataWithoutBorders/projects/8 + github-token: ${{ env.TOKEN }}