Repository navigation
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
61 lines (54 loc) · 2.9 KB
/
Copy pathTaskfile.yaml
File metadata and controls
61 lines (54 loc) · 2.9 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
# https://taskfile.dev
version: '3'
tasks:
lint:
desc: Run base linters
cmds:
- golangci-lint run
test:
desc: Run tests
cmds:
- go test ./... {{.CLI_ARGS}}
log:
desc: Watch for glow logs
aliases: [tail]
cmds:
- cmd: tail -f ~/Library/Caches/glow/glow.log
platforms: [darwin]
- cmd: tail -f ~/.cache/glow/glow.log
platforms: [linux, windows]
labels:sync:
desc: Create or update all repository labels
cmds:
- gh label create "type:bug" --color "d73a4a" --description "Something isn't working correctly" --force
- gh label create "type:feature" --color "a2eeef" --description "New functionality request" --force
- gh label create "type:docs" --color "0075ca" --description "Documentation improvements" --force
- gh label create "type:chore" --color "fef2c0" --description "Maintenance, dependencies, CI" --force
- gh label create "status:triage" --color "fbca04" --description "Needs review and categorization" --force
- gh label create "status:accepted" --color "0e8a16" --description "Issue is valid and will be addressed" --force
- gh label create "status:blocked" --color "b60205" --description "Waiting on external dependency or decision" --force
- gh label create "status:wontfix" --color "ffffff" --description "Will not be addressed" --force
- gh label create "ready-for-pr" --color "7057ff" --description "Ready for implementation - PRs welcome" --force
- gh label create "priority:high" --color "ff6600" --description "Should be addressed soon" --force
- gh label create "priority:low" --color "c5def5" --description "Nice to have, no urgency" --force
- echo "Labels synced successfully"
labels:audit:
desc: Output all issues with labels for AI agent review
cmds:
- |
echo "=== LABEL AUDIT REPORT ==="
echo ""
echo "Current repository labels:"
gh label list --json name,description --jq '.[] | " - \(.name): \(.description)"'
echo ""
echo "=== ALL OPEN ISSUES ==="
gh issue list --state open --json number,title,labels,body --jq '.[] | "Issue #\(.number): \(.title)\nLabels: \(.labels | map(.name) | join(\", \") | if . == \"\" then \"(none)\" else . end)\nBody: \(.body | split(\"\n\")[0:3] | join(\" \") | .[0:200])\n---"'
echo ""
echo "=== ALL CLOSED ISSUES (last 50) ==="
gh issue list --state closed --limit 50 --json number,title,labels --jq '.[] | "Issue #\(.number): \(.title) | Labels: \(.labels | map(.name) | join(\", \") | if . == \"\" then \"(none)\" else . end)"'
echo ""
echo "Review the above and use 'gh issue edit <number> --add-label <label> --remove-label <label>' to fix labels."
labels:apply:
desc: Apply a label to an issue (usage - task labels:apply -- 123 type:bug)
cmds:
- gh issue edit {{index .CLI_ARGS 0}} --add-label {{index .CLI_ARGS 1}}