Skip to content

Commit

Permalink
Merge pull request #460 from MLB-LED-Scoreboard/require-release-branch
Browse files Browse the repository at this point in the history
Workflow to require release branch to merge to master
  • Loading branch information
ty-porter authored Apr 16, 2023
2 parents 4a373db + b0ec494 commit cf471b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/require_release_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Require release branch

on:
pull_request:

jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
if: github.base_ref == 'master' && github.head_ref != 'dev'
run: |
echo "ERROR: You can only merge to master from dev. Contributors should point their PRs to the dev branch."
exit 1
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
It's easy, just do the work and submit a pull request. If it's a major feature, please log an issue first.

Please point all PRs to the dev branch.

In pull requests, please upload a screenshot of your board.
5 changes: 5 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!--
REMINDER: PRs should point to the dev branch!
Please provide details about this PR, including any issues it resolves.
-->

0 comments on commit cf471b7

Please sign in to comment.