Skip to content

Commit e90a307

Browse files
committed
ci: stop API rate limit exceeded failures
The GitHubGlue `getPRCommits` is now wrapped to prevent four requests to GitHub during the CI run. Signed-off-by: Chris. Webster <chris@webstech.net>
1 parent c7071c1 commit e90a307

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ci-helper.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ test("handle push/comment too many commits fails", async () => {
757757
login: "ggg",
758758
name: "e. e. cummings",
759759
},
760-
message: `commit ${i}`,
760+
message: `commit ${i}\n\nSome text\n\nSigned-off-by: x`,
761761
parentCount: 1,
762762
});
763763
}
@@ -793,6 +793,7 @@ test("handle push/comment too many commits fails", async () => {
793793
ci.setGHGetPRInfo(prInfo);
794794
ci.setGHGetPRComment(comment);
795795
ci.setGHGetGitHubUserInfo(user);
796+
ci.setGHGetPRCommits(commits);
796797

797798
const failMsg = `The pull request has ${commits.length} commits.`;
798799
// fail for too many commits on push

0 commit comments

Comments
 (0)