chore: add cargo perms and fix Forgejo PR workflows for non-interactive environments #3

Merged
bryan merged 2 commits from chore/forgejo-workflow-cargo-perms into main 2026-03-09 14:39:22 +00:00
Owner

Summary

  • Add cargo/rust toolchain and tea CLI read-only commands to opencode allowed permissions
  • Replace tea pr create with direct Forgejo API calls in ship and update-pr-description skills to fix non-interactive TTY failures
  • Add cross-platform tea config path discovery and instance-aware token extraction

Changes

opencode.json

  • Allow cargo build/check/test/clippy/fmt --check/tree/metadata commands
  • Allow rustc --version, rustup show
  • Allow tea login list, tea pr list

ship/SKILL.md

  • Split push + create PR into separate steps
  • Replace tea pr create with curl-based Forgejo API flow
  • Add inline token extraction from tea config
  • Add API-based PR description update for Forgejo

update-pr-description/SKILL.md

  • Replace hardcoded ~/.config/tea/config.yml with cross-platform path search
  • Replace naive grep token extraction with PyYAML-based instance-matching

Note

Token extraction in ship/SKILL.md uses a simpler grep approach vs. PyYAML in update-pr-description. Consider aligning both to the PyYAML method if multiple tea logins are used.

## Summary - Add cargo/rust toolchain and tea CLI read-only commands to opencode allowed permissions - Replace `tea pr create` with direct Forgejo API calls in ship and update-pr-description skills to fix non-interactive TTY failures - Add cross-platform tea config path discovery and instance-aware token extraction ## Changes ### opencode.json - Allow cargo build/check/test/clippy/fmt --check/tree/metadata commands - Allow rustc --version, rustup show - Allow tea login list, tea pr list ### ship/SKILL.md - Split push + create PR into separate steps - Replace tea pr create with curl-based Forgejo API flow - Add inline token extraction from tea config - Add API-based PR description update for Forgejo ### update-pr-description/SKILL.md - Replace hardcoded ~/.config/tea/config.yml with cross-platform path search - Replace naive grep token extraction with PyYAML-based instance-matching ## Note Token extraction in ship/SKILL.md uses a simpler grep approach vs. PyYAML in update-pr-description. Consider aligning both to the PyYAML method if multiple tea logins are used.
tea pr create requires TTY confirmation and fails in agent environments. Replace with direct Forgejo API calls via curl. Also adds cross-platform tea config path discovery and instance-aware token extraction.
bryan merged commit 5ba6f1e36a into main 2026-03-09 14:39:22 +00:00
bryan deleted branch chore/forgejo-workflow-cargo-perms 2026-03-09 14:39:22 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bryan/dotfiles!3
No description provided.