Skip to content

gotrhythm/keep-prs-up-to-date

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This github action is built to keep your PR's up to date.

On a push to your main branch, this will find all open PR's with a particular tag and merge the main branch (name is configurable) into the PR's.

This can be useful for a large team with a long(ish) build time to avoid developers from having to keep up with multiple pushes to the main branch.

With the label specification, it is an opt-in action so that developers who prefer to manage their own branches will be unaffected.

Usage

Assuming you want to auto merge a branch called development into all PR's with the label automerge development, add a workflow file to your .github/workflows with the following:

name: Merge development into PR branches labeled "automerge development"

on:
  push:
    branches:
      - development
jobs:
  get_pull_requests:
    runs-on: ubuntu-latest
    name: Stay up to date with development
    steps:
      - uses: gotrhythm/keep-prs-up-to-date@main
        with:
          token: ${{github.token}}
          default_branch: development
          labels: "automerge development"

You can also force this auto-merge on every pr with the all parameter.

name: Merge development into *all* PR branches

on:
  push:
    branches:
      - development
jobs:
  get_pull_requests:
    runs-on: ubuntu-latest
    name: Stay up to date with development
    steps:
      - uses: rcode5/keep-prs-up-to-date@master
        with:
          token: ${{github.token}}
          default_branch: development
          all: true

Development

Edit the index.js and run yarn build to build the dist version.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%