File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 with :
2828 github-token : ${{secrets.GITHUB_TOKEN}}
2929 branch-name-prefix : fix-package
30- pr-title-prefix : package.jsonやpackage-lock.jsonを直してあげたよ!
30+ pr-title-prefix : package.json, package-lock.json修正
31+ pr-description-prefix : package.jsonやpackage-lock.jsonを修正しました。
3132 repo-name : ${{ github.event.pull_request.head.repo.full_name }}
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ inputs:
1111 pr-title-prefix :
1212 description : ' Prefix of PR title'
1313 required : true
14+ pr-description-prefix :
15+ description : ' Prefix of PR description'
16+ required : true
1417 repo-name :
1518 description : ' Repository name'
1619 required : true
3639 EMAIL="41898282+github-actions[bot]@users.noreply.github.com"
3740 git config user.email "${EMAIL}"
3841 git add -u
39- git commit -m "鳩は唐揚げ!(自動で直してあげたよ!) "
42+ git commit -m "${{inputs.pr-title-prefix}} "
4043 REPO_URL="https://"
4144 REPO_URL+="${{github.actor}}:${{inputs.github-token}}@github.com/"
4245 REPO_URL+="${{github.repository}}.git"
@@ -99,11 +102,12 @@ runs:
99102 github-token : ${{inputs.github-token}}
100103 script : |
101104 const HEAD_REF = process.env["HEAD_REF"]
102- let title = "${{inputs.pr-title-prefix}}PRをマージしてね! "
103- let body = "鳩の唐揚げおいしい!😋😋😋 "
105+ let title = "${{inputs.pr-title-prefix}}"
106+ let body = "${{inputs.pr-description-prefix}} "
104107
105108 if ("${{github.event.pull_request.number}}" != "") {
106- body += " #${{github.event.pull_request.number}}"
109+ body += "本PRをマージすると差分が次のPRに反映されます。\n"
110+ body += "* #${{github.event.pull_request.number}}"
107111 title += " #${{github.event.pull_request.number}}"
108112 }
109113
You can’t perform that action at this time.
0 commit comments