mirror of
https://github.com/terraphim/gitea-infrastructure.git
synced 2026-07-16 00:00:32 +02:00
feat(gitea-skill): Rewrite Gitea agent skill with verified API patterns
Rewrites SKILL.md with patterns verified against live Gitea 1.22.6: - Milestones as project containers (project board API does not exist) - Scoped workflow labels with mutual exclusivity - Issue dependencies using IssueMeta format - 1Password token retrieval via op read - Default repo terraphim/agent-tasks with env var overrides Adds setup-labels.sh for idempotent repo and label creation. Includes research and design documents from disciplined development. Adds pre-commit config adapted for infrastructure project. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
# Adapted from terraphim-ai pre-commit config for infrastructure project
|
||||
|
||||
default_language_version:
|
||||
python: python3.12
|
||||
|
||||
repos:
|
||||
# General code quality hooks
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
name: Trim trailing whitespace
|
||||
- id: end-of-file-fixer
|
||||
name: Fix end of files
|
||||
- id: check-yaml
|
||||
name: Check YAML syntax
|
||||
- id: check-json
|
||||
name: Check JSON syntax
|
||||
- id: check-case-conflict
|
||||
name: Check for case conflicts
|
||||
- id: check-merge-conflict
|
||||
name: Check for merge conflicts
|
||||
- id: detect-private-key
|
||||
name: Detect private keys
|
||||
- id: check-added-large-files
|
||||
name: Check for large files
|
||||
args: ['--maxkb=1000']
|
||||
|
||||
# Secret detection
|
||||
- repo: https://github.com/Yelp/detect-secrets
|
||||
rev: v1.5.0
|
||||
hooks:
|
||||
- id: detect-secrets
|
||||
name: Detect secrets
|
||||
args: ['--baseline', '.secrets.baseline']
|
||||
exclude: .*\.template$|.*\.sample$
|
||||
description: "Detect secrets in staged code"
|
||||
|
||||
# Global exclusions
|
||||
exclude: |
|
||||
(?x)(
|
||||
^\.cachebro/.*
|
||||
)
|
||||
Reference in New Issue
Block a user