mojira / arisa-kt

:robot::sparkles: Run checks and perform automated tasks in Mojira
https://bugs.mojang.com
GNU General Public License v3.0
10 stars 6 forks source link

Detect incorrectly capitalized bot username in config #746

Closed Marcono1234 closed 3 years ago

Marcono1234 commented 3 years ago

Purpose

Jira seems to allow login with a differently capitalized username, however for checks such as whether an action has been performed by Arisa itself, we need the correctly capitalized username.

Approach

Call /rest/api/2/myself and compare the reported username with the one provided in the config.

Future work

⚠️ Verify that the Arisa config used in production actually uses the correctly capitalized username.

Checklist