ci: update codeowners for feature team model #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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".`); | |
} |