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

Function updatePullRequestBranch

actions/setup/js/update_pull_request_branches.cjs:93–109  ·  view source on GitHub ↗

* @param {string} owner * @param {string} repo * @param {number} pullNumber * @returns {Promise }

(owner, repo, pullNumber)

Source from the content-addressed store, hash-verified

91 * @returns {Promise<void>}
92 */
93async function updatePullRequestBranch(owner, repo, pullNumber) {
94 await withRetry(
95 () =>
96 github.rest.pulls.updateBranch({
97 owner,
98 repo,
99 pull_number: pullNumber,
100 }),
101 {
102 maxRetries: 2,
103 initialDelayMs: 1000,
104 maxDelayMs: 10000,
105 shouldRetry: isTransientError,
106 },
107 `update branch for pull request #${pullNumber}`
108 );
109}
110
111/**
112 * @param {string} owner

Callers 1

mainFunction · 0.85

Calls 1

withRetryFunction · 0.85

Tested by

no test coverage detected