{RDBMS} az postgres flexible-server backup, az postgres flexible-server db, az postgres flexible-server firewall-rule, az postgres flexible-server long-term-retention, az postgres flexible-server migration, az postgres flexible-server replica create : Add breaking change announcements and --name argument to `
#3677
Workflow file for this run
This file contains hidden or 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: Block PR merging on blocked labels | |
| on: | |
| pull_request_target: | |
| types: [labeled, unlabeled] | |
| branches: | |
| - dev | |
| - release | |
| jobs: | |
| block-merge: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check blocked labels | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const labels = context.payload.pull_request.labels.map(label => label.name); | |
| const blockedLabels = ["do-not-merge", "needs-author-feedback"]; | |
| if (labels.some(label => blockedLabels.includes(label))) { | |
| console.log(`It is not allowed to merge a PR with any blocked labels: ${blockedLabels}`); | |
| process.exit(1); // Exit with a non-zero status code to block merge | |
| } else { | |
| console.log("It is allowed to merge the PR."); | |
| } |