Skip to content

GitHub Action that validates that a PRs base branch matches that of the Issue's milestone

Notifications You must be signed in to change notification settings

SpiderStrategies/gh-action-branch-checker

Repository files navigation

Overview

A GitHub action that reports a failure if a PR's base branch doesn't match that of the issue's milestone.

Prerequisites

  1. There must be an issue number in a commit message, PR Title, or branch name
  2. Each release branch must have a workflow scoped to only it's branch, and it must specify the corresponding milestone

Example usage

on:
  pull_request:
    types: [opened]
    branches: [sp]
jobs:
  branch-checker:
    runs-on: ubuntu-latest
    steps:
      - uses: SpiderStrategies/gh-action-branch-checker@master
        with:
          milestoneNumber: 1
          repo-token: ${{ secrets.GITHUB_TOKEN }}

About

GitHub Action that validates that a PRs base branch matches that of the Issue's milestone

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •