Skip to content

Releases: TreTuna/sync-branches

v1.4.0

12 Oct 20:54
Compare
Choose a tag to compare

Full Changelog: 1.3.0...1.4.0

  • Add options to add REVIEWERS or TEAM_REVIEWERS to generated PRs

v1.3.0

12 Oct 18:26
fea82cf
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.2.0...1.3.0

v1.2.0

04 May 06:07
Compare
Choose a tag to compare

Add pull request number, Add String cast to fix bug - #28
Add support for Draft PRs - #30

v1.1.0

12 Mar 05:47
f85e82f
Compare
Choose a tag to compare

Add PULL_REQUEST_URL output variable

Initial v1 release

21 Feb 08:53
6c7dda0
Compare
Choose a tag to compare

sync-branches

GitHub Action to sync one branch when another is updated.

Inputs

GITHUB_TOKEN

Required The token to be used for creating the pull request. Can be set to the one given for the workflow or another user.

FROM_BRANCH

Required The branch you want to make the pull request from.

TO_BRANCH

Required The branch you want to make the pull request to.

PULL_REQUEST_TITLE

What you would like as the title of the pull request.

Default: sync: {FROM_BRANCH} to {TO_BRANCH}

PULL_REQUEST_BODY

What you would like in the body of the pull request.

Default: sync-branches: New code has just landed in {FROM_BRANCH} so let's bring {TO_BRANCH} up to speed!

Example usage

name: Sync
on:
  push:
    branches:
      - master

jobs:
  sync-branches:
    runs-on: ubuntu-latest
    name: Syncing branches
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up Node
        uses: actions/setup-node@v1
        with:
          node-version: 12
      - name: Opening pull request
        id: pull
        uses: tretuna/sync-branches@v1-beta.1
        with:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
          FROM_BRANCH: "master"
          TO_BRANCH: "develop"