← 返回
未分类 Key 中文

redmine-tools

Fetch, update, and summarize Redmine issue attachments from CLI.
从命令行获取、更新并汇总 Redmine 工单附件。
yinxianwei yinxianwei 来源
未分类 clawhub v1.0.5 1 版本 100000 Key: 需要
★ 1
Stars
📥 361
下载
💾 0
安装
1
版本
#latest

概述

Redmine Tools Skill

This skill provides a Node.js CLI to fetch, update, and summarize Redmine issues.

Command

node scripts/redmine.js get --id <issueId>
node scripts/redmine.js update --id <issueId> [--status_id <statusId>] [--notes <text>]
node scripts/redmine.js image --id <issueId>

Supported Flags

  • --id : Required Redmine issue ID.
  • --include : Optional include fields. Defaults to attachments,journals.
  • --status_id : Optional for update. New Redmine status ID.
  • --notes : Optional for update. Journal note content.
  • At least one of --status_id or --notes must be provided for update.

Environment Variables

  • REDMINE_BASE_URL: Redmine base URL, for example https://redmine.example.com.
  • REDMINE_API_KEY: Redmine API key.
  • OPENAI_API_URL: OpenAI-compatible API base URL or full /chat/completions URL.
  • OPENAI_API_KEY: OpenAI-compatible API key.
  • OPENAI_MODEL: Model name used for image summarization.
  • OPENAI_IMAGE_SUMMARY_PROMPT: Prompt used to summarize each image attachment.

Behavior

  • get uses endpoint: /issues/:id.json with include=attachments,journals by default.
  • update uses endpoint: /issues/:id.json (HTTP PUT) and sends only the provided status_id and/or notes fields.
  • image fetches issue attachments, keeps supported image files, and summarizes each image through an OpenAI-compatible chat/completions API.
  • Reads base URL and API key from environment variables only.
  • Reads model URL, key, model name, and image summary prompt from environment variables.
  • Prints JSON output to stdout.
  • Returns non-zero exit code on errors.

Image Command Notes

  • Supported image types: png, jpg, jpeg, webp, gif.
  • Non-image or unsupported attachments are skipped and reported in the output.
  • The command downloads each image attachment and sends it as a data URL to the model.
  • The model prompt can include your own formatting, tone, or output constraints.

Examples

export REDMINE_BASE_URL=https://redmine.example.com
export REDMINE_API_KEY=xxxx
export OPENAI_API_URL=https://api.openai.com/v1
export OPENAI_API_KEY=xxxx
export OPENAI_MODEL=gpt-4.1-mini
export OPENAI_IMAGE_SUMMARY_PROMPT="Summarize what this image shows, explain its likely relevance to the issue, and keep the answer concise."

node scripts/redmine.js get --id 123
node scripts/redmine.js get --id 123 --include attachments,journals,watchers
node scripts/redmine.js update --id 123 --status_id 3 --notes "Issue fixed and verified"
node scripts/redmine.js update --id 123 --status_id 3
node scripts/redmine.js update --id 123 --notes "Need more logs from QA"
node scripts/redmine.js image --id 123

版本历史

共 1 个版本

  • v1.0.5 当前
    2026-05-03 09:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,888
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,314
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 328,948