File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 base_branch :
77 description : " Base branch to create the PR against"
88 required : true
9- default : " main"
10-
9+ default : " main"
10+ mode :
11+ description : " Run mode: cherry-pick or verify"
12+ required : false
13+ default : " cherry-pick"
14+ pull_request :
15+ types : [labeled, opened, synchronize]
16+
1117permissions :
1218 contents : write
1319 pull-requests : write
@@ -16,8 +22,10 @@ permissions:
1622
1723jobs :
1824 cherry-pick :
25+ if : github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
1926 uses : step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
2027 with :
2128 original-owner : " Decathlon"
2229 repo-name : " release-notes-generator-action"
2330 base_branch : ${{ inputs.base_branch }}
31+ mode : ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}
You can’t perform that action at this time.
0 commit comments