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

Function fetchPullRequestState

actions/setup/js/safe_output_execution_metadata.cjs:227–234  ·  view source on GitHub ↗
(github, repoParts, pullRequestNumber)

Source from the content-addressed store, hash-verified

225}
226
227async function fetchPullRequestState(github, repoParts, pullRequestNumber) {
228 const { data: pullRequest } = await github.rest.pulls.get({
229 owner: repoParts.owner,
230 repo: repoParts.repo,
231 pull_number: pullRequestNumber,
232 });
233 return extractPullRequestStateFromData(pullRequest);
234}
235
236function attachExecutionState(result, beforeState, afterState) {
237 return {

Callers 1

Calls 2

getMethod · 0.80

Tested by

no test coverage detected