reviewbot

Source code for the is-a.dev r...
Log | Files | Refs | README | LICENSE

unlabeled.js (600B)


      1 import { db } from '../index.js';
      2 
      3 export async function unlabeled(labelName, username, prNumber, repoFullName) {
      4     if (labelName === 'status: low priority') {
      5         let res = await db
      6             .prepare(`SELECT * FROM LIST WHERE username = ?;`)
      7             .get(username);
      8         if (res !== undefined) {
      9             await db
     10                 .prepare(`DELETE FROM LIST WHERE username = ?;`)
     11                 .run(username);
     12             console.log(
     13                 `Removed #${prNumber} from https://github.com/${repoFullName} from the low priority database.`
     14             );
     15         }
     16     }
     17 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror