chore!: Deprecate connector schemas #222
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
| # Semantic PR Title Validation | |
| # | |
| # This workflow validates PR titles follow conventional commit format. | |
| name: Semantic PR Title Validation | |
| on: | |
| pull_request: | |
| types: [opened, edited, ready_for_review, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| validate-pr-title: | |
| name: Validate Semantic PR Title | |
| # Skip if 'edited' event but the title wasn't changed (e.g., only description was edited) | |
| if: > | |
| github.event.action != 'edited' | |
| || ( | |
| github.event.changes.title && | |
| github.event.changes.title.from != '' | |
| ) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check semantic PR title | |
| uses: amannn/action-semantic-pull-request@v6 | |
| if: ${{ github.event.pull_request.draft == false }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| types: | | |
| feat | |
| fix | |
| chore | |
| docs | |
| ci | |
| refactor | |
| test | |
| perf | |
| build | |
| revert | |
| style | |
| - name: Check for "do not merge" in PR title | |
| if: ${{ github.event.pull_request.draft == false }} | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const title = context.payload.pull_request.title.toLowerCase(); | |
| if (title.includes('do not merge') || title.includes('do-not-merge')) { | |
| core.setFailed('PR title contains "do not merge" or "do-not-merge". Please remove this before merging.'); | |
| } |