Skip to content

Commit 479586c

Browse files
committed
ci: rerun anti-slop checks on synchronize
1 parent 037127e commit 479586c

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/anti-slop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Anti Slop
33
on:
44
pull_request_target:
55
branches: [main]
6-
types: [opened, reopened, ready_for_review]
6+
types: [opened, synchronize, reopened, ready_for_review]
77

88
permissions:
99
contents: read

test/documentation.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ describe("Documentation Integrity", () => {
442442
// must stay pinned to a full SHA to avoid supply-chain drift via mutable tags.
443443
expect(antiSlop).toMatch(/uses:\s*peakoss\/anti-slop@[a-f0-9]{40}\b/i);
444444
expect(antiSlop).toContain("pull_request_target:");
445-
expect(antiSlop).toContain("types: [opened, reopened, ready_for_review]");
445+
expect(antiSlop).toContain(
446+
"types: [opened, synchronize, reopened, ready_for_review]",
447+
);
446448
expect(antiSlop).toContain("github-token: ${{ github.token }}");
447449
expect(antiSlop).toContain("require-pr-template: true");
448450
expect(antiSlop).toContain("strict-pr-template-sections: Validation");

test/storage.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ describe("storage", () => {
447447
);
448448
expect(postPersistExport.accounts).toEqual(
449449
expect.arrayContaining([
450+
expect.objectContaining({
451+
accountId: "acct-existing",
452+
refreshToken: "refresh-existing",
453+
}),
450454
expect.objectContaining({
451455
accountId: "acct-exported",
452456
refreshToken: "refresh-exported",

0 commit comments

Comments
 (0)