ZPTXDev / Quaver

Simple-to-use music bot with features such as bass boost, nightcore, seek, search, and more.
https://go.zptx.dev/InviteQuaver
GNU General Public License v3.0
6 stars 3 forks source link

After an issue edit, github-actions bot removes existing priority label #1126

Open xayanide opened 7 months ago

xayanide commented 7 months ago

Describe the bug

May not only apply with an issue edit. Edit a bug report issue twice. There should be a check in between steps 3 and 4 below that verifies if the label it is trying to apply already exists there, if it doesn't it removes the label, and applies the label that matches what was specified in the Severity dropdown of the issue.

Severity

Low

Affected branches

Quaver version

Unrelated to the discord bot.

Steps to reproduce

  1. Submits a bug report issue without any priority label.
  2. github-actions applies the label (correct)
  3. Edit the issue again (currently it had priority label it belongs to.)
  4. github-actions removes the label (incorrect)

Expected behavior

Verify first if the label that is about to get applied matches from what was selected in the selected priority section in the issue and keep the label intact. Only apply labels when it doesn't match that condition or the issue had no priority label.

Actual behavior

Removes existing priorty label

Relevant log output

No response

xayanide commented 7 months ago

It would be nice if GitHub Actions bot could also apply relevant labels to issues where checkboxes are ticked in the "Affected Branches" section.