Detect when SQL schema or user grants change (#7305)

Allow github workflow configuration change checker to also check for
changes to SQL schema and user grants. This is an incredibly simple
version so the PR author is in charge of determining what tickets should
be created.
This commit is contained in:
Phil Porada 2024-02-07 18:32:35 -05:00 committed by GitHub
parent 10e894a172
commit 7c1aa45d77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
name: Check PR for configuration changes
name: Check PR for configuration and SQL changes
on:
pull_request:
@ -7,6 +7,9 @@ on:
- 'test/config-next/*.json'
- 'test/config-next/*.yaml'
- 'test/config-next/*.yml'
- 'sa/db-users/*.sql'
- 'sa/db-next/**/*.sql'
- 'sa/db/**/*.sql'
jobs:
check-changes:
@ -20,7 +23,7 @@ jobs:
script: |
const commentMarker = '<!-- deployment_ticket_check -->';
const prAuthor = context.payload.pull_request.user.login;
const commentBody = `${commentMarker}\n@${prAuthor}, this PR appears to contain configuration changes. Please ensure that a corresponding deployment ticket has been filed with the new configuration values.\n`;
const commentBody = `${commentMarker}\n@${prAuthor}, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.\n`;
const { owner, repo, number: issue_number } = context.issue;
const issueRegexp = /IN-\d+/;