Skip to content

Commit

Permalink
scripts: update dependabot script
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Dec 24, 2024
1 parent de4fcd3 commit 3667563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dependabot.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

current_branch=$(git branch --show-current)

gh pr list --search "author:app/dependabot is:open status:success" --json number,headRefName --jq '.[] | "\(.number) \(.headRefName)"' | while read -r pr_number branch_name; do
gh pr list --search "author:app/dependabot is:open" --json number,headRefName --jq '.[] | "\(.number) \(.headRefName)"' | while read -r pr_number branch_name; do
echo "Merging PR #$pr_number from branch $branch_name into $current_branch"
git fetch origin $branch_name
git merge --no-ff origin/$branch_name
git merge --no-ff --no-verify origin/$branch_name
git push origin $current_branch
gh pr close $pr_number --comment "Merged successfully into $current_branch."
done

0 comments on commit 3667563

Please sign in to comment.