Skip to content

Commit 7c12bc5

Browse files
committed
create PR from commit?
1 parent ef83fb6 commit 7c12bc5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/gitflow-sync-master.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
MAIN_BRANCH: master
11+
HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }}
1112

1213
jobs:
1314
main:
@@ -28,9 +29,10 @@ jobs:
2829
id: open-pr
2930
uses: repo-sync/pull-request@v2
3031
with:
32+
source_branch: ${{ env. HEAD_COMMIT }}
3133
destination_branch: ${{ env.MAIN_BRANCH }}
32-
pr_title: '[Gitflow] Merge ${{ github.ref_name }} into ${{ env.MAIN_BRANCH }}'
33-
pr_body: 'Merge ${{ github.ref_name }} branch into ${{ env.MAIN_BRANCH }}'
34+
pr_title: '[Gitflow] Merge #${{ env.HEAD_COMMIT }} into ${{ env.MAIN_BRANCH }}'
35+
pr_body: 'Merge #${{ env.HEAD_COMMIT }} branch into ${{ env.MAIN_BRANCH }}'
3436
pr_label: 'Dev: Gitflow'
3537

3638
# https://github.com/marketplace/actions/enable-pull-request-automerge

0 commit comments

Comments
 (0)