Skip to content

Commit 7e51ed9

Browse files
committed
ci: add gh-dash.yml
1 parent 13232a2 commit 7e51ed9

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

.gh-dash.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# yaml-language-server: $schema=https://dlvhdr.github.io/diffnav/configuration/gh-dash/schema.json
2+
prSections:
3+
- title: Mine
4+
filters: is:open author:@me repo:dlvhdr/diffnav updated:>={{ nowModify "-3w" }} sort:updated-desc
5+
layout:
6+
author:
7+
hidden: true
8+
- title: Review
9+
filters: repo:dlvhdr/diffnav -author:@me is:open updated:>={{ nowModify "-2.5w" }}
10+
- title: All
11+
filters: repo:dlvhdr/diffnav
12+
issuesSections:
13+
- title: Open
14+
filters: author:@me repo:dlvhdr/diffnav is:open -author:@me sort:reactions
15+
- title: Creator
16+
filters: author:@me repo:dlvhdr/diffnav is:open
17+
- title: All
18+
filters: repo:dlvhdr/diffnav sort:reactions
19+
20+
pager:
21+
diff: diffnav
22+
defaults:
23+
view: prs
24+
refetchIntervalMinutes: 5
25+
layout:
26+
prs:
27+
repoName:
28+
grow: true,
29+
width: 10
30+
hidden: false
31+
base:
32+
hidden: true
33+
34+
preview:
35+
open: true
36+
width: 84
37+
prsLimit: 20
38+
issuesLimit: 20
39+
repoPaths:
40+
dlvhdr/*: ~/code/personal/*
41+
42+
keybindings:
43+
universal:
44+
- key: g
45+
name: lazygit
46+
command: >
47+
cd {{.RepoPath}} && lazygit
48+
prs:
49+
- key: O
50+
builtin: checkout
51+
- key: m
52+
command: gh pr merge --admin --repo {{.RepoName}} {{.PrNumber}}
53+
- key: C
54+
name: code review
55+
command: >
56+
tmux new-window -c {{.RepoPath}} '
57+
nvim -c ":silent Octo pr edit {{.PrNumber}}"
58+
'
59+
- key: a
60+
name: lazygit add
61+
command: >
62+
cd {{.RepoPath}} && git add -A && lazygit
63+
- key: v
64+
name: approve
65+
command: >
66+
gh pr review --repo {{.RepoName}} --approve --body "$(gum input --prompt='Approval Comment: ')" {{.PrNumber}}
67+
68+
theme:
69+
ui:
70+
sectionsShowCount: true
71+
table:
72+
compact: false
73+
colors:
74+
text:
75+
primary: "#E2E1ED"
76+
secondary: "#666CA6"
77+
inverted: "#242347"
78+
faint: "#B0B3BF"
79+
warning: "#E0AF68"
80+
success: "#3DF294"
81+
background:
82+
selected: "#1B1B33"
83+
border:
84+
primary: "#383B5B"
85+
secondary: "#39386B"
86+
faint: "#2B2B40"

0 commit comments

Comments
 (0)