MCPcopy Create free account
hub / github.com/github/gh-aw / evalCloseDiscussion

Function evalCloseDiscussion

pkg/cli/outcome_eval_generic.go:49–58  ·  view source on GitHub ↗

evalCloseDiscussion checks whether a closed discussion stayed closed. Uses REST API approximation since discussions don't have a direct REST endpoint.

(item CreatedItemReport, repoOverride string)

Source from the content-addressed store, hash-verified

47// evalCloseDiscussion checks whether a closed discussion stayed closed.
48// Uses REST API approximation since discussions don't have a direct REST endpoint.
49func evalCloseDiscussion(item CreatedItemReport, repoOverride string) OutcomeReport {
50 // Discussions require GraphQL; for now return pending with a note
51 return OutcomeReport{
52 Type: item.Type,
53 ObjectURL: item.URL,
54 Repo: resolveItemRepo(item, repoOverride),
55 Result: OutcomePending,
56 Detail: "discussion outcome check requires GraphQL (not yet implemented)",
57 }
58}
59
60// evalCreateDiscussion checks whether a discussion received replies.
61func evalCreateDiscussion(item CreatedItemReport, repoOverride string) OutcomeReport {

Callers

nothing calls this directly

Calls 1

resolveItemRepoFunction · 0.85

Tested by

no test coverage detected