Skip to content

Commit 9bdaae6

Browse files
committed
hi
1 parent 46e1c8e commit 9bdaae6

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

.bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ fi
405405
# -----------------------------------------------------------------------------
406406

407407
# Ripgrep refuses to build a good UI https://github.com/BurntSushi/ripgrep/issues/196
408-
alias rg='rg --max-columns 200'
408+
alias rg='rg --ignore-case --max-columns 200'
409409

410410
######## FZF ########
411411
# -----------------------------------------------------------------------------

.grrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,25 @@ function vpn_fix() {
8080
echo -e "${LP}Set your AWS Params and VPNme now${NC}"
8181
echo "When you're done and want to reenable GlobalProtect, type 'gpon'"
8282
}
83+
84+
schedule_production_deploy() {
85+
local last_production_commit="$1"
86+
local time_to_deploy="$2"
87+
# git fetch --all
88+
local master_commit
89+
master_commit=$(git rev-parse origin/master)
90+
local commits
91+
commits=$(gl --merges "$last_production_commit".."$master_commit")
92+
commits=$(echo "$commits" | sed "s/Megan Bananzadeh/<@megan.bananzadeh>/g")
93+
commits=$(echo "$commits" | sed "s/Delphine Foo-Matkin/<@delphine.foo-matkin>/g")
94+
commits=$(echo "$commits" | sed "/Merge branch 'master'/d")
95+
commits=$(echo "$commits" | sed "s/^/• /g")
96+
local merge_count
97+
merge_count=$(echo "$commits" | wc -l)
98+
99+
local message
100+
message=":redlight: :clock3: A *Production deploy has been scheduled for ${time_to_deploy} PT today.* Say '<@placebo> pause deploy' to cancel\\n\\nThe difference between production (${last_production_commit}) and UAT (${master_commit}) is *${merge_count} stories:*\\n\\n${commits}"
101+
102+
go_tell_placebo "$message"
103+
}
104+

code/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,15 @@
9999
"settings.switchToJSON"
100100
]
101101
},
102-
"workbench.activityBar.visible": true
102+
"workbench.activityBar.visible": true,
103+
"githubIssues.queries": [
104+
{
105+
"label": "My Issues",
106+
"query": "default"
107+
},
108+
{
109+
"label": "Created Issues",
110+
"query": "author:${user} state:open repo:${owner}/${repository} sort:created-desc"
111+
}
112+
]
103113
}

0 commit comments

Comments
 (0)