Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 50bb005

Browse filesBrowse files
authored
Approve pull request only if not already approved (#883)
1 parent 3fbd244 commit 50bb005
Copy full SHA for 50bb005

File tree

1 file changed

+9
-1
lines changed
Filter options

1 file changed

+9
-1
lines changed

‎.github/workflows/dependabot-auto-merge.yml

Copy file name to clipboardExpand all lines: .github/workflows/dependabot-auto-merge.yml
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ jobs:
1717

1818
- name: Approve and label updates
1919
run: |
20-
gh pr review --approve "$PR_URL"
20+
review_status="$(
21+
gh pr view "$PR_URL" \
22+
--json="reviewDecision" \
23+
--jq=".reviewDecision"
24+
)"
25+
echo "Pull request review status: ${review_status}"
26+
if [[ "${review_status}" != "APPROVED" ]]; then
27+
gh pr review --approve "$PR_URL"
28+
fi
2129
gh pr edit --add-label "cleanup-no-release-required" "$PR_URL"
2230
env:
2331
PR_URL: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.