From 9ee33fc1943ff99792381a852d4cc478daee6377 Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Wed, 2 Oct 2024 11:00:56 -0700 Subject: [PATCH 1/3] Fix reviewer in cherry-pick workflow Signed-off-by: Anil Vishnoi --- .github/workflows/cherry-pick.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cherry-pick.yml b/.github/workflows/cherry-pick.yml index 3fae869e..6e00c8d0 100644 --- a/.github/workflows/cherry-pick.yml +++ b/.github/workflows/cherry-pick.yml @@ -1,3 +1,5 @@ +name: Cherry pick PR into release-1.0 branch + on: pull_request: branches: @@ -21,7 +23,7 @@ jobs: labels: | cherry-pick reviewers: | - aReviewerUser + instructlab/ui-maintainers title: '[cherry-pick] {old_title}' body: 'Cherry picking #{old_pull_request_id} onto this branch' env: From d7640723ad0cb19baa77384110b943af72ca9e34 Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Wed, 2 Oct 2024 14:59:13 -0700 Subject: [PATCH 2/3] Set required permission to allow workflow to create PR Signed-off-by: Anil Vishnoi --- .github/workflows/cherry-pick.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cherry-pick.yml b/.github/workflows/cherry-pick.yml index 6e00c8d0..f4a04162 100644 --- a/.github/workflows/cherry-pick.yml +++ b/.github/workflows/cherry-pick.yml @@ -6,6 +6,10 @@ on: - main types: ["closed"] +permissions: + contents: write + pull-requests: write + jobs: cherry_pick_release_1_0: runs-on: ubuntu-latest From 6b8a7241eeb30b5e130b3430740b2457354055ad Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Wed, 2 Oct 2024 15:05:39 -0700 Subject: [PATCH 3/3] Fix permission for cherry-pick workflow Signed-off-by: Anil Vishnoi --- .github/workflows/cherry-pick.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/cherry-pick.yml b/.github/workflows/cherry-pick.yml index f4a04162..126a25d7 100644 --- a/.github/workflows/cherry-pick.yml +++ b/.github/workflows/cherry-pick.yml @@ -1,14 +1,9 @@ name: Cherry pick PR into release-1.0 branch on: - pull_request: + pull_request_target: branches: - main - types: ["closed"] - -permissions: - contents: write - pull-requests: write jobs: cherry_pick_release_1_0: