This action looks at the description of a pull-request and replaces [#PR]
with an actual number.
Required ${{ secrets.GITHUB_TOKEN }}
Pattern to use for ID replacement.
Optional [#PR]
Inside .github/PULL_REQUEST_TEMPLATE.md
:
Preview: https://deploy-preview-[#PR]--some-app.netlify.app
And inside .github/workflows/PR.yml
:
name: Update PR number
on: [pull_request]
jobs:
update:
name: Update PR number
runs-on: ubuntu-latest
steps:
- uses: matyas-igor/pr-number-action@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
# pattern: "[#PR]"