docs(agents): make issue-tracker.md tool-neutral and name tea as the supported tool
issue-tracker.md becomes Conventions (operations as Gitea concepts) and a Tool section with one tea command per operation, tea api for blocked_by dependencies. It names no skill or MCP tool, and drops the maintainer-only token and account-lookup lines. setup.md adds The tracker: install tea 0.14.2 or later and log in with a token of your own account. dev-setup.sh warns when tea is missing or older; it installs nothing. Closes #267 Assisted-by: Claude Code
This commit is contained in:
1 parent
789b481b5d
commit
abde765472
4 files changed
+138
-13
No files matched your search
@@ -158,4 +158,25 @@ for hook in pre-commit commit-msg pre-push; do
|
||||
fi
|
||||
done
|
||||
|
||||
# tea is the supported tracker client (docs/agents/issue-tracker.md); only warn, the hooks do not need it.
|
||||
tea_min=0.14.2
|
||||
tea_see="see docs/contributing/setup.md (The tracker)"
|
||||
if ! command -v tea >/dev/null 2>&1; then
|
||||
echo "warning: tea $tea_min or later is not on PATH; $tea_see." >&2
|
||||
else
|
||||
# The first line reads `Version: 0.16.0<TAB>golang: ...`, the number possibly in ANSI bold.
|
||||
tea_version="$(tea --version 2>/dev/null | tr -d '\033' \
|
||||
| sed -nE '1s/^Version: (\[[0-9;]*m)?([0-9]+\.[0-9]+\.[0-9]+).*/\2/p' || true)"
|
||||
if [ -z "$tea_version" ]; then
|
||||
echo "warning: could not read the version of tea (need $tea_min or later); $tea_see." >&2
|
||||
else
|
||||
IFS=. read -r t_major t_minor t_patch <<< "$tea_version"
|
||||
IFS=. read -r m_major m_minor m_patch <<< "$tea_min"
|
||||
if [ "$t_major" -lt "$m_major" ] || { [ "$t_major" -eq "$m_major" ] && {
|
||||
[ "$t_minor" -lt "$m_minor" ] || { [ "$t_minor" -eq "$m_minor" ] && [ "$t_patch" -lt "$m_patch" ]; }; }; }; then
|
||||
echo "warning: tea $tea_version is older than $tea_min; $tea_see." >&2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Done: git commit now runs the hooks with the tools in $root/.venv/bin and the collections in $collections."
|
||||
Reference in new issue
Block a user