Repository navigation
feat(apis): add issue.reopened and pr.reopened event types - #286
Open
ccf-lisa[bot] wants to merge 2 commits into
Open
ccf-lisa[bot] wants to merge 2 commits into
ccf-lisa[bot] wants to merge 2 commits into
Conversation
gusfcarvalho
approved these changes
Dec 1, 2026
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.
Task:
reopen-1(reopen events, contract)Summary
Adds two event types,
issue.reopenedandpr.reopened, both emitted by the github provider. Today a closed work item can't be reopened: the factory has no reopen event, soclosed-gatekeeps suppressing every rule after the issue is reopened. The real case was compliance-framework/docs#220. It was closed and reopened, its implement run then opened docs#229, and the review was never dispatched.Stack: this is PR 1 of 2. It holds only the contract, per AGENTS.md. PR 2 is stacked on it and maps GitHub's
issues.reopened/pull_request.reopenedinnormalise.go, then adds the catalog rulereopen-on-primary-reopened, which setslifecycle: open.Changes
internal/apis/v1alpha1/events.go: the constantsEventIssueReopenedandEventPRReopened, and theireventVocabularyentries (github). They sit next to their*.closedpair.make generate):schemas/rule.schema.json,schemas/ruleset.schema.json, andapi/openapi.yaml(the EventType enum).cd web && npm ci && npm run gen:api):web/src/api/schema.d.ts.design/03-domain-model.md.design/workstreams/foundation/LLD/contracts.md.design/workstreams/provider-github/LLD/github-provider.md. The mapping it describes is implemented in PR 2.TestEventVocabularynow expects 30 types.issue.reopened, which is now a known type. It usesissue.transferredinstead.Verification
make generateleaves the tree clean, and so doescd web && npm run gen:api.make reviewable: check-generated, lint (0 issues), catalog and openapi-lint (100/100) pass. All tests pass exceptTestBaseScriptRuns(internal/agent/host/provision). That test fails the same way onmainon macOS, because it needs/etc/os-release. It is unrelated to this PR, and CI runs it on Linux.go test ./internal/apis/... ./internal/provider/fake/🤖 Generated with Claude Code