Skip to content

Commit 6e2476e

Browse files
committed
Scope migration pull request comment deletion to specific database and environment
1 parent 3e3cb43 commit 6e2476e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/_migrate-database.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ jobs:
190190
with:
191191
github-token: ${{ secrets.GITHUB_TOKEN }}
192192
script: |
193-
// Delete previous migration info comments
193+
// Delete previous migration info comments for this specific database
194194
const comments = await github.rest.issues.listComments({
195195
issue_number: context.issue.number,
196196
owner: context.repo.owner,
197197
repo: context.repo.repo,
198198
per_page: 100
199199
});
200200
201-
const MIGRATION_HEADER = '## Approve Database Migration';
201+
const MIGRATION_HEADER = '## Approve Database Migration `${{ inputs.database_name }}` database on `${{ inputs.azure_environment }}`';
202202
203203
for (const comment of comments.data) {
204204
if (comment.body && comment.body.startsWith(MIGRATION_HEADER)) {

0 commit comments

Comments
 (0)