Skip to content

Reject unofficial bug tracker links#327

Open
BugTracker-BH wants to merge 2 commits intomojira:masterfrom
BugTracker-BH:reject-unofficial-bug-tracker-links
Open

Reject unofficial bug tracker links#327
BugTracker-BH wants to merge 2 commits intomojira:masterfrom
BugTracker-BH:reject-unofficial-bug-tracker-links

Conversation

@BugTracker-BH
Copy link
Copy Markdown

@BugTracker-BH BugTracker-BH commented Apr 8, 2026

Purpose

Rejects requests that contain links to unofficial bug tracker mirrors (such as mojira-viewer.jacobsjo.eu, mojira.dev) instead of the official bugs.mojang.com. This prevents users from referencing third-party mirrors.

Approach

Added a static method containsUnofficialBugTrackerLink() in RequestsUtil that uses a regex to detect any third-party URL. In RequestEventHandler, this check is run before processing a request, if an unofficial link is detected, the bot reacts with the invalid ticket emoji and sends a warning message directing the user to bugs.mojang.com, then returns early.

Future work

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant