This GitHub Action verifies all commits in the PR are in a parent branch. This check is meant for release branches and not development.
Table of Contents
on:
pull_request:
branches-ignore:
- main
name: Validate
jobs:
check:
name: Check Cherry Picks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check all commits exist in main
uses: cujomalainey/cherry-pick-check@v1
with:
require_ref: true
main_branch: main
Name | Required | Description | Type | Default |
---|---|---|---|---|
required_ref |
Require "cherry picked from" line in commits (generated with -x), otherwise rely on subject | bool | false | |
main_branch |
Parent branch name to verify presense of PR commits against | string | main |
If you want to cover multiple branches you can do this with a matrix
and pass in the branches via the matrix param.
No output, only status reports
This Action is distributed under the terms of the Apache-2 license, see LICENSE for details.
Any contributions are welcomed!
If you want to report a bug or have a feature request, check the Contributing guide.