https://github.com/zk-phi/auto-pr
GitHub Action which automatically creates PR to keep a branch in sync with another
https://github.com/zk-phi/auto-pr
other
Last synced: 9 months ago
JSON representation
GitHub Action which automatically creates PR to keep a branch in sync with another
- Host: GitHub
- URL: https://github.com/zk-phi/auto-pr
- Owner: zk-phi
- Created: 2021-03-05T11:13:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T03:10:33.000Z (over 3 years ago)
- Last Synced: 2025-02-19T01:18:01.695Z (about 1 year ago)
- Topics: other
- Language: JavaScript
- Homepage:
- Size: 1.55 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.markdown
Awesome Lists containing this project
README
# Auto PR
super simple GitHub Action which automatically creates PRs to keep a branch in sync with another
Based on "fork-sync" action by tgymnich
## How it works
- check if another Auto-PR is already opened for the repo
- if no Auto-PR is opened, try to open a PR to merge HEAD into BASE
- this fails if HEAD is not ahead of BASE
HEAD branch can also be in a fork repo. This may be useful to keep a fork in sync with the original.
## Configuration
Example:
```
name: Auto PR
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: zk-phi/auto-pr@v0.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
base: 'master'
head: 'foo:master'
```