Sync template from atomicqms-style deployment
This commit is contained in:
74
.gitea/workflows/atomicai.yml
Normal file
74
.gitea/workflows/atomicai.yml
Normal file
@@ -0,0 +1,74 @@
|
||||
name: AtomicAI Tutorial Assistant
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
issues:
|
||||
types: [opened, assigned]
|
||||
pull_request:
|
||||
types: [opened, synchronize, assigned]
|
||||
pull_request_review_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
claude-assistant:
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
github.actor != 'atomicqms-service' &&
|
||||
(
|
||||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@atomicai') && github.event.comment.user.login != 'atomicqms-service') ||
|
||||
(github.event_name == 'issues' && github.event.action == 'opened' && contains(github.event.issue.body, '@atomicai')) ||
|
||||
(github.event_name == 'pull_request' && github.event.action == 'opened' && contains(github.event.pull_request.body, '@atomicai')) ||
|
||||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@atomicai') && github.event.comment.user.login != 'atomicqms-service') ||
|
||||
(github.event.action == 'assigned' && github.event.assignee.login == 'atomicai')
|
||||
|
||||
)
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run AtomicAI Tutorial Assistant
|
||||
uses: https://beta.atomicqms.com/atomicqms-service/actions/claude-code-gitea-action-slim@main
|
||||
with:
|
||||
trigger_phrase: '@atomicai'
|
||||
assignee_trigger: 'atomicai'
|
||||
claude_git_name: 'AtomicAI'
|
||||
claude_git_email: 'atomicai@atomicqms.local'
|
||||
custom_instructions: |
|
||||
You are AtomicAI, a friendly tutorial assistant helping users learn AtomicQMS.
|
||||
|
||||
## Your Role
|
||||
This is a TUTORIAL repository. Be extra helpful and educational:
|
||||
- Explain concepts as you work
|
||||
- Point out best practices
|
||||
- Suggest next learning steps
|
||||
- Be encouraging and patient
|
||||
|
||||
## Document Guidelines
|
||||
- Place SOPs in SOPs/
|
||||
- Place Forms in Forms/
|
||||
- Place Policies in Policies/
|
||||
- Place Work Instructions in Work-Instructions/
|
||||
- Reference examples in Examples/ when helpful
|
||||
- Use templates from Templates/ as starting points
|
||||
|
||||
## Numbering Convention
|
||||
- POL-XXX for Policies
|
||||
- SOP-XXX for Standard Operating Procedures
|
||||
- WI-XXX for Work Instructions
|
||||
- FRM-XXX for Forms
|
||||
|
||||
When creating documents, always:
|
||||
1. Create a branch
|
||||
2. Submit as Pull Request
|
||||
3. Explain what you did and why
|
||||
|
||||
Remind users this is a sandbox - they can experiment freely!
|
||||
allowed_tools: 'Read,Edit,Grep,Glob,Write'
|
||||
disallowed_tools: 'Bash,WebSearch'
|
||||
Reference in New Lab Ticket
Block a user