chmod +x *.sh
./set-aliases.sh
./install-exts.sh
mkdir -p ~/.config/prs/ && mv gh-prs--config.yml ~/.config/prs/config.yml
Last active
January 25, 2025 23:14
-
-
Save micalevisk/cb06fa7749891a78e0369623bb642ec6 to your computer and use it in GitHub Desktop.
My general purposes GitHub CLI (gh https://cli.github.com) aliases and extensions stuff
This file contains 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
defaults: | |
view: prs | |
prsLimit: 50 | |
issuesLimit: 25 | |
preview: | |
open: false | |
width: 120 | |
prSections: | |
- title: My PRs | |
filters: 'is:open author:@me' | |
- title: Mentioned | |
filters: 'is:open -author:@me -reviewed-by:@me mentions:@me -author:app/dependabot -author:app/renovate' | |
- title: All on @nestjs | |
filters: 'is:open -label:"status: blocked 🚫" -reviewed-by:@me -commenter:@me draft:false -author:app/dependabot -author:app/renovate -author:@me org:nestjs -repo:nestjs/class-transformer -repo:nestjs/class-validator -repo:nestjs/typescript-starter' | |
limit: 20 | |
- title: Review requests | |
filters: 'is:pr is:open archived:false sort:updated-desc review-requested:@me' | |
- title: Reviewed by me on @nestjs | |
filters: 'is:open reviewed-by:@me -author:@me draft:false org:nestjs' | |
limit: 10 | |
- title: Commented by me on @nestjs | |
filters: 'is:open -reviewed-by:@me -author:@me commenter:@me org:nestjs' | |
limit: 5 | |
# - title: NestJS core team's PRs | |
# filters: \ | |
# is:open -author:app/dependabot -author:app/renovate author:kamilmysliwiec | |
# author:jmcdo29 author:BrunnerLivio author:nartc author:johnbiundo author:MarkPieszak author:thomrick author:valorkin | |
issuesSections: | |
- title: Assigned to Me | |
filters: is:open assignee:@me archived:false | |
- title: All on NestJS core | |
filtesr: is:open -author:@me repo:nestjs/nest |
This file contains 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
#!/usr/bin/env bash | |
## To view pull requests an issues nicely | |
gh extension install dlvhdr/gh-dash | |
## To explore a repository without cloning it | |
gh extension install samcoe/gh-repo-explore | |
## To preview GitHub markdown | |
gh extension install yusukebe/gh-markdown-preview | |
## To download folders and files from a GitHub repo without cloning it | |
gh extension install yuler/gh-download |
This file contains 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
#!/usr/bin/env bash | |
## Open issue on browser | |
gh alias set 'ivw' 'issue view --web' | |
## Open pull request on browser | |
gh alias set 'prvw' 'pr view --web' | |
## Shallow clone a repository | |
gh alias set 'sclone' 'repo clone "$1" -- --depth=1' | |
## List all open issues at @nestjs/nest repository that you've commented | |
gh alias set 'nestjs-issues' 'issue -R nestjs/nest list --search "is:open commenter:@me -author:app/dependabot -author:app/renovate"' | |
## List all open issues at @nestjs/nest repository sorted by least commented | |
gh alias set 'nestjs-all-issues' 'issue -R nestjs/nest list --search "is:open sort:comments-asc -author:app/dependabot -author:app/renovate"' | |
## List all open issues at @nestjs/nest repository that has no comments | |
gh alias set 'nestjs-all-issues-pending' 'issue -R nestjs/nest list --search "is:open comments:0 sort:updated-asc -author:app/dependabot -author:app/renovate"' | |
## Take issue on CodeMeistre repos | |
gh alias set take 'issue edit --add-assignee "@me" --add-label "[status] in progress" --remove-label "[status] accepted" --remove-label "[status] blocked" --remove-label "[status] changes needed" --remove-label "[status] help wanted" --remove-label "[status] on hold" --remove-label "[status] review needed"' | |
## Approve a PR | |
gh alias set ok 'pr review --approve' | |
gh alias set d 'dash' | |
gh alias set 'cdev' 'pr create --base dev' | |
gh alias set 'cprod' 'pr create --base main' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment