Skip to content

Commit

Permalink
limit pr numbers to 'reasonable' values
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Dec 11, 2023
1 parent def2d80 commit 429d6ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/events/messageEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export class MessageEvents {
if (match?.groups) {
const id = match.groups.id;

if (Number(id) < 500 || Number(id) > 15000) {
continue;
}

try {
const response = await octokit.rest.issues.get({
...IMMICH_REPOSITORY_BASE_OPTIONS,
Expand Down

0 comments on commit 429d6ed

Please sign in to comment.