mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
070c4763ec
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
16 lines
594 B
YAML
16 lines
594 B
YAML
name: Pull Request Base Branch
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize]
|
|
jobs:
|
|
check_base_branch:
|
|
name: Check PR base branch
|
|
runs-on: ubuntu-latest
|
|
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}`);
|
|
}
|