Compare commits
7
Commits
ee97ae20f8
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccd9cd9c94 | ||
|
|
f310eeba9b | ||
|
|
f956aee811 | ||
|
|
2146dd3f46 | ||
|
|
393cda8785 | ||
|
|
4fbf5c6b53 | ||
|
|
cdd2202839 |
@@ -0,0 +1,51 @@
|
||||
name: Claude Assistant for Gitea
|
||||
|
||||
on:
|
||||
# Trigger on issue comments (works on both issues and pull requests in Gitea)
|
||||
issue_comment:
|
||||
types: [created]
|
||||
# Trigger on issues being opened or assigned
|
||||
issues:
|
||||
types: [opened, assigned]
|
||||
# Note: pull_request_review_comment has limited support in Gitea
|
||||
# Use issue_comment instead which covers PR comments
|
||||
|
||||
jobs:
|
||||
claude-assistant:
|
||||
# Basic trigger detection - check for @claude in comments or issue body
|
||||
if: |
|
||||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || github.event.action == 'assigned'))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
# Note: Gitea Actions may not require id-token: write for basic functionality
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run Claude Assistant
|
||||
uses: markwylde/claude-code-gitea-action@gitea
|
||||
with:
|
||||
gitea_api_url: "https://gitea.inventory-plus-plus.com/api/v1"
|
||||
gitea_token: ${{ secrets.GITEA_TOKEN }} # Use standard workflow token
|
||||
# anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
# Prefer claude_code_oauth_token over anthropic_api_key (cheaper!)
|
||||
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
timeout_minutes: "60"
|
||||
trigger_phrase: "@claude"
|
||||
assignee_trigger: "@claude"
|
||||
# Needed due to bug: https://github.com/anthropics/claude-code-action/issues/1416
|
||||
model: "claude-sonnet-5"
|
||||
# Optional: Customize for Gitea environment
|
||||
custom_instructions: |
|
||||
You are working in a Gitea environment. Be aware that:
|
||||
- Some GitHub Actions features may behave differently
|
||||
- Focus on core functionality and avoid advanced GitHub-specific features
|
||||
- Use standard git operations when possible
|
||||
env:
|
||||
GITEA_SERVER_URL: "https://gitea.inventory-plus-plus.com"
|
||||
@@ -249,6 +249,27 @@ against the live API doesn't exist yet.
|
||||
you test multiple identities/accounts side by side. Never enable this
|
||||
outside local development.
|
||||
|
||||
## Gitea
|
||||
|
||||
- This project is hosted on a self-hosted **Gitea** instance at
|
||||
`gitea.inventory-plus-plus.com` (repo:
|
||||
`angel/inventory-plus-plus`), not GitHub - the `origin` remote points at
|
||||
it over SSH. Issues, pull requests, wiki, and CI (Gitea Actions - see the
|
||||
Tests badge at the top of `README.md`) all live there rather than on
|
||||
GitHub, even though the tooling/workflow (Actions YAML, PR-based review)
|
||||
looks GitHub-shaped.
|
||||
- A Gitea MCP server is available in agent sessions (tools prefixed
|
||||
`mcp__angel__...` - e.g. `issue_read`/`issue_write`,
|
||||
`pull_request_read`/`pull_request_write`,
|
||||
`list_pull_requests`/`list_issues`, `list_branches`, `wiki_read`/
|
||||
`wiki_write`) for reading/managing issues, PRs, branches, releases, and
|
||||
the wiki without shelling out to `git`/`gh`. There is no GitHub CLI
|
||||
(`gh`) equivalent here - use these MCP tools or `git` directly instead.
|
||||
- The Gitea MCP server has **no Projects API** - it cannot read or modify
|
||||
Gitea Project boards. Don't attempt to automate Project-board changes
|
||||
(e.g. moving an issue between columns) through it; that has to be done
|
||||
manually in the Gitea UI.
|
||||
|
||||
## Commit conventions
|
||||
|
||||
- Commit messages: imperative mood subject line, no period, body explains
|
||||
|
||||
@@ -17,6 +17,8 @@ Documentation is split up rather than kept in one big doc - start here:
|
||||
- **[`domains/platforms/etsy/COMPLIANCE.md`](./domains/platforms/etsy/COMPLIANCE.md)** - Etsy API usage obligations to keep satisfied when touching the Etsy integration.
|
||||
- **[`diagrams/`](./diagrams)** - architecture and schema diagrams, linked from the Diagrams section below.
|
||||
|
||||
This project is hosted on a self-hosted [Gitea](https://gitea.inventory-plus-plus.com/angel/inventory-plus-plus) instance (not GitHub) - issues, pull requests, CI (the Tests badge above), and the wiki all live there. See `AGENTS.md`'s Gitea section for details, including the Gitea MCP server tools available to AI agents.
|
||||
|
||||
|
||||
## Deploying
|
||||
|
||||
|
||||
Reference in New Issue
Block a user