This is a GitHub Action that updates a pull request.
Create a workflow yaml file (for e.g. .github/workflows/update-pr.yml
). See Creating a Workflow file.
token
: secret token to allow making calls to GitHub's rest API (for e.g.${{ secrets.GITHUB_TOKEN }}
)
title
: Title replacement for the PRtitle-prefix
: Text to be prepended to the PR titletitle-suffix
: Text to be appended to the PR titlebody
: Body replacement for the PRbody-prefix
: Text to be prepended to the PR bodybody-suffix
: Text to be appended to the PR bodybody-concat-new-line
: Flag to indicate whether to add a new line between the body prefix and suffix
new-title
: New PR titlenew-body
: New PR body
name: "Update Pull Request"
on: pull_request
jobs:
update_pr:
runs-on: ubuntu-latest
steps:
- uses: kognity/pr-update-action
with:
token: "${{ secrets.GITHUB_TOKEN }}"
title-prefix: "[KOG-9999]"
body-suffix: |
My multiline body
Another line
Scaffolding derived from typescript-action