From 5ae08f7bc902d56351ad9d0cf6eaf3a2b8ee4bce Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Wed, 27 May 2026 18:28:39 +0530 Subject: T8929: auto-close pr workflow pullrequest trigger fixed --- .github/workflows/pr-auto-close.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-auto-close.yml (limited to '.github/workflows') diff --git a/.github/workflows/pr-auto-close.yml b/.github/workflows/pr-auto-close.yml new file mode 100644 index 000000000..c61f0e713 --- /dev/null +++ b/.github/workflows/pr-auto-close.yml @@ -0,0 +1,24 @@ +name: Auto-Close Pull Requests Sagitta + +on: + pull_request_target: + types: + - opened + branches: + - circinus + - sagitta + +permissions: + pull-requests: write + issues: write + contents: read + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3 + with: + # Optional. Post a issue comment just before closing a pull request. + comment: "Pull requests to this branch are not accepted and have been closed automatically." + github_token: ${{ secrets.PAT }} -- cgit v1.2.3 From 4d7c1d15882de95dad1844faeb5750d443386fe0 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Wed, 27 May 2026 18:33:55 +0530 Subject: T8929: added org restriction --- .github/workflows/pr-auto-close.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github/workflows') diff --git a/.github/workflows/pr-auto-close.yml b/.github/workflows/pr-auto-close.yml index c61f0e713..0c0072e9a 100644 --- a/.github/workflows/pr-auto-close.yml +++ b/.github/workflows/pr-auto-close.yml @@ -16,6 +16,7 @@ permissions: jobs: run: runs-on: ubuntu-latest + if: github.repository_owner == 'vyos' steps: - uses: superbrothers/close-pull-request@v3 with: -- cgit v1.2.3 From 74f4c4e7d22b69a6a772f00ee8605aa29c3bc719 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Wed, 27 May 2026 18:39:16 +0530 Subject: T8929: updated to use github token instead of PAT --- .github/workflows/pr-auto-close.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/pr-auto-close.yml b/.github/workflows/pr-auto-close.yml index 0c0072e9a..f02bb498c 100644 --- a/.github/workflows/pr-auto-close.yml +++ b/.github/workflows/pr-auto-close.yml @@ -20,6 +20,5 @@ jobs: steps: - uses: superbrothers/close-pull-request@v3 with: - # Optional. Post a issue comment just before closing a pull request. comment: "Pull requests to this branch are not accepted and have been closed automatically." - github_token: ${{ secrets.PAT }} + github_token: ${{ github.token }} -- cgit v1.2.3 From 916808972833651b735c615210774abff9a941dd Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Wed, 27 May 2026 18:42:48 +0530 Subject: T8929: fixed auto review commits --- .github/workflows/pr-auto-close.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/pr-auto-close.yml b/.github/workflows/pr-auto-close.yml index f02bb498c..df19c449d 100644 --- a/.github/workflows/pr-auto-close.yml +++ b/.github/workflows/pr-auto-close.yml @@ -4,6 +4,7 @@ on: pull_request_target: types: - opened + - reopened branches: - circinus - sagitta @@ -18,7 +19,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'vyos' steps: - - uses: superbrothers/close-pull-request@v3 + - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 #v3 with: comment: "Pull requests to this branch are not accepted and have been closed automatically." github_token: ${{ github.token }} -- cgit v1.2.3