generated from nhcarrigan/template
ec6a4469e1
## Summary - Removes `/create-task` (LeanTime) and `/create-issue` (Gitea) slash commands - Introduces `/create-ticket` with a `platform` choice argument: **LeanTime**, **Asana**, **Gitea**, **GitHub** - User provides only a `description`; the AI generates both the title and a fleshed-out body - `owner` and `repo` arguments are optional but validated at runtime when Gitea or GitHub is selected - Adds `ASANA_KEY` to `prod.env` (1Password reference — key needs to be added to vault) - Command remains restricted to Naomi's user ID ## Test plan - [ ] Register updated `commands.json` against the Discord API - [ ] Add `ASANA_KEY` to 1Password vault at `op://Environment Variables - Naomi/Amari/asana key` - [ ] Test `/create-ticket platform:LeanTime description:...` creates a task on the LeanTime board - [ ] Test `/create-ticket platform:Asana description:...` creates a task in Naomi's Asana project - [ ] Test `/create-ticket platform:Gitea owner:nhcarrigan repo:amari description:...` creates a Gitea issue - [ ] Test `/create-ticket platform:GitHub owner:naomi-lgbt repo:... description:...` creates a GitHub issue - [ ] Test that omitting `owner`/`repo` for Gitea/GitHub returns a helpful error - [ ] Verify AI generates a sensible title and description from the raw description ✨ This issue was created with help from Hikari~ 🌸 Reviewed-on: #18 Co-authored-by: Hikari <hikari@nhcarrigan.com> Co-committed-by: Hikari <hikari@nhcarrigan.com>
69 lines
1.7 KiB
JSON
69 lines
1.7 KiB
JSON
[
|
|
{
|
|
"name": "create-ticket",
|
|
"type": 1,
|
|
"description": "Creates a ticket on the chosen platform with an AI-generated title and description.",
|
|
"options": [
|
|
{
|
|
"name": "platform",
|
|
"description": "The platform to create the ticket on.",
|
|
"type": 3,
|
|
"required": true,
|
|
"choices": [
|
|
{ "name": "LeanTime", "value": "leantime" },
|
|
{ "name": "Asana", "value": "asana" },
|
|
{ "name": "Gitea", "value": "gitea" },
|
|
{ "name": "GitHub", "value": "github" }
|
|
]
|
|
},
|
|
{
|
|
"name": "description",
|
|
"description": "Describe what you need. The AI will generate a title and full description.",
|
|
"type": 3,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "owner",
|
|
"description": "The repository owner (required for Gitea/GitHub).",
|
|
"type": 3,
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "repo",
|
|
"description": "The repository name (required for Gitea/GitHub).",
|
|
"type": 3,
|
|
"required": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "onboard-mentee",
|
|
"type": 1,
|
|
"description": "Onboards a new mentee by setting up their GitHub repository.",
|
|
"options": [
|
|
{
|
|
"name": "mentee_name",
|
|
"description": "The mentee's full name.",
|
|
"type": 3,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "github_username",
|
|
"description": "The mentee's GitHub username.",
|
|
"type": 3,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "mentee",
|
|
"description": "The mentee's Discord account.",
|
|
"type": 6,
|
|
"required": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Forward to Naomi",
|
|
"type": 3
|
|
}
|
|
]
|