pr-updater-action
pr-updater-action copied to clipboard
GitHub Action that keeps your pull requests up to date
PR Updater
Quick start
-
Create user token in user settings
-
Set this token as a secret
USER_TOKENin settings of a target repository:https://github.com/<owner>/<repo>/settings/secrets -
create file
.github/workflows/pr-updater.ymlwith the following content:name: PR update on: push: branches: - master jobs: autoupdate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: update all prs uses: maxkomarychev/[email protected] with: token: ${{ secrets.USER_TOKEN }} -
Now every time code is pushed to branches specified in the workflow all other pull requests targeting these branches will be automatically updated.
Current limitations
- Due to rate limiting user token can only perform 5000 requests per hour
- The action currently does not implement paging, so it can only update up to 100 pull requests in one run