A github action to automatically create PR from a fork to the upstream
steps:
- uses: uknowwhoim/[email protected]
with:
# Title of your PR
title: "Catch Up PR"
env:
GITHUB_TOKEN: ${{ secrets.AUTH_TOKEN }}
The authentication token of user creating the PR. This user must have write access to the fork. How to create a token?
This parameter must be passed to the environment and must be stored as a repository secret.
- uses: uknowwhoim/auto-pr-fork@main
env:
GITHUB_TOKEN: ${{ secrets.AUTH_TOKEN }}
The branch of the fork you want to merge into upstream.
Default is main
The branch of the upstream, you want to to merge your fork into.
Default is main
Make the PRs created by this repo draft by default(Public repos only)
Default is false
The title of PRs created by this action.
Default is Catch up with <OWNER>/<REPO_NAME>
The description of PRs created by this action.
Create a pull request on push.
# Triggers on all branches
on: push
# Triggers on main branch push only
on:
push:
branches:
- main
Schedule a pull request in a period of time repeatedly. Visit crontab guru to generate cron syntax.
on:
schedule:
# At 00:00 on every 3rd day-of-month
- cron: '0 0 */3 * *'