diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000000..3b3b4b447d72 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,38 @@ + + +- [ ] This PR is not from my *main* or *master* branch :poop:, but a *separate* branch :white_check_mark: +- [ ] Each commit has a valid :black_nib: `Signed-off-by: ` row (via `git commit --signoff`) +- [ ] Each commit and PR title has a valid :memo: `: title` first line subject for packages +- [ ] Incremented :up: any `PKG_VERSION` in the Makefile +- [ ] Tested on: (architecture, openwrt version, browser) :white_check_mark: +- [ ] \( Preferred ) Mention: @ the original code author for feedback +- [ ] \( Preferred ) Screenshot or mp4 of changes: +- [ ] \( Optional ) Closes: e.g. openwrt/luci#issue-number +- [ ] \( Optional ) Depends on: e.g. openwrt/packages#pr-number in sister repo +- [ ] Description: (describe the changes proposed in this PR) diff --git a/.github/workflows/check_source_branch_is_not_master.yml b/.github/workflows/check_source_branch_is_not_master.yml new file mode 100644 index 000000000000..45ac0ade7bd0 --- /dev/null +++ b/.github/workflows/check_source_branch_is_not_master.yml @@ -0,0 +1,15 @@ +name: Check PR source branch + +on: + pull_request_target: + types: [opened, synchronize] + +jobs: + check-source-branch-is-not-main-or-master: + runs-on: ubuntu-latest + if: contains(fromJSON('["main", "master"]'), github.head_ref) + # or github.event.pull_request.head.ref + steps: + - run: | + echo "Error: Pull requests should not be from your 'main' or 'master' branch. :(" + exit 1