From 773609df7428a355cf66661c756c5cfcedfb0647 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 14 Oct 2023 22:02:24 +0100 Subject: [PATCH 1/3] 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 00000000..f0414d7c --- /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 27e37761ef8c14191d4f4a966db8dedda3993367 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Mon, 16 Oct 2023 16:49:16 +0200 Subject: [PATCH 2/3] Only run for issues Pull requests from forks do not havej 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 f0414d7c..a51b8cec 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 bc7d0a55b122b93f280f8a376bcc592f27681340 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Mon, 16 Oct 2023 16:49:30 +0200 Subject: [PATCH 3/3] 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 a51b8cec..da04da24 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 }}" -