Skip to content

Commit

Permalink
feat: add gh rebase merge dependabot local
Browse files Browse the repository at this point in the history
  • Loading branch information
aps831 committed Feb 1, 2024
1 parent 4e12dea commit ffcdd7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dot_config/gh/private_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ aliases:
pr-combine-dependabot-combine: 'combine-prs --query "author:app/dependabot -label:no_combine_prs" --skip-pr-check'
pr-rebase-dependabot-remote: '!id="$(gh pr list --search "author:app/dependabot" | fzf | cut -f1)"; [ -n "$id" ] && gh pr comment "$id" -b "@dependabot rebase"'
pr-rebase-merge-dependabot-remote: '!id="$(gh pr list --search "author:app/dependabot" | fzf | cut -f1)"; [ -n "$id" ] && gh pr merge "$id" --rebase'
pr-rebase-merge-dependabot-local: '!pr_branch="$(gh pr list --search "author:app/dependabot" | fzf | cut -f3)"; [ -n "$pr_branch" ] && remote=$(git remote -v | grep github.com | head -n 1 | awk ''{print $1}'') && git fetch $remote $pr_branch:$pr_branch && current_branch=$(git rev-parse --abbrev-ref HEAD) && git rebase $current_branch $pr_branch && git checkout $current_branch && git merge $pr_branch'
pr-list-dependabot: 'pr list --author app/dependabot'
pr-list-dependabot-combine: 'pr list --search "author:app/dependabot -label:no_combine_prs"'
pr-list-dependabot-no-combine: 'pr list --search "author:app/dependabot label:no_combine_prs"'
Expand Down

0 comments on commit ffcdd7d

Please sign in to comment.