Skip to content

ci: update codeowners for feature team model #3

ci: update codeowners for feature team model

ci: update codeowners for feature team model #3

name: 'Check for Release Branch'
on:
pull_request:
types: [opened, edited ]
jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check branch name
uses: actions/github-script@v6
if: github.base_ref == 'master'
with:
script: |
console.log(context.payload.pull_request);
if(!context.payload.pull_request.head_ref.startsWith('release/')) {
throw new Error(`Only "release/**" branches can be merged to "master".`);
}