fix(issue-52): use pull request github api url as source (#53)

fix https://github.com/kiegroup/git-backporting/issues/52
This commit is contained in:
Andrea Lamparelli 2023-07-10 15:18:51 +02:00 committed by GitHub
parent fcc01673f4
commit a737aa7c4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 231 additions and 5 deletions

View file

@ -149,6 +149,13 @@ export const mockGitHubClient = (apiUrl = "https://api.github.com"): Moctokit =>
data: {}
});
mock.rest.issues
.addLabels()
.reply({
status: 200,
data: {}
});
// invalid requests
mock.rest.pulls