#issue #jira #tempo #time #time-tracking #logging #atlassian

bin+lib tempomat

最小化 Tempo+Jira 时间记录 CLI

6 个版本

0.3.0 2023 年 4 月 13 日
0.2.0 2023 年 4 月 9 日
0.1.3 2023 年 4 月 9 日

#587身份验证

每月 26 次下载

MIT 许可证

36KB
841

Tempomat

一个小的 CLI 工具,用于创建 Tempo 工作日志以处理 Jira 问题。

安装

您可以从源代码构建此实用程序,使用 cargo build,或者使用 cargo install tempomat --locked 从 crates.io 获取最新版本。

未来可能还会有 AUR 软件包。

使用方法

首先,您必须获取所有必需的访问令牌

tempomat login --atlassian-instance <your_atlassian_instance>

必需的访问权限

  • Jira:由于 Tempo API 需要Atlassian 账户和 Jira 问题 ID,这两个都只能从 Jira API 获取,因此需要此访问权限。
  • Tempo:应该很直观

记录时间

此工具将自动通过当前分支名称检测您正在处理的当前 Jira 问题密钥(例如,feat/DV-3124PROJ-30_fix_bugs)。如果无法从当前分支检测到问题密钥,您必须使用带有问题密钥的 - 标志。

示例

tempomat log 1h # Logs 1 hour to the current issue
tempomat log -m"Implement Bar" 30s # Logs 30 seconds to the current issue with a description
tempomat log -i PROJ-5 30m # Log 30 minutes to the issue PROJ-5
tempomat start # Start a timer for the current issue, you can also use -i <issue> here
tempomat list -i PROJ-5 # Show current timer for issue PROJ-5
tempomat stop -n # Cancel the timer for the current issue, don't pass -n to submit it (-i supported)

TODO

此工具尚未完全完成,请在此处查看进度:TODO.md

依赖关系

~12–28MB
~405K SLoC