diff --git a/action.yml b/action.yml index 4f7403a3..08f7872d 100644 --- a/action.yml +++ b/action.yml @@ -15,6 +15,10 @@ inputs: description: | Labels which will be added to the pull request. Defaults to sync. Set to false to turn off required: false + PR_BODY: + description: | + Additional content to add in the PR description. Defaults to '' + required: false ASSIGNEES: description: | People to assign to the pull request. Defaults to none diff --git a/src/config.js b/src/config.js index 3866ccb2..94674cda 100644 --- a/src/config.js +++ b/src/config.js @@ -44,6 +44,10 @@ try { type: 'array', disableable: true }), + PR_BODY: getInput({ + key: 'PR_BODY', + default: '' + }), ASSIGNEES: getInput({ key: 'ASSIGNEES', type: 'array' @@ -209,4 +213,4 @@ const parseConfig = async () => { module.exports = { ...context, parseConfig -} \ No newline at end of file +} diff --git a/src/git.js b/src/git.js index c6768a51..930942b6 100644 --- a/src/git.js +++ b/src/git.js @@ -13,6 +13,7 @@ const { COMMIT_PREFIX, GITHUB_REPOSITORY, OVERWRITE_EXISTING_PR, + PR_BODY, BRANCH_PREFIX } = require('./config') @@ -194,6 +195,8 @@ class Git { const body = dedent(` Synced local file(s) with [${ GITHUB_REPOSITORY }](https://github.com/${ GITHUB_REPOSITORY }). + ${ PR_BODY } + ${ changedFiles } --- @@ -249,4 +252,4 @@ class Git { } } -module.exports = Git \ No newline at end of file +module.exports = Git