Skip to content

Commit b1edfdd

Browse files
authored
fix(gha): incorrect automatic merge filter in dependabot-merger
1 parent 75381d3 commit b1edfdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/dependabot-merger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Get list of PRs from dependabot
3535
id: pr_list
3636
run: |
37-
PR_LIST=$(gh pr list --json number,headRefName --jq '.[] | "\(.number) \(.headRefName)"' | grep dependabot)
37+
PR_LIST=$(gh pr list --json number,author,headRefName --jq '.[] | select( .author.is_bot == true and .author.login == "app/dependabot" ) | "\(.number) \(.headRefName)"')
3838
PR_LIST=$(echo "$PR_LIST" | tr -d '\r')
3939
if [ -z "$PR_LIST" ]; then
4040
echo "No PRs from dependabot found."

0 commit comments

Comments
 (0)