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

Function fetchIssueState

actions/setup/js/safe_output_execution_metadata.cjs:189–196  ·  view source on GitHub ↗
(github, repoParts, issueNumber)

Source from the content-addressed store, hash-verified

187}
188
189async function fetchIssueState(github, repoParts, issueNumber) {
190 const { data: issue } = await github.rest.issues.get({
191 owner: repoParts.owner,
192 repo: repoParts.repo,
193 issue_number: issueNumber,
194 });
195 return extractIssueStateFromData(issue);
196}
197
198/**
199 * @typedef {{ requested_reviewers: string[], requested_team_reviewers: string[], reviews: Array<{id?: number, user?: string, state?: string, submitted_at?: string}> }} ReviewState

Callers 3

update_issue.cjsFile · 0.85
replace_label.cjsFile · 0.85
add_labels.cjsFile · 0.85

Calls 2

getMethod · 0.80

Tested by

no test coverage detected