Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/authress-engineering/github-action-rebuild-pull-requests
Automatically rebuild pull requests when they become stale or when changes are pushed to destination branch.
https://github.com/authress-engineering/github-action-rebuild-pull-requests
actions auto-updates autoupdater github github-action github-actions merge-train pipeline pr pull-requests
Last synced: about 1 month ago
JSON representation
Automatically rebuild pull requests when they become stale or when changes are pushed to destination branch.
- Host: GitHub
- URL: https://github.com/authress-engineering/github-action-rebuild-pull-requests
- Owner: Authress-Engineering
- License: apache-2.0
- Created: 2023-08-30T08:47:08.000Z (about 1 year ago)
- Default Branch: release/1.0
- Last Pushed: 2023-10-24T20:50:29.000Z (about 1 year ago)
- Last Synced: 2024-10-15T19:25:05.903Z (about 1 month ago)
- Topics: actions, auto-updates, autoupdater, github, github-action, github-actions, merge-train, pipeline, pr, pull-requests
- Language: JavaScript
- Homepage:
- Size: 8.45 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action - Automatically Rebuild Pull Requests
This is a GitHub Action to automatically rebuild pull requests when the pull request target changes.This is an open source project managed by the [Authress Engineering team](https://authress.io).
Review the GitHub action in the marketplace: [GitHub Rebuild Pull Requests](https://github.com/marketplace/actions/rebuild-stale-pullrequests)
## How does this GitHub action work?
When a branch in your GitHub repository is updated, this GitHub action automatically finds open pull requests that target that branch and forces a rebuild for them.## Why?
This GitHub action exists because GitHub will not re-trigger builds. That means when a PR targets a branch and that branch changes, that PR is now out of date. That meas tests are not rerun, validations are not rechecked. Breaking changes will be present and not validated. By adding in this action, those PR will be automatically rerun.## Usage
In your GitHub action workflow add the follow step.```yaml
# Important! This is required: https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28
permissions:
contents: read
actions: writejobs:
build:
steps:
- uses: actions/checkout@v3
# Put this action anywhere in your GitHub action workflow
- uses: rhosys/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```