reviewbot

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

commit 0339a4d9303114675bd48aabb0a7f43cedc040be
parent bfdcf697349989452158c26511961bdc687cf2a7
Author: iostpa <iostpa@iostpa.com>
Date:   Sun, 24 May 2026 08:45:25 +0300

Modify docker-compose.yml and exclude some labels

Diffstat:
Mdocker-compose.yml | 13+++++++++++++
Mindex.js | 3++-
Mpackage.json | 2+-
3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/docker-compose.yml b/docker-compose.yml @@ -1,4 +1,17 @@ services: + mariadb: + ports: + - "3306:3306" + image: mariadb:12 + restart: always + volumes: + - "./database:/var/lib/mysql" + environment: + MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}" + MYSQL_DATABASE: "${MYSQL_DATABASE}" + MYSQL_USER: "${MYSQL_USER}" + MYSQL_PASSWORD: "${MYSQL_PASSWORD}" + env_file: ".db.env" reviewbot: image: ghcr.io/iostpa/reviewbot:latest restart: always diff --git a/index.js b/index.js @@ -22,6 +22,7 @@ const draftPRs = fs.readFileSync('./message/draft.md', 'utf8'); const lowPriorityMessage = fs.readFileSync('./message/label/lowpriority.md', 'utf8'); const ignoreLabels = ["maintainer"]; const reasonLabels = ["reason: abuse risk", "reason: commercial usage", "reason: impersonation", "reason: inaccessible website", "reason: incomplete pr", "reason: incomplete website", "reason: invalid file", "reason: invalid records", "reason: invalid social", "reason: merge conflict", "reason: not dev related", "reason: nsfw", "reason: other", "reason: unauthorized", "reason: incompatible records"]; +const unremovableLabels = ["maintainer", "ci: bypass-owner-check", "no-stale", "r: william"]; Sentry.init({ dsn: sentryDsn, @@ -300,7 +301,7 @@ app.webhooks.on('pull_request.closed', async ({ octokit, payload }) => { issue_number: payload.pull_request.number, name: listOfLabels[i], }); - } else if (listOfLabels.includes("maintainer")) { + } else if (unremovableLabels.includes(listOfLabels[i])) { return; } } diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "reviewbot", "private": true, - "version": "1.3.0", + "version": "1.3.1", "type": "module", "description": "An app to assist in the review process of is-a-dev", "author": "iostpa",
© 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