Replace pull-request body
ActionsA github action to replace pull request variables inside the pull-request body
v1.1.0
LatestTags
(1)This action looks at the body of a pull-request (created via PULL_REQUEST_TEMPLATE.md)
and replaces the variables below with information from the pull-request.
prNumber
branchName
More to be added in the future.
Required ${{ secrets.GITHUB_TOKEN }}
Under .github/PULL_REQUEST_TEMPLATE.md:
Link to review app: http://app-{{prNumber}}.example.com
And under .github/workflows/update-pr-body.yml
name: Update pull-request body
on: [pull_request]
uses: claudiamatosa/github-action-replace-pr-body@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Replace pull-request body is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.