Skip to content

Instantly share code, notes, and snippets.

View joeswann's full-sized avatar

Joe Swann joeswann

View GitHub Profile
@joeswann
joeswann / countries.js
Created December 12, 2021 20:11
Country List w/ iso2
[
{iso: 'NZ',name: 'New Zealand', },
{iso: 'AU',name: 'Australia', },
{iso: 'US',name: 'United States', },
{iso: 'GB',name: 'United Kingdom', },
{iso: 'AF',name: 'Afghanistan', },
{iso: 'AX',name: 'Åland Islands', },
{iso: 'AL',name: 'Albania', },
{iso: 'DZ',name: 'Algeria', },
{iso: 'AS',name: 'American Samoa', },
@joeswann
joeswann / bash_pull_request.sh
Created March 25, 2025 00:29
Bash Pull Request – CLI Workflow
pr() {
pr=$(gh pr list --limit 20 | fzf --height 40% --reverse --border | awk '{print $1}')
if [ -n "$pr" ]; then
current_user=$(git config user.name)
gh pr review "$pr" --approve -b "Reviewed by: $current_user"
gh pr merge "$pr" --body "Accepted by: $current_user"
else
echo "No PR selected."
fi
}