ver 1.0.0 initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
description: Add a comment to a work package, e.g. /op-comment 1234 looks good to me.
|
||||
allowed-tools: Bash(python3 *op.py*), Bash(python *op.py*), Bash(ls *)
|
||||
---
|
||||
|
||||
Add a comment to an OpenProject work package. Input: `$ARGUMENTS`
|
||||
|
||||
The first token is the work package id; the rest is the comment text. Use the
|
||||
openproject skill:
|
||||
|
||||
```bash
|
||||
OP="${CLAUDE_PLUGIN_ROOT}/skills/openproject/scripts/op.py"
|
||||
[ -f "$OP" ] || OP=$(ls "$PWD"/skills/openproject/scripts/op.py 2>/dev/null | head -1)
|
||||
ID=$(echo "$ARGUMENTS" | awk '{print $1}')
|
||||
TEXT=$(echo "$ARGUMENTS" | cut -d' ' -f2-)
|
||||
python3 "$OP" wp comment "$ID" --text "$TEXT"
|
||||
```
|
||||
Reference in New Issue
Block a user