Skip to content

Commit 4e6447f

Browse files
authored
文言をより一般的な形式に変更する (#95)
* 文言をより一般的な形式に変更する * commit messageはPRタイトルと同一にする * update-package修正 * 適用先のPRのタイトルが展開されるようにする
1 parent 43116b5 commit 4e6447f

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/update-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ jobs:
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 }}

action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -36,7 +39,7 @@ runs:
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

0 commit comments

Comments
 (0)