feat: hooks for PR events #1
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
jwarykowski/herdr-gh!1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/hooks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Each poll compares a workspace's PR with what the last poll saw and runs an executable in
<config-dir>/hooks/named after what changed:pr.merged,pr.closed,ci.passed,ci.failed,review.approved,review.changes_requested. Hooks get the PR inHERDR_GH_*variables.A PR seen for the first time is only recorded, so restarts and branches merged while herdr was closed fire nothing. Passes are serialised so the refresh action can't fire a hook twice. Sidebar output is unchanged.