mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-01 13:10:15 +00:00
Adding action check to inform committers if they are targeting the wrong branch - Fixes https://github.com/pi-hole/pi-hole/issues/3164
Signed-off-by: Jake Herbst <jmherbst@gmail.com>
This commit is contained in:
parent
ab27a3bd45
commit
8f9fa76555
1 changed files with 25 additions and 0 deletions
25
.github/workflows/base-branch-check.yml
vendored
Normal file
25
.github/workflows/base-branch-check.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Base Branch Checker
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches-ignore:
|
||||||
|
- development
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
base_branch_check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Base Branch Check
|
||||||
|
steps:
|
||||||
|
- name: Comment PR
|
||||||
|
uses: thollander/actions-comment-pull-request@v1
|
||||||
|
|
||||||
|
with:
|
||||||
|
message: 'Hello -- It appears you have opened this Pull Request to the wrong branch.
|
||||||
|
|
||||||
|
### Technical Requirements
|
||||||
|
|
||||||
|
- Please submit Pull Requests to the **`development` branch only**.
|
||||||
|
|
||||||
|
- Before Submitting your Pull Request, merge `development` with your new branch and fix any conflicts.
|
||||||
|
(Make sure you don''t break anything in `development`!)'
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Add table
Reference in a new issue