Skip to content

ci: dedup upstream API change notifications by UTC day#197

Merged
Mlaz-code merged 1 commit into
mainfrom
ci/upstream-notify-dedup
May 2, 2026
Merged

ci: dedup upstream API change notifications by UTC day#197
Mlaz-code merged 1 commit into
mainfrom
ci/upstream-notify-dedup

Conversation

@Mlaz-code
Copy link
Copy Markdown
Collaborator

Summary

Replaces the per-dispatch gh issue create in .github/workflows/upstream-notify.yml with an upsert: same-UTC-day dispatches fold into a single rolling issue titled Docs review: upstream API changes (YYYY-MM-DD). Subsequent same-day dispatches append a comment to that issue instead of opening a duplicate.

The previous one-issue-per-dispatch logic produced 185 unread tickets between Feb 18 and Mar 19, 2026, peaking at 30/day on Mar 6. The legacy dispatcher in Mlaz-code/sharp-api (TS Hono) was retired with that repo's rewrite to Go; the replacement dispatcher lives in Mlaz-code/sharp-api-go (companion PR #154 there).

Behavior

  • Title key: Docs review: upstream API changes (YYYY-MM-DD) (UTC).
  • Lookup: by --label upstream + exact title match against open issues.
  • Body: review checklist + first commit's bullet (commit hash → source repo → changed files).
  • Append path: same-day dispatch posts a comment with the new commit's bullet.
  • Worst case: 30 commits/day → 1 new issue + 29 comments instead of 30 issues.

Dependencies

Test plan

  • YAML parses — verified locally
  • First post-merge repository_dispatch from sharp-api-go opens a fresh "Docs review" issue
  • A second same-day dispatch appends a comment to that same issue (no duplicate)
  • After UTC midnight, the next dispatch opens a new daily issue
  • Manually verify the commit-link in the issue body resolves to https://github.com/Mlaz-code/sharp-api-go/commit/<sha>

🤖 Generated with Claude Code

Receiver workflow now folds all repository_dispatch events of type
`upstream-api-endpoint-change` arriving on the same UTC day into a
single rolling issue titled "Docs review: upstream API changes
(YYYY-MM-DD)". Subsequent dispatches that day append a comment
instead of opening a duplicate.

The previous logic opened one fresh issue per dispatch. Between Feb 18
and Mar 19, 2026 the legacy Mlaz-code/sharp-api dispatcher fired 185
times (peak 30/day on Mar 6). None were ever triaged. Bulk-close of
those issues is happening alongside this rewire; the new dispatcher
lives in Mlaz-code/sharp-api-go (notify-docs.yml, separate PR).
@vercel
Copy link
Copy Markdown

vercel Bot commented May 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs.sharpapi.io Ignored Ignored May 2, 2026 2:49pm

Request Review

@Mlaz-code Mlaz-code merged commit 9c1030f into main May 2, 2026
2 checks passed
@Mlaz-code Mlaz-code deleted the ci/upstream-notify-dedup branch May 2, 2026 15:08
Mlaz-code added a commit that referenced this pull request May 7, 2026
Receiver workflow now folds all repository_dispatch events of type
`upstream-api-endpoint-change` arriving on the same UTC day into a
single rolling issue titled "Docs review: upstream API changes
(YYYY-MM-DD)". Subsequent dispatches that day append a comment
instead of opening a duplicate.

The previous logic opened one fresh issue per dispatch. Between Feb 18
and Mar 19, 2026 the legacy Mlaz-code/sharp-api dispatcher fired 185
times (peak 30/day on Mar 6). None were ever triaged. Bulk-close of
those issues is happening alongside this rewire; the new dispatcher
lives in Mlaz-code/sharp-api-go (notify-docs.yml, separate PR).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant