Skip to content

Commit 9abb7b6

Browse files
author
Vittorio
committed
ci(dependabot): update indirect and direct:development dependabot dependencies updates
1 parent dbb5e6f commit 9abb7b6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/dependabot-auto-approve.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,24 @@ jobs:
1919
echo Update type ${{ steps.metadata.outputs.update-type }}
2020
echo Dependency type ${{ steps.metadata.outputs.dependency-type }}
2121
- name: Approve a PR
22+
23+
# What are we automatically merging?
24+
# MINOR and PATCH updates
25+
# Development dependencies
26+
# Indirect dependencies
27+
28+
# ----------------------
29+
# ------ IMPORTANT ------
30+
# Unfortunately dependabot core does not support knowing if an indirect dependency is from production or development
31+
# [https://github.com/dependabot/fetch-metadata/issues/43#issuecomment-878173130]
32+
# I am taking the risk to automatically update indirect dependencies of production dependencies.
33+
# Ts-auto-mock will not be published automatically because of this.
34+
# Before releasing a new version of ts-auto-mock the production dependencies need to be reviewed.
35+
# ----------------------
36+
2237
if: |
2338
(steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch')
24-
&& steps.metadata.outputs.dependency-type == 'direct:development'
39+
&& (steps.metadata.outputs.dependency-type == 'indirect' || steps.metadata.outputs.dependency-type == 'direct:development')
2540
run: |
2641
gh pr review --approve "$PR_URL"
2742
gh pr merge --auto --rebase "$PR_URL"

0 commit comments

Comments
 (0)