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)
| 47 | // evalCloseDiscussion checks whether a closed discussion stayed closed. |
| 48 | // Uses REST API approximation since discussions don't have a direct REST endpoint. |
| 49 | func 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. |
| 61 | func evalCreateDiscussion(item CreatedItemReport, repoOverride string) OutcomeReport { |
nothing calls this directly
no test coverage detected