From 27e5005b7a15f40d1c719951d53eb1bf7ca848f4 Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Sat, 17 Feb 2024 01:00:48 -0500 Subject: [PATCH 1/5] Include workflow to test project-link --- .github/workflows/link-project.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/workflows/link-project.yml diff --git a/.github/workflows/link-project.yml b/.github/workflows/link-project.yml new file mode 100644 index 0000000000..4abac84832 --- /dev/null +++ b/.github/workflows/link-project.yml @@ -0,0 +1,8 @@ +name: 'Link to Release Project' +on: [pull_request] +jobs: + link-project: + name: 'Link to Project' + uses: the-events-calendar/gh-action-project-link@main + with: + github-token: ${{ secrets.GH_BOT_TOKEN }} \ No newline at end of file From 7f604dd168a44e089cbbdcd7114f86da3a0fb8fd Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Sat, 17 Feb 2024 01:04:12 -0500 Subject: [PATCH 2/5] Missing pieces to run --- .github/workflows/link-project.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/link-project.yml b/.github/workflows/link-project.yml index 4abac84832..842839a073 100644 --- a/.github/workflows/link-project.yml +++ b/.github/workflows/link-project.yml @@ -3,6 +3,8 @@ on: [pull_request] jobs: link-project: name: 'Link to Project' - uses: the-events-calendar/gh-action-project-link@main - with: - github-token: ${{ secrets.GH_BOT_TOKEN }} \ No newline at end of file + runs-on: ubuntu-latest + steps: + - uses: the-events-calendar/gh-action-project-link@main + with: + github-token: ${{ secrets.GH_BOT_TOKEN }} \ No newline at end of file From 9022820d19a9bc2383c94780b3fc7d3020c7af66 Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Sat, 17 Feb 2024 13:46:42 -0500 Subject: [PATCH 3/5] Include a token with more permissions --- .github/workflows/link-project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-project.yml b/.github/workflows/link-project.yml index 842839a073..fb1a1518ac 100644 --- a/.github/workflows/link-project.yml +++ b/.github/workflows/link-project.yml @@ -7,4 +7,4 @@ jobs: steps: - uses: the-events-calendar/gh-action-project-link@main with: - github-token: ${{ secrets.GH_BOT_TOKEN }} \ No newline at end of file + github-token: ${{ secrets.GHA_BOT_TOKEN_MANAGER }} \ No newline at end of file From 5aec5e902865b3f8c45fd050f4ec1e3809489489 Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Sun, 18 Feb 2024 00:15:03 -0500 Subject: [PATCH 4/5] Include a bunch of varibles to make it work --- .github/workflows/link-project.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-project.yml b/.github/workflows/link-project.yml index fb1a1518ac..c6d8c7e393 100644 --- a/.github/workflows/link-project.yml +++ b/.github/workflows/link-project.yml @@ -7,4 +7,8 @@ jobs: steps: - uses: the-events-calendar/gh-action-project-link@main with: - github-token: ${{ secrets.GHA_BOT_TOKEN_MANAGER }} \ No newline at end of file + github-token: ${{ secrets.GHA_BOT_TOKEN_MANAGER }} + template-project-url: https://github.com/orgs/the-events-calendar/projects/29 + project-owner: 'tec-bot' + base-branch-pattern: 'release/*' + name-prefix-remove: 'release/' \ No newline at end of file From 81b43d4a9aa1c4e3c3b4a58cd372e046eaa1efaf Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Sun, 18 Feb 2024 00:50:55 -0500 Subject: [PATCH 5/5] One more debug test --- .github/workflows/link-project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-project.yml b/.github/workflows/link-project.yml index c6d8c7e393..d9560624ab 100644 --- a/.github/workflows/link-project.yml +++ b/.github/workflows/link-project.yml @@ -2,7 +2,7 @@ name: 'Link to Release Project' on: [pull_request] jobs: link-project: - name: 'Link to Project' + name: 'Link to Release Project' runs-on: ubuntu-latest steps: - uses: the-events-calendar/gh-action-project-link@main