-
Notifications
You must be signed in to change notification settings - Fork 61
Default labels #506
Default labels #506
Changes from 3 commits
23de96f
89c8b52
8070152
05a0c47
7b51b34
9e4ae94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -28,6 +28,15 @@ priority-labels: | |||||||||||||||||||||||||||
weight: 4 | ||||||||||||||||||||||||||||
- name: "Priority: 4 (Emergency)" | ||||||||||||||||||||||||||||
weight: 5 | ||||||||||||||||||||||||||||
default-labels: | ||||||||||||||||||||||||||||
global: | ||||||||||||||||||||||||||||
- "Time: <1 Hour" | ||||||||||||||||||||||||||||
- "Priority: 0 (Normal)" | ||||||||||||||||||||||||||||
- "Test" | ||||||||||||||||||||||||||||
users: | ||||||||||||||||||||||||||||
pavlovcik: | ||||||||||||||||||||||||||||
- "Time: <1 Hour" | ||||||||||||||||||||||||||||
- "Priority: 0 (Normal)" | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty cool you implemented this but I still fear that we'll need to remove this when we implement the database style config so that we don't confuse future partners when they have conflicting settings e.g.
users:
pavlovcik:
- "Time: <1 Day"
- "Priority: 1 (Medium)" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's one thing I forgot to highlight @whilefoo but #500 (comment) Would you mind refactoring this config to be like this:
Suggested change
I was on the fence about letting this slide but as I think about it more I'm just concerned that it'll cause conflicting config issues when we implement the slash command. |
||||||||||||||||||||||||||||
auto-pay-mode: true | ||||||||||||||||||||||||||||
analytics-mode: true | ||||||||||||||||||||||||||||
max-concurrent-bounties: 2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,40 @@ To test the bot, you can: | |
2. Add a time label, ex: `Time: <1 Day` | ||
3. At this point the bot should add a price label. | ||
|
||
## Configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You did a great job here thanks. |
||
|
||
`chain-id` is ID of the EVM-compatible network that will be used for payouts. | ||
|
||
`base-multiplier` is a base number that will be used to calculate bounty price based on the following formula: `price = base-multiplier * time-label-weight * priority-label-weight / 10` | ||
|
||
`time-labels` are labels for marking the time limit of the bounty: | ||
|
||
- `name` is a human-readable name | ||
- `weight` is a number that will be used to calculate the bounty price | ||
- `value` is number of seconds that corresponds to the time limit of the bounty | ||
|
||
`priority-labels` are labels for marking the priority of the bounty: | ||
|
||
- `name` is a human-readable name | ||
- `weight` is a number that will be used to calculate the bounty price | ||
|
||
`default-labels` are labels that are applied when an issue is created without any time or priority labels. | ||
|
||
- `global` are global default labels | ||
- `users` are user-specific labels that override the global default labels | ||
|
||
`auto-pay-mode` can be `true` or `false` that enables or disables automatic payout of bounties when the issue is closed. | ||
|
||
`analytics-mode` can be `true` or `false` that enables or disables weekly analytics collection by Ubiquity. | ||
|
||
`incentive-mode` can be `true` or `false` that enables or disables comment incentives. These are comments in the issue by either the creator of the bounty or other users. | ||
|
||
`issue-creator-multiplier` is a number that defines a base multiplier for calculating incentive reward for the creator of the issue. | ||
|
||
`comment-element-pricing` defines how much is a part of the comment worth. For example `text: 0.1` means that any text in the comment will be multiplied by 0.1 | ||
|
||
`max-concurrent-bounties` is the maximum number of bounties that can be assigned to a bounty hunter at once. This excludes bounties with pending pull request reviews. | ||
|
||
## How to run locally | ||
|
||
1. Create a new project at [Supabase](https://supabase.com/). Add `Project URL` and `API Key` to the `.env` file: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no. seems better to use @ubiquity-bounties instead of @pavlovcik lol