mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-18 22:52:13 +03:00
03a1d89785
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
17 lines
635 B
YAML
17 lines
635 B
YAML
name: Pull Request Base Branch
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize]
|
|
permissions: {} # No permissions required
|
|
jobs:
|
|
check_base_branch:
|
|
name: Check PR base branch
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const baseBranch = context.payload.pull_request.base.ref;
|
|
if (!['develop', 'staging'].includes(baseBranch) && !baseBranch.startsWith('feat/')) {
|
|
core.setFailed(`Invalid base branch: ${baseBranch}`);
|
|
}
|