feat(apps): Pushes tab, webhook kept in step with the portal, redeliver #10

Merged
thelion merged 2 commits from feat/app-pushes into main 2026-11-06 17:40:50 +00:00
Owner

GitHub's push for bludot/spotify-np-bot was turned away (401): the App's webhook secret on GitHub didn't match GITHUB_WEBHOOK_SECRET, and nothing in the portal said so.

  • Webhook in step: at start the portal sets the App's webhook URL and secret to its own (PATCH /app/hook/config, using the App's JWT). No permission change, and no setup for users or the operator.
  • Pushes tab: every push GitHub sent for the app's repo, and what came of it (deployed, queued, other branch, deploy on push off, branch deleted).
  • GitHub's deliveries: each one shows how the portal answered. Redeliver sends a failed one again, and only for the app's own repo.
  • Rejected deliveries: logged with the reason (unsigned, or wrong secret) and shown on the app's Overview and Pushes.
  • Fix: an app with no pushes returned events: null and broke the tab.
  • Tests: Go tests for the sync, delivery filtering, redeliver (including another user's repo) and the push log; e2e for Pushes, rejected deliveries and redeliver; a unit test for push results. 179/179 e2e pass.

🤖 Generated with Claude Code

GitHub's push for bludot/spotify-np-bot was turned away (401): the App's webhook secret on GitHub didn't match GITHUB_WEBHOOK_SECRET, and nothing in the portal said so. - **Webhook in step:** at start the portal sets the App's webhook URL and secret to its own (PATCH /app/hook/config, using the App's JWT). No permission change, and no setup for users or the operator. - **Pushes tab:** every push GitHub sent for the app's repo, and what came of it (deployed, queued, other branch, deploy on push off, branch deleted). - **GitHub's deliveries:** each one shows how the portal answered. **Redeliver** sends a failed one again, and only for the app's own repo. - **Rejected deliveries:** logged with the reason (unsigned, or wrong secret) and shown on the app's Overview and Pushes. - **Fix:** an app with no pushes returned `events: null` and broke the tab. - **Tests:** Go tests for the sync, delivery filtering, redeliver (including another user's repo) and the push log; e2e for Pushes, rejected deliveries and redeliver; a unit test for push results. 179/179 e2e pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Each app keeps the last 30 pushes GitHub delivered for its repo, with what
came of each: deployed, queued, another branch, deploy on push off, or a
deleted branch. A delivery that fails its signature is logged with the
reason (unsigned, or a secret that doesn't match GITHUB_WEBHOOK_SECRET) and
shown on the app's Overview and Pushes, so a misconfigured webhook can't
fail silently again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(apps): the portal keeps the App's webhook in step, and pushes can be redelivered
Some checks failed
CI / test (pull_request) Successful in 14m44s
CI / release (pull_request) Failing after 0s
ebebb57720
At start the portal sets the GitHub App's webhook URL and secret to its own
(PATCH /app/hook/config, with the App's credentials — no permission or
setup needed), so the secret can't drift from GITHUB_WEBHOOK_SECRET again.
The Pushes tab lists GitHub's deliveries for the app's repo with how the
portal answered, and Redeliver sends one that didn't get through again
(only the app's own repo's).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ircforever/shells-dashboard!10
No description provided.