-
Notifications
You must be signed in to change notification settings - Fork 61
Auto Labeling v2.0 #542
Comments
So this PR adds a new bot config param What should be done as a part of this issue:
Default labels set by the
|
What about price label? |
I guess for the If a default |
Correct @rndquu If the price label is set then it should take precedence. I didn't know this feature was implemented already. Otherwise the price should be calculated by priority and time estimate labels. |
Context
ubiquibot-config.yml
we have a section that allows for repository-wide default labeling:But I anticipate that the following input format will be the most useful and intuitive:
I want to make it very clear that the above does the following:
/default-labels
handlerTime: <1 Hour
andPriority: 0 (Normal)
labelsHowever if its a special label to assist with pricing/funding bounties (this means any
Priority
orTime
labels only at this stage) due to @Draeieg's exploit vector I won't go into the details of here now, we MUST check the permissions level of the user the bot is facilitating AT THE TIME OF ISSUE CREATION.For example:
admin
rolebilling_manager
role/allow set-priority true @pavlovcik
AND/allow set-time true @pavlovcik
User @pavlovcik can configure their
default-labels
to be anything, including the forbidden labels BUT WHEN THE ISSUE IS CREATED THE BOT VERIFIES IF THEY HAVE THE AUTHORIZATION TO SET THOSE LABELS. If they do not have the authorization to set those labels, the bot should notify them in a comment. The bot should automatically add whatever label they do have authorization to add though.Intention
Primarily I thought it could be useful for team members who write a lot of issues (me) especially if I know im going to be drafting up a ton of issues of a certain type e.g. small UI enhancements
The text was updated successfully, but these errors were encountered: