You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ -n "${general_reviews}" || -n "${inline_comments}" ]]; then
91
-
printf "I submitted the changes to Github Copilot to review, keep in mind that Github Copilot doesn't use a very strong AI model so it may not be accurate.\n"
92
-
93
-
printf "🤖 GitHub Copilot comments on PR #%s:\n" "${pr_num}"
94
-
95
-
if [[ -n "${general_reviews}" ]]; then
96
-
printf "## Copilot review comments\n"
97
-
printf "%s\n" "${general_reviews}\n------\n"
98
-
fi
99
-
100
-
if [[ -n "${inline_comments}" ]]; then
101
-
printf "\n## Copilot inline comments\n"
102
-
printf "%s\n" "${inline_comments}"
103
-
fi
104
-
105
-
printf "⚠️ Be mindful that GitHub Copilot's comments may be inaccurate. Ignore any invalid or out of context comments. Please review them carefully before applying any changes. Discuss recommendations with me if the path forward is unclear.\n"
106
-
fi
56
+
copilot-comments () {
57
+
# Fetches unresolved GitHub Copilot comments for the current branch's PR, useful for piping to pbcopy and providing to Claude Code etc.
58
+
local -r current_branch="$(git branch --show-current 2>/dev/null)" || {
59
+
printf "Error: Not in a git repository or no current branch\n" >&2
60
+
return 1
61
+
}
62
+
local base_branch pr_num general_reviews inline_comments all_prs owner repo
if [[ -n "${general_reviews}" || -n "${inline_comments}" ]]
121
+
then
122
+
printf "I submitted the changes to Github Copilot to review, keep in mind that Github Copilot doesn't use a very strong AI model so it may not be accurate.\n"
printf "⚠️ Be mindful that GitHub Copilot's comments may be inaccurate. Ignore any invalid or out of context comments. Please review them carefully before applying any changes. Discuss recommendations with me if the path forward is unclear.\n"
138
+
else
139
+
printf "No unresolved Copilot comments found on PR #%s\n" "${pr_num}"
Copy file name to clipboardExpand all lines: 4-aliases.rc
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,8 @@ alias tree="tree -ChF"
86
86
alias mtr="sudo mtr"
87
87
alias iftop="sudo iftop -i en0"
88
88
alias ls='gls --color=auto -AHhF --group-directories-first'
89
-
alias updatedb='sudo /usr/libexec/locate.updatedb'
89
+
alias updatedb='/Users/samm/bin/updatedb-macos.sh'
90
+
alias locate='locate -d ~/.locatedb'
90
91
alias netwatch='lsof -i'
91
92
alias flushdns='sudo discoveryutil udnsflushcaches'
92
93
alias httpserver='sudo python3 -m http.server 80'
@@ -111,7 +112,15 @@ alias kubes-busybox='kubectl run -i --tty loader --image=busybox /bin/sh'
111
112
alias k='kubectl'
112
113
113
114
# VSC
114
-
alias code='/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code'
115
+
# alias code='/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code'
116
+
# TODO: Working around vscode / macOS broken sandbox - temporarily replace this with a function that opens '/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code' if it exists, otherwise it opens '/Applications/Visual\ Studio\ Code 2.app/Contents/Resources/app/bin/code'
117
+
function code() {
118
+
if [ -f /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code ]; then
0 commit comments