MCPcopy Index your code
hub / github.com/anomalyco/opencode / isPullRequest

Function isPullRequest

github/index.ts:350–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348}
349
350function isPullRequest() {
351 const context = useContext()
352 const payload = context.payload as IssueCommentEvent
353 return Boolean(payload.issue.pull_request)
354}
355
356function useContext() {
357 return isMock() ? (JSON.parse(useEnvMock().mockEvent!) as GitHubContext) : github.context

Callers 1

index.tsFile · 0.85

Calls 1

useContextFunction · 0.85

Tested by

no test coverage detected