From 7d3540483b81340f1729e9876954b8512868c93d Mon Sep 17 00:00:00 2001 From: jihoson Date: Tue, 17 Feb 2026 04:16:34 +0900 Subject: [PATCH 1/2] Document Gitea workflow for future sessions --- AGENTS.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 4e5af57..ee1430b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -42,3 +42,31 @@ Current git history is minimal (`Initial commit`), so enforce clear conventions ## Security & Configuration Tips Do not commit secrets. Copy `.env.example` to `.env` locally. Restrict Slack access with `SLACK_ALLOWED_USER_ID` and `SLACK_ALLOWED_CHANNEL_ID` before running in shared workspaces. + +## Git & Gitea Workflow Notes +Use `tea` (Gitea CLI), not `gh`. + +- Check login: + - `tea login ls` + - `tea whoami` +- Create/update feature branch: + - `git checkout -b ` (or `git checkout `) + - `git add ` + - `git commit -m ""` +- Push to Gitea: + - Normal: `git push -u origin ` + - If HTTP username prompt fails in this environment, use the token from `~/.config/tea/config.yml`: + - `TOKEN=$(sed -n 's/^[[:space:]]*token: //p' ~/.config/tea/config.yml | head -n1)` + - `git push "http://agentson:${TOKEN}@localhost:3000/jihoson/LazyEnter.git" ` +- After token-based push, ensure tracking is on `origin/` (not token URL): + - `git fetch origin :refs/remotes/origin/` + - `git branch --set-upstream-to=origin/ ` +- Create PR on Gitea: + - `tea pr create --base main --head --title "" --description "<body>"` +- Sync local main: + - `git checkout main` + - `git pull --ff-only` + +Safety: +- Do not commit or print tokens in logs/docs. +- Keep unrelated local files (for example `uv.lock`) out of PRs unless intentionally changed. -- 2.49.1 From 6a29c5f3dd99abfe50a2f51d57bea43bbacd31d6 Mon Sep 17 00:00:00 2001 From: jihoson <kiparang7th@gmail.com> Date: Tue, 17 Feb 2026 04:18:24 +0900 Subject: [PATCH 2/2] Enforce no-work-on-main rule for agents --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index ee1430b..81d8b41 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -46,6 +46,10 @@ Restrict Slack access with `SLACK_ALLOWED_USER_ID` and `SLACK_ALLOWED_CHANNEL_ID ## Git & Gitea Workflow Notes Use `tea` (Gitea CLI), not `gh`. +Hard rule: +- Never implement changes, stage files, or commit on `main`. +- Always create/use a feature branch first, and merge via PR. + - Check login: - `tea login ls` - `tea whoami` -- 2.49.1