From 9ba261f15834cec6826c75083e3980522ab9a34f Mon Sep 17 00:00:00 2001 From: ldraney Date: Wed, 8 May 2024 15:21:15 -0600 Subject: [PATCH] undoing based on new async and promise knowledge --- .github/scripts/prData.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/prData.js b/.github/scripts/prData.js index a805d26d6a..30ef1bb910 100644 --- a/.github/scripts/prData.js +++ b/.github/scripts/prData.js @@ -6,7 +6,7 @@ * @param {string} owner - The owner of the GitHub repository. * @param {string} repo - The repository name. * @param {string} sha - The commit SHA. - * @returns {list} - A list of pull requests + * @returns {Promise} - A promise resolving to the list of pull requests. */ async function fetchPullRequests(github, owner, repo, sha) { return await github.rest.repos.listPullRequestsAssociatedWithCommit({ @@ -21,7 +21,7 @@ async function fetchPullRequests(github, owner, repo, sha) { * @param {Object} github - The GitHub client instance. * @param {string} owner - The owner of the GitHub repository. * @param {string} repo - The repository name. - * @returns {string} - A string of the current release version. + * @returns {Promise} - A promise resolving to the current release version. */ async function getReleaseVersionValue(github, owner, repo) { const { data } = await github.rest.actions.getRepoVariable({ @@ -37,7 +37,7 @@ async function getReleaseVersionValue(github, owner, repo) { * @param {Object} github - The GitHub client instance. * @param {string} owner - The owner of the GitHub repository. * @param {string} repo - The repository name. - * @returns {string} - The SHA of the latest commit on the release branch. + * @returns {Promise} - A promise resolving to the SHA of the latest commit on the release branch. */ async function fetchReleaseBranchSha(github, owner, repo) { const { data } = await github.rest.repos.getCommit({