-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhub.toml.example
More file actions
98 lines (87 loc) · 3.52 KB
/
Copy pathhub.toml.example
File metadata and controls
98 lines (87 loc) · 3.52 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# hub.toml — per-device project and workflow configuration
# Copy to hub.toml (gitignored) and edit for this machine.
# Or use hub-private/devices/<device>.toml (symlinked here by just setup-private).
#
# Schema: config/schemas/hub.toml.schema.json
# Taplo LSP will validate this file automatically if .taplo.toml is present.
# ── Credentials ───────────────────────────────────────────────────────────────
# Values are 1Password references (op://Vault/Item/field) or plain strings.
# Resolved at startup — no op run wrapper needed.
[credentials]
github_token = "op://Scripts/GitHub/personal-access-token"
github_username = "your-github-username"
# linear_token = "op://Scripts/Linear/api-key" # required if using linear workflows
# loki_token = "op://Scripts/Loki/token" # optional; omit for VPN-only endpoints
# ── Projects without deployments ──────────────────────────────────────────────
# Use [[project.workflow]] for codebase-level observations (PRs, issues, CI).
[[project]]
name = "hub"
repo = "ooloth/hub"
[[project.workflow]]
name = "github-prs"
[[project.workflow]]
name = "github-issues"
[[project.workflow]]
name = "github-ci"
# lookback = "48h" # default: 24h
# ── Projects with deployments ─────────────────────────────────────────────────
# Use [[project.environment]] when the project runs somewhere.
# Each environment carries the platform context its workflows need.
# [[project]]
# name = "my-app"
# repo = "org/my-app"
#
# [[project.workflow]]
# name = "github-prs"
# exclude_authors = ["dependabot", "renovate"]
#
# [[project.workflow]]
# name = "github-issues"
# assigned_only = true
# exclude_labels = ["wontfix", "duplicate"]
#
# [[project.workflow]]
# name = "github-ci"
# lookback = "48h"
#
# [[project.environment]]
# env = "prod"
# gcp_project = "my-org-prod"
# service = "my-app"
#
# [[project.environment.workflow]]
# name = "errors-gcp"
# exclude_users = ["bot@my-org.com"]
#
# [[project.environment.workflow]]
# name = "warnings-gcp"
# exclude_users = ["bot@my-org.com"]
#
# [[project.environment.workflow]]
# name = "user-activity-gcp"
# include_users = ["alice@my-org.com"]
# exclude_users = ["bot@my-org.com"]
#
# [[project.environment]]
# env = "dev"
# cluster = "my-cluster"
# namespace = "my-app"
# loki_endpoint = "https://loki.example.com" # required by loki-logs workflows
# grafana_url = "https://grafana.example.com" # enables ↩ to open in Grafana Explore
#
# [[project.environment.workflow]]
# name = "loki-logs"
# title = "app errors" # required; shown in hub status
# query = '{app="my-app"} | logfmt | level="error"' # complete LogQL expression
# lookback = "1h" # default: 1h
# error_threshold = 10 # default: 10
#
# [[project.environment.workflow]]
# name = "loki-logs"
# title = "worker panics"
# query = '{app="my-app",component="worker"} |= "panic"'
# error_threshold = 1
# ── Monitor ───────────────────────────────────────────────────────────────────
# Non-project observations: home server health, calendar, etc.
# [[monitor.workflow]]
# name = "home-server-health"