Skip to content

Commit

Permalink
Project Management Automation: Add return tag description
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Apr 23, 2020
1 parent 087ca7a commit d58b673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/project-management-automation/lib/add-milestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const getAssociatedPullRequest = require( './get-associated-pull-request' );
/** @typedef {import('@octokit/rest').HookError} HookError */
/** @typedef {import('@actions/github').GitHub} GitHub */
/** @typedef {import('@octokit/webhooks').WebhookPayloadPush} WebhookPayloadPush */
/** @typedef {import('@octokit/rest').IssuesListMilestonesForRepoResponseItem} OktokitIssuesListMilestonesForRepoResponseItem */

/**
* Number of expected days elapsed between releases.
Expand Down Expand Up @@ -40,7 +41,7 @@ const isDuplicateValidationError = ( error ) =>
* @param {string} repo Repository name.
* @param {string} title Milestone title.
*
* @return {Promise<import('@octokit/rest').IssuesListMilestonesForRepoResponseItem|void>}
* @return {Promise<OktokitIssuesListMilestonesForRepoResponseItem|void>} Promise resolving to milestone, if exists.
*/
async function getMilestoneByTitle( octokit, owner, repo, title ) {
const options = octokit.issues.listMilestonesForRepo.endpoint.merge( {
Expand Down

0 comments on commit d58b673

Please sign in to comment.