agentpr: close and reopen issues #19

Merged
benvin merged 1 commits from benvin/agentpr-issue-state into main 2026-09-20 23:08:35 +10:00
Member

Closing an issue meant falling back to a raw Gitea PATCH with a hand-plumbed token, which is exactly what these binaries exist to avoid.

  • add agentpr issue close and agentpr issue reopen
  • add GetIssue and SetIssueState to the Gitea client
  • fail when the issue is already in the requested state, since Gitea answers a no-op PATCH with 200
  • document the new subcommands in README.md and AGENTS.md

No pr close: closing a pull request stays a human call.

Closing an issue meant falling back to a raw Gitea PATCH with a hand-plumbed token, which is exactly what these binaries exist to avoid. - add `agentpr issue close` and `agentpr issue reopen` - add `GetIssue` and `SetIssueState` to the Gitea client - fail when the issue is already in the requested state, since Gitea answers a no-op PATCH with 200 - document the new subcommands in README.md and AGENTS.md No `pr close`: closing a pull request stays a human call.
unkin-agent added 1 commit 2026-09-20 23:06:26 +10:00
agentpr: close and reopen issues
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
9de9dffab1
- add issue close and issue reopen subcommands
- add GetIssue and SetIssueState to the Gitea client
- fail when the issue is already in the requested state
- document the new subcommands in README.md and AGENTS.md
benvin merged commit 0cf41409f1 into main 2026-09-20 23:08:35 +10:00
benvin deleted branch benvin/agentpr-issue-state 2026-09-20 23:08:35 +10:00
Sign in to join this conversation.