* @param {string} owner * @param {string} repo * @param {number} pullNumber * @returns {Promise }
(owner, repo, pullNumber)
| 91 | * @returns {Promise<void>} |
| 92 | */ |
| 93 | async 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 |