Skip to content

Commit 77089a6

Browse files
fix:incorrect user feedback after successful cla sign (#67)
1 parent 9b1df60 commit 77089a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/helpers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export async function afterCLA(app, claSignatureInfo) {
173173
}
174174

175175
console.log(`Processing CLA for ${githubUsername ? `user: ${githubUsername}` : 'unknown user'} in org/account: ${org}`);
176-
176+
let failuresToRemoveLabel = 0; // To track the failures in removing labels
177177
try {
178178
//TODO: Check if the Octokit instance is already authenticated with an installation ID
179179
const octokit = await getOctokitForOrg(app, org);
@@ -188,7 +188,6 @@ export async function afterCLA(app, claSignatureInfo) {
188188

189189
const filteredPrs = prs?.filter(pr => pr?.user?.login === githubUsername);
190190
console.log(`Found ${filteredPrs?.length} open PRs for ${githubUsername} in ${org}:`, filteredPrs?.map(pr => pr?.number).join(', '));
191-
let failuresToRemoveLabel = 0;
192191
for (const pr of filteredPrs) {
193192
const { owner, repo } = parseRepoUrl(pr?.repository_url) || {};
194193
const hasPendingCLALabel = pr.labels?.some(label => label?.name?.toLowerCase() === "pending cla");

0 commit comments

Comments
 (0)