From b758ac0ffcc22edea303cef01c907f21c4e338ad Mon Sep 17 00:00:00 2001 From: Whatstone Date: Fri, 17 Jan 2025 12:28:04 -0500 Subject: [PATCH 1/5] crappy labeler test condition --- .github/workflows/labeler-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler-review.yml b/.github/workflows/labeler-review.yml index 9a4d76d7751..9dbcc101789 100644 --- a/.github/workflows/labeler-review.yml +++ b/.github/workflows/labeler-review.yml @@ -6,7 +6,7 @@ jobs: add_label: # Change the repository name after you've made sure the team name is correct for your fork! # Frontier: repo changed (space-wizards/space-station-14 < new-frontiers-14/frontier-station-14) - if: ${{ (github.repository == 'new-frontiers-14/frontier-station-14') && (github.event.review.state == 'APPROVED') }} + if: ${{ (github.repository == 'whatston3/frontier-station-14') }} permissions: contents: read pull-requests: write From 59a8915828ec8414acffedecc37baf1d5858d4a3 Mon Sep 17 00:00:00 2001 From: Whatstone Date: Fri, 17 Jan 2025 12:30:44 -0500 Subject: [PATCH 2/5] nobody will review this thing --- .github/workflows/labeler-review.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/labeler-review.yml b/.github/workflows/labeler-review.yml index 9dbcc101789..921e13395f6 100644 --- a/.github/workflows/labeler-review.yml +++ b/.github/workflows/labeler-review.yml @@ -1,7 +1,5 @@ name: "Labels: Approved" -on: - pull_request_review: - types: [submitted] +on: pull_request_target jobs: add_label: # Change the repository name after you've made sure the team name is correct for your fork! From 2c0ad5a0b724e42c547dabfafaefd4f033406e62 Mon Sep 17 00:00:00 2001 From: Whatstone Date: Fri, 17 Jan 2025 12:32:52 -0500 Subject: [PATCH 3/5] add organization --- .github/workflows/labeler-review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler-review.yml b/.github/workflows/labeler-review.yml index 921e13395f6..a64f995b586 100644 --- a/.github/workflows/labeler-review.yml +++ b/.github/workflows/labeler-review.yml @@ -14,7 +14,8 @@ jobs: id: checkUserMember with: username: ${{ github.actor }} - team: "content-maintainers,junior-maintainers" + organization: new-frontiers-14 + team: content-maintainers GITHUB_TOKEN: ${{ secrets.LABELER_PAT }} - if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }} uses: actions-ecosystem/action-add-labels@v1 From 3c19f257b5a1f10baba36840e900b205f7262161 Mon Sep 17 00:00:00 2001 From: Whatstone Date: Fri, 17 Jan 2025 12:39:45 -0500 Subject: [PATCH 4/5] will it run --- .github/workflows/labeler-review.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler-review.yml b/.github/workflows/labeler-review.yml index a64f995b586..29d3bbb1f5e 100644 --- a/.github/workflows/labeler-review.yml +++ b/.github/workflows/labeler-review.yml @@ -1,5 +1,8 @@ name: "Labels: Approved" -on: pull_request_target + +on: +- pull_request_target + jobs: add_label: # Change the repository name after you've made sure the team name is correct for your fork! From cb5f1213160b97b254f7dcb1b757adbc2201f25f Mon Sep 17 00:00:00 2001 From: Whatstone Date: Fri, 17 Jan 2025 12:46:42 -0500 Subject: [PATCH 5/5] mostly revert --- .github/workflows/labeler-review.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/labeler-review.yml b/.github/workflows/labeler-review.yml index 29d3bbb1f5e..3c646f2ddc5 100644 --- a/.github/workflows/labeler-review.yml +++ b/.github/workflows/labeler-review.yml @@ -1,8 +1,7 @@ name: "Labels: Approved" - on: -- pull_request_target - + pull_request_review: + types: [submitted] jobs: add_label: # Change the repository name after you've made sure the team name is correct for your fork! @@ -18,7 +17,7 @@ jobs: with: username: ${{ github.actor }} organization: new-frontiers-14 - team: content-maintainers + team: "content-maintainers,junior-maintainers" GITHUB_TOKEN: ${{ secrets.LABELER_PAT }} - if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }} uses: actions-ecosystem/action-add-labels@v1