-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtriggers.example.json
More file actions
26 lines (24 loc) · 2.89 KB
/
Copy pathtriggers.example.json
File metadata and controls
26 lines (24 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"triggers": [
{ "on": { "type": "cron", "id": "nightly-tidy", "pattern": "0 3 * * *" }, "run": { "kind": "local", "folder": "/absolute/path/to/your/project", "flow": "tidy", "task": "dedupe imports and run the formatter", "image": "pi-job:latest" } },
{ "on": { "type": "cron", "id": "nightly-workflow", "pattern": "30 3 * * *" }, "run": { "kind": "local", "folder": "/absolute/path/to/your/project", "command": "wf run nightly" } },
{ "on": { "type": "label", "any": ["pi:frontend"] }, "run": { "kind": "github", "flow": "frontend-fix", "packages": false, "skillsDir": "/absolute/path/to/your/skills" } },
{ "on": { "type": "comment", "phrase": "@pi" }, "run": { "kind": "github", "flow": "fix", "resume": true, "instructions": "This repo uses pnpm, not npm. Run the type check before opening a PR." } },
{ "on": { "type": "label", "any": ["pi:deploy"] }, "run": { "kind": "github", "flow": "deploy", "secretsProfile": "prod", "secrets": { "STRIPE_KEY": "op://ci-vault/stripe/api-key" } } },
{ "on": { "type": "label", "any": ["pi:wf"] }, "run": { "kind": "github", "command": "wf run" } },
{ "on": { "type": "pull_request", "action": ["labeled"], "any": ["pi:review"] }, "run": { "kind": "github", "flow": "review" } },
{ "on": { "type": "pull_request", "action": ["opened", "synchronize"] }, "run": { "kind": "github", "flow": "review" } },
{ "on": { "type": "pull_request", "action": ["review_submitted"], "reviewState": ["changes_requested"] }, "run": { "kind": "github", "flow": "address-review" } },
{ "on": { "type": "issue", "action": ["closed"], "number": 40, "once": true }, "run": { "kind": "github", "flow": "deploy" } },
{ "on": { "type": "label", "any": ["pi:frontend"] }, "run": { "kind": "gitlab", "flow": "frontend-fix" } },
{ "on": { "type": "label", "any": ["pi:urgent"] }, "run": { "kind": "gitlab", "flow": "fix", "replicas": 2 } },
{ "on": { "type": "comment", "phrase": "@pi" }, "run": { "kind": "gitlab", "flow": "fix" } },
{ "on": { "type": "pull_request", "action": ["open", "update"] }, "run": { "kind": "gitlab", "flow": "review" } },
{ "on": { "type": "label", "any": ["pi:fix"] }, "run": { "kind": "forgejo", "flow": "fix" } },
{ "on": { "type": "comment", "phrase": "@pi" }, "run": { "kind": "forgejo", "flow": "triage", "excludeTools": ["bash", "edit", "write"] } },
{ "on": { "type": "pull_request", "action": ["label_updated"], "any": ["pi:review"] }, "run": { "kind": "forgejo", "flow": "review" } },
{ "on": { "type": "label", "any": ["pi:fix"] }, "run": { "kind": "azure", "flow": "fix", "repository": "widgets", "image": "pi-job:azure" } },
{ "on": { "type": "comment", "phrase": "@pi" }, "run": { "kind": "azure", "flow": "triage", "repository": "widgets", "image": "pi-job:azure" } },
{ "on": { "type": "pull_request", "action": ["created", "updated"] }, "run": { "kind": "azure", "flow": "review", "image": "pi-job:azure" } }
]
}