You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`[Beginner Bot] Spam user @${commenter} attempted to assign to beginner issue. Blocked.`);
176
+
177
+
try{
178
+
awaitgithub.rest.issues.createComment({
179
+
owner: repo.owner.login,
180
+
repo: repo.name,
181
+
issue_number: issue.number,
182
+
body: `Hi @${commenter}, your account is currently restricted to **Good First Issues** issues. Please complete a Good First Issue or contact a maintainer to have restrictions reviewed.`,
183
+
});
184
+
}catch(error){
185
+
console.error(`[Beginner Bot] Failed to post spam restriction message: ${error.message}`);
? `Hi @${requesterUsername}, you are limited to **1 active Good First Issue** at a time. Please complete your current assignment before requesting another.`
314
+
? `Hi @${requesterUsername}, you are limited to **1 active issue** at a time. Please complete your current assignment before requesting another.`
315
315
: `Hi @${requesterUsername}, you already have **2 open assignments**. Please finish one before requesting another.`;
0 commit comments