Skip to content

Commit edf1fa7

Browse files
feat: add user search command to easyredmine-cli plugin
Add new `sc easyredmine user search "<query>" --project-id <id>` command to search users/groups/roles within a project. Update descriptions in meta.json and SKILL.md to reflect new user search capability and agent workflow for assignment. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 1811f75 commit edf1fa7

3 files changed

Lines changed: 42 additions & 3 deletions

File tree

plugins/easyredmine-cli/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "easyredmine-cli — Go CLI for EasyRedmine API. Read issues, post comments, edit descriptions, change status, assign users via the Redmine API.",
2+
"description": "easyredmine-cli — Go CLI for EasyRedmine API. Read issues, post comments, edit descriptions, change status, assign users, search project members via the Redmine API.",
33
"tags": ["easyredmine", "redmine", "issues", "simpliciti", "go"],
44
"has_learn": true,
55
"discover_keywords": "find issues search tickets bugs tasks redmine easyredmine"

plugins/easyredmine-cli/plugin.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "easyredmine-cli",
33
"version": "1.0.0",
4-
"description": "easyredmine-cli — Redmine API client for EasyRedmine. Read issues, post comments, edit descriptions, change status, assign users.",
4+
"description": "easyredmine-cli — Redmine API client for EasyRedmine. Read issues, post comments, edit descriptions, change status, assign users, search project members.",
55
"source": "https://github.com/javimosch/easyredmine-cli",
66
"checks": [
77
{ "type": "binary", "name": "easyredmine-cli" }
@@ -123,6 +123,24 @@
123123
{ "name": "id", "type": "string", "required": true, "description": "Issue ID" },
124124
{ "name": "assigned-to-id", "type": "number", "required": true, "description": "Assigned user ID" }
125125
]
126+
},
127+
{
128+
"namespace": "easyredmine",
129+
"resource": "user",
130+
"action": "search",
131+
"description": "Search users/groups/roles in a project. Use --project-id.",
132+
"adapter": "process",
133+
"adapterConfig": {
134+
"command": "easyredmine-cli",
135+
"baseArgs": ["user", "search"],
136+
"positionalArgs": ["query"],
137+
"timeout_ms": 30000,
138+
"missingDependencyHelp": "Build easyredmine-cli from ~/ai/easyredmine-cli"
139+
},
140+
"args": [
141+
{ "name": "query", "type": "string", "required": true, "description": "Search query (name, group, or role)" },
142+
{ "name": "project-id", "type": "number", "required": true, "description": "Project ID" }
143+
]
126144
}
127145
]
128146
}

plugins/easyredmine-cli/skills/quickstart/SKILL.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: easyredmine-cli Quickstart
3-
description: Interact with EasyRedmine (Simpliciti) via the Redmine API — read issues, post comments, edit descriptions, change status, assign users, and smart-search across all open issues.
3+
description: Interact with EasyRedmine (Simpliciti) via the Redmine API — read issues, post comments, edit descriptions, change status, assign users, search project members, and smart-search across all open issues.
44
---
55

66
# easyredmine-cli Quickstart
@@ -50,6 +50,27 @@ Assign issue to a user. JSON response by default.
5050
sc easyredmine issue assign 61809 --assigned-to-id 199
5151
```
5252

53+
### `sc easyredmine user search "<query>" --project-id <id>`
54+
Search users, groups, and roles within a project. JSON response by default.
55+
56+
```bash
57+
# Search for QA team
58+
sc easyredmine user search "QA" --project-id 1111
59+
60+
# Search for developers
61+
sc easyredmine user search "ENVIRONNEMENT" --project-id 1111
62+
```
63+
64+
**Agent workflow**: When asked to "Assign to QA", search first to get the ID, then assign:
65+
```bash
66+
# 1. Find QA team ID
67+
sc easyredmine user search "QA" --project-id 1111
68+
# → {"results":[{"id":46,"fullname":"Equipe QA Env (Group)"},...]}
69+
70+
# 2. Assign using the ID
71+
sc easyredmine issue assign 62507 --assigned-to-id 46
72+
```
73+
5374
### `sc easyredmine issue search "<phrase>"`
5475
Smart search across all open issues. Breaks phrase into words, matches each word against issue subjects, deduplicates, and ranks by number of word matches.
5576

0 commit comments

Comments
 (0)