Skip to content

Commit 8545d45

Browse files
committed
feat(workflows): enhance Dependabot PR review process
1 parent d9d2daa commit 8545d45

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "daily"
12+
time: "10:50"

.github/workflows/dependabot-reviewer.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ jobs:
2222
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2323
- name: Approve patch and minor updates
2424
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'}}
25-
run: gh pr review $PR_URL --approve -b "I'm **approving** this pull request because **it includes a patch or minor update**"
25+
run: |
26+
gh pr checkout ${{github.event.pull_request.number}}
27+
git rebase origin/${{github.base_ref}}
28+
gh pr review $PR_URL --approve -b "I'm **approving** this pull request because **it includes a patch or minor update**"
2629
env:
2730
PR_URL: ${{github.event.pull_request.html_url}}
2831
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)