From b3e486842a18359c2236f81010b17e3f0ff716d7 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 14 Oct 2023 21:59:31 +0100 Subject: [PATCH 1/4] Create add-to-project.yml --- .github/workflows/add-to-project.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 0000000..f0414d7 --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,20 @@ +name: add-to-project + +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@v0.5.0 + with: + project-url: "https://github.com/orgs/R2Northstar/projects/3" + github-token: "${{ secrets.PROJECT_BOARD_TOKEN }}" + From 52cf1b8a5ed711bc58dfa731216a351f8e265672 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Mon, 16 Oct 2023 16:51:32 +0200 Subject: [PATCH 2/4] Only run for issues Pull requests from forks do not have access to the required token --- .github/workflows/add-to-project.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index f0414d7..a51b8ce 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -4,9 +4,6 @@ on: issues: types: - opened - pull_request: - types: - - opened jobs: add-to-project: From 3ca77d16bf2782ebd548ad4ad4b2ef47e927da11 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Mon, 16 Oct 2023 16:52:04 +0200 Subject: [PATCH 3/4] Remove line with whitespaces --- .github/workflows/add-to-project.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index a51b8ce..da04da2 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -14,4 +14,3 @@ jobs: with: project-url: "https://github.com/orgs/R2Northstar/projects/3" github-token: "${{ secrets.PROJECT_BOARD_TOKEN }}" - From daccb1e9a23ddf7745c3bc957972fc4f70717bf2 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 23 Oct 2023 20:36:39 +0100 Subject: [PATCH 4/4] Run on PRs as well but properly --- .github/workflows/add-to-project.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index da04da2..aac7242 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -4,6 +4,9 @@ on: issues: types: - opened + pull_request_target: + types: + - opened jobs: add-to-project: