Repository navigation
app/: the forge's events reach the domain: merged pull requests, closed and reopened branches (sc-8900) - #93
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-forge-listeners
branch
from
December 2, 2026 23:20
0799c9b to
f100b5d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of sc-8900. The data side of the forge seam: subdomains' webhooks (#74) dispatch one event per linked project, and these listeners do the work.
Listeners:
PullRequestMerged→baselines::record_merge: the pull request's approvals become the base branch's at the merge commit.BranchClosed→builds::close_branch, for a pull request closed without merging or a deleted branch. It's also what subdomains' hourly sync dispatches for branches that are gone.BranchReopened→builds::reopen_branch.Idempotent: a forge may deliver an event twice, so each listener is safe to run twice.
tests/forge_events.rsdispatches every event twice.RepositoryVisibilityChangedis subdomains' (the open-source check, #77), so it gets no listener here.Merge after #74.
app/src/forge/events.rsand itspub mod events;line are subdomains' file from #74, copied byte for byte, so rebasing onto #74 applies cleanly. If this lands first, #74's rebase sees the identical file.