Skip to content

Instantly share code, notes, and snippets.

View indigoviolet's full-sized avatar
🐈

Venky Iyer indigoviolet

🐈
View GitHub Profile
@indigoviolet
indigoviolet / add-github-buttons-to-graphite
Last active October 9, 2024 18:33 — forked from phoebejaffe/add-github-buttons-to-graphite
JS to add Github buttons to Graphite (especially great with Arc Browser Boosts)
function isGraphitePr() {
return window.location.hostname === 'app.graphite.dev' && window.location.pathname.includes('/github/pr/')
}
function makeGithubPrUrl() {
const pieces = window.location.pathname.replace('/github/pr/', '').split('/');
return `https://github.com/${pieces[0]}/${pieces[1]}/pull/${pieces[2].split('/')[0]}/?from=graphite`;
}
// fn determines whether the element should hide itself
@indigoviolet
indigoviolet / sub_to_label.sh
Last active June 6, 2025 07:29
Label all issues in a repo that I'm subscribed to
#!/bin/bash
# Script to find all issues in a repository that a user is subscribed to and add a label
# Check if gum is installed
if ! command -v gum &> /dev/null; then
echo "Error: gum is not installed. Install it with:"
echo " brew install gum"
echo " or visit: https://github.com/charmbracelet/gum"
exit 1