Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
build(GHES): recover pulls/create-review-comment operation ID
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jun 7, 2020
1 parent 38e2b43 commit 191ad07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/openapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,12 @@ function getIdName(endpoint, scope) {
idName = idName.replace(/-code-scanning/, "");
}

// recover operation ID for "Create a review comment for a pull request (alternative)"
// in GHES 2.19 and 2.18
if (idName === "create-review-comment-for-alternative") {
return "create-review-comment";
}

return idName;
}

Expand Down

0 comments on commit 191ad07

Please sign in to comment.