-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtriggers.example.json
More file actions
22 lines (20 loc) · 2.32 KB
/
Copy pathtriggers.example.json
File metadata and controls
22 lines (20 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"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": "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": "label", "any": ["pi:frontend"] }, "run": { "kind": "gitlab", "flow": "frontend-fix" } },
{ "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" } },
{ "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" } }
]
}