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:
parent
10e894a172
commit
7c1aa45d77
|
|
@ -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+/;
|
||||
|
||||
Loading…
Reference in New Issue