From 3a1259783bfe0010454a9f5a0cec42fd5c27351b Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 2 Sep 2023 18:48:21 +0100 Subject: [PATCH 1/7] Create add-to-project.yml --- .github/workflows/add-to-project.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/add-to-project.yml diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1 @@ + From 4bcb2ae1a173f55d6871e990b3d78cf7c787a34c Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 2 Sep 2023 18:53:52 +0100 Subject: [PATCH 2/7] Update add-to-project.yml --- .github/workflows/add-to-project.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 8b1378917..5e421b507 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -1 +1,19 @@ +name: Adds all Issues and Pull Requests to the project board +on: + issues: + types: + - opened + pull_request: + types: + - opened + +jobs: + add-to-project: + name: Add to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@0.5.0 + with: + project-url: https://github.com/orgs/R2Northstar/projects/3/ + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} From 93a5c1b69c657c81e821832969c575e4df05fc3c Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:00:58 +0100 Subject: [PATCH 3/7] Testing: change project to personal one --- .github/workflows/add-to-project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 5e421b507..af3ae727e 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -15,5 +15,5 @@ jobs: steps: - uses: actions/add-to-project@0.5.0 with: - project-url: https://github.com/orgs/R2Northstar/projects/3/ + project-url: https://github.com/users/ASpoonPlaysGames/projects/4 github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} From 4817c5a4bc0a9fcc45a88b0aeecc6f62825482d5 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:01:43 +0100 Subject: [PATCH 4/7] Update add-to-project.yml --- .github/workflows/add-to-project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index af3ae727e..7644ce048 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -1,4 +1,4 @@ -name: Adds all Issues and Pull Requests to the project board +name: add-to-project on: issues: @@ -13,7 +13,7 @@ jobs: name: Add to project runs-on: ubuntu-latest steps: - - uses: actions/add-to-project@0.5.0 + - uses: actions/add-to-project@v0.5.0 with: project-url: https://github.com/users/ASpoonPlaysGames/projects/4 github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} From e51a7255cb7a06550e58b0b830933561e5ca74b2 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:05:17 +0100 Subject: [PATCH 5/7] idek --- .github/workflows/add-to-project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 7644ce048..115f18f42 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -15,5 +15,5 @@ jobs: steps: - uses: actions/add-to-project@v0.5.0 with: - project-url: https://github.com/users/ASpoonPlaysGames/projects/4 - github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + project-url: "https://github.com/users/ASpoonPlaysGames/projects/4" + github-token: "${{ secrets.ADD_TO_PROJECT_PAT }}" From 61d2cd6d5c3063a177e157281999c1147e5c13c5 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:07:55 +0100 Subject: [PATCH 6/7] Change back to actual repo --- .github/workflows/add-to-project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 115f18f42..3a1d1c9a5 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -15,5 +15,5 @@ jobs: steps: - uses: actions/add-to-project@v0.5.0 with: - project-url: "https://github.com/users/ASpoonPlaysGames/projects/4" + project-url: "https://github.com/orgs/R2Northstar/projects/3" github-token: "${{ secrets.ADD_TO_PROJECT_PAT }}" From b7a5a21c498caf6130b05ce8554bbab9f0257770 Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 21 Oct 2023 13:45:07 +0100 Subject: [PATCH 7/7] use pull_request_target instead --- .github/workflows/add-to-project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 3a1d1c9a5..773a52b8b 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -4,7 +4,7 @@ on: issues: types: - opened - pull_request: + pull_request_target: types: - opened