From 036ad21555508577a98ef3f42e68ab91d95ecdfa Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 13 May 2024 12:45:11 +0300 Subject: [PATCH 1/3] chore: fix docs PR labeler to only run with PR is opened --- .github/workflows/docs-pr-label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-pr-label.yml b/.github/workflows/docs-pr-label.yml index 770f2c9bde056..a180eda6f4a0b 100644 --- a/.github/workflows/docs-pr-label.yml +++ b/.github/workflows/docs-pr-label.yml @@ -1,6 +1,6 @@ name: "Add Docs PR Label" on: - pull_request: + pull_request_target: jobs: labeler: From 264554219b8e51cb6bc134202d512fdf523c6b87 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 13 May 2024 12:46:39 +0300 Subject: [PATCH 2/3] add team labeler action --- .github/workflows/docs-pr-label.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-pr-label.yml b/.github/workflows/docs-pr-label.yml index a180eda6f4a0b..636d6eaabe5ca 100644 --- a/.github/workflows/docs-pr-label.yml +++ b/.github/workflows/docs-pr-label.yml @@ -1,6 +1,6 @@ name: "Add Docs PR Label" on: - pull_request_target: + pull_request: jobs: labeler: @@ -10,4 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - id: label-the-PR - uses: actions/labeler@v5 \ No newline at end of file + uses: actions/labeler@v5 + - uses: JulienKode/team-labeler-action@v1.1.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file From 415564c16373d681b8e3f9d799b9e5ea2aa6e8d0 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 13 May 2024 15:44:16 +0300 Subject: [PATCH 3/3] move docs labeler to team labeler --- .github/workflows/docs-pr-label.yml | 16 ---------------- .github/workflows/team-labeler.yml | 2 ++ 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/docs-pr-label.yml diff --git a/.github/workflows/docs-pr-label.yml b/.github/workflows/docs-pr-label.yml deleted file mode 100644 index 636d6eaabe5ca..0000000000000 --- a/.github/workflows/docs-pr-label.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: "Add Docs PR Label" -on: - pull_request: - -jobs: - labeler: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - id: label-the-PR - uses: actions/labeler@v5 - - uses: JulienKode/team-labeler-action@v1.1.0 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/team-labeler.yml b/.github/workflows/team-labeler.yml index 707e152ff5801..c597290ac5c6b 100644 --- a/.github/workflows/team-labeler.yml +++ b/.github/workflows/team-labeler.yml @@ -9,6 +9,8 @@ jobs: team-labeler: runs-on: ubuntu-latest steps: + - id: label-the-PR + uses: actions/labeler@v5 - uses: JulienKode/team-labeler-action@v1.1.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file