Skip to content

Commit ff20533

Browse files
ci: add check for PR titles with specific phrases (airbytehq#636)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Aaron <AJ> Steers <aj@airbyte.io>
1 parent 6e2f946 commit ff20533

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/semantic_pr_check.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,13 @@ jobs:
4747
# scopes: |
4848
# core
4949
# ui
50+
51+
- name: Check for "do not merge" in PR title
52+
if: ${{ github.event.pull_request.draft == false }}
53+
uses: actions/github-script@v6
54+
with:
55+
script: |
56+
const title = context.payload.pull_request.title.toLowerCase();
57+
if (title.includes('do not merge') || title.includes('do-not-merge')) {
58+
core.setFailed('PR title contains "do not merge" or "do-not-merge". Please remove this before merging.');
59+
}

0 commit comments

Comments
 (0)