Skip to content

Commit

Permalink
Build dist after push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
it-tiobe committed Nov 7, 2023
1 parent 47561b0 commit 5f5f3dc
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,27 +461,27 @@ async function getChangedFilesOfPullRequest() {
logger_1.logger.header('Retrieving changed files.');
let response;
do {
response = await configuration_1.octokit.graphql(`query($owner: String!, $repo: String!, $pull_number: Int!, $per_page: Int!, $after: String) {
rateLimit {
remaining
}
repository(owner: $owner, name: $repo) {
pullRequest(number: $pull_number) {
files(first: $per_page, after: $after) {
totalCount
pageInfo {
endCursor
hasNextPage
}
nodes {
path
changeType
additions
deletions
}
}
}
}
response = await configuration_1.octokit.graphql(`query($owner: String!, $repo: String!, $pull_number: Int!, $per_page: Int!, $after: String) {
rateLimit {
remaining
}
repository(owner: $owner, name: $repo) {
pullRequest(number: $pull_number) {
files(first: $per_page, after: $after) {
totalCount
pageInfo {
endCursor
hasNextPage
}
nodes {
path
changeType
additions
deletions
}
}
}
}
}`, params);
files = files.concat(response.repository.pullRequest.files.nodes
.map((item) => {
Expand Down

0 comments on commit 5f5f3dc

Please sign in to comment.