feat(testkit): expand UTF adapter coverage and real-mongod parity path #26
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: PR Closing Issue Guard | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| require-closing-keyword: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Validate PR body contains closing keyword | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const body = (context.payload.pull_request.body || "").trim(); | |
| const closingPattern = | |
| /\b(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\b\s+(?:(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+)?#\d+)/i; | |
| if (!closingPattern.test(body)) { | |
| core.setFailed( | |
| [ | |
| "PR body must include at least one issue auto-close keyword.", | |
| "Example: `Closes #48` or `Fixes midagedev/jongodb#48`.", | |
| ].join(" ") | |
| ); | |
| } |