Skip to content
git-pull-request

GitHub Action

Monorepo merge

v0.0.1 Latest version

Monorepo merge

git-pull-request

Monorepo merge

Finds, groups and merges PRs with specific label into a selected branch

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Monorepo merge

uses: luisgj/[email protected]

Learn more about this action in luisgj/monorepo-merge

Choose a version

Monorepo merge Github Action

A Javascript Github Action with the intention of being used in monorepos to integrate many PRs into a single branch.

The action fetches open pull requests with a specific label and returns the grouped source branches.

Inputs

target-label

Required The label that all Pull Requests must contain to be grouped.

repo-token

Required The token secret stored in secrets.GITHUB_TOKEN

main-branch

Required Main branch of the repo

integration-branch

Required A protected branch that serves as integration to a testing environment

Outputs

temp-branch

Temp branch name with the grouped heads merged in.

Example usage

uses: luisgj/[email protected]
with:
  target-label: 'stage-ready'
  repo-token: '${{ secrets.GITHUB_TOKEN }}'
  integration-branch: 'staging'
  main-branch: 'main'