This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| {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', }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
OlderNewer