diff --git a/.github/workflows/update-package.yml b/.github/workflows/update-package.yml index 4a08ac9f1..bf2a8cd71 100644 --- a/.github/workflows/update-package.yml +++ b/.github/workflows/update-package.yml @@ -27,5 +27,6 @@ jobs: with: github-token: ${{secrets.GITHUB_TOKEN}} branch-name-prefix: fix-package - pr-title-prefix: package.jsonやpackage-lock.jsonを直してあげたよ! + pr-title-prefix: package.json, package-lock.json修正 + pr-description-prefix: package.jsonやpackage-lock.jsonを修正しました。 repo-name: ${{ github.event.pull_request.head.repo.full_name }} diff --git a/action.yml b/action.yml index 53d4fb6da..8f66fb500 100644 --- a/action.yml +++ b/action.yml @@ -11,6 +11,9 @@ inputs: pr-title-prefix: description: 'Prefix of PR title' required: true + pr-description-prefix: + description: 'Prefix of PR description' + required: true repo-name: description: 'Repository name' required: true @@ -36,7 +39,7 @@ runs: EMAIL="41898282+github-actions[bot]@users.noreply.github.com" git config user.email "${EMAIL}" git add -u - git commit -m "鳩は唐揚げ!(自動で直してあげたよ!)" + git commit -m "${{inputs.pr-title-prefix}}" REPO_URL="https://" REPO_URL+="${{github.actor}}:${{inputs.github-token}}@github.com/" REPO_URL+="${{github.repository}}.git" @@ -99,11 +102,12 @@ runs: github-token: ${{inputs.github-token}} script: | const HEAD_REF = process.env["HEAD_REF"] - let title = "${{inputs.pr-title-prefix}}PRをマージしてね!" - let body = "鳩の唐揚げおいしい!😋😋😋" + let title = "${{inputs.pr-title-prefix}}" + let body = "${{inputs.pr-description-prefix}}" if ("${{github.event.pull_request.number}}" != "") { - body += " #${{github.event.pull_request.number}}" + body += "本PRをマージすると差分が次のPRに反映されます。\n" + body += "* #${{github.event.pull_request.number}}" title += " #${{github.event.pull_request.number}}" }