Open 0x4007 opened 10 months ago
@@ No latest assign event found. @@
handlers:
commands:
start:
workflow: ubiquity/self-assign
# config: # Optional configuration for 'start'
stop:
workflow: ubiquity/self-assign
# config: # Optional configuration for 'stop'
events:
issues.unlabeled:
workflow: ubiquity/assistive-pricing
# config: # Optional configuration for 'issues.unlabeled'
issues.labeled:
workflow: ubiquity/assistive-pricing
config:
labelType: "priority"
notifyTeam: true
teamMembers:
- "user1"
- "user2"
threshold: 5
ChatGPT generated example of a config for issues.labeled
Events Example
https://github.com/ansible/webhooks.js-release/blob/6b8d9f69792bf16000cb609e649d31436ec528b5/dist-types/generated/webhook-names.d.ts#L1
Reference Config
https://github.com/ubiquity/ubiquibot/blob/3ee39e0239062acef83db760751989e7be8ff532/.github/ubiquibot-config.yml#L1-L8
New Config
Remarks
Technically speaking we can either create a single workflow to host multiple handlers, or to be more organized, we can make dedicated workflows/repositories per event handler.
Could be very interesting to follow the UNIX philosophy of small programs (plugins) that can pipe input and output for advanced interoperability. Imagine chaining
ubiquity/comment-incentives
andubiquity/user-multiplier
for exampleIt could also be useful to allow partner's to associate plugins with specific commands. That way projects can easily install their own slash commands. For example:
ChatGPT generated example of a config for
issues.labeled