Prompt #149
Back to promptsn8n Workflow with Project Tag
- Variables
- repo, automation_task, branch, extra_tags
- Tags
- stack-aware,n8n,workflow,project-tag,gitea,rag-stack
- Source
- research-2026-05-01-stack-aware
- Use count
- 0
- Created
- 2026-05-01T18:30:48.776731+00:00
- Updated
- 2026-05-01T18:30:48.776731+00:00
Content
Design an n8n workflow tagged `project:{repo}` that automates {automation_task} for the {repo} Gitea repo.
Workflow structure:
1. Trigger: Webhook node β receives push events from git.joelduss.xyz/ubuadmin/{repo} (Gitea webhook)
2. Filter: IF node β only process `{branch}` branch pushes
3. Transform: Code node β extract changed files, author, commit SHA
4. Action: HTTP Request node β POST https://orchestrator.joelduss.xyz/api/v1/lessons/ (Bearer auth)
Body: {{title: "...", body: "...", tags: "project:{repo},{extra_tags}"}}
5. Notify: (optional) HTTP to n8n webhook or Gitea comment
6. Error handler: on failure, POST to rag-stack /api/v1/orchestrator/run to log incident
Tag convention: every workflow MUST have tag `project:{repo}` for project-specific n8n flows.
Global (cross-project) workflows leave repo tag empty.