Commit f2e7575 1 parent 32c2d63 commit f2e7575 Copy full SHA for f2e7575
File tree 2 files changed +126
-0
lines changed
2 files changed +126
-0
lines changed Original file line number Diff line number Diff line change
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version : 2
7
+ updates :
8
+ - package-ecosystem : " npm"
9
+ directory : " /alcs-frontend"
10
+ schedule :
11
+ interval : " daily"
12
+ target-branch : " develop"
13
+ commit-message :
14
+ prefix : " ALCS-000"
15
+ allow :
16
+ - dependency-type : " direct"
17
+ ignore :
18
+ - dependency-name : " *"
19
+ update-types : ["version-update:semver-major"]
20
+ groups :
21
+ npm-security :
22
+ applies-to : security-updates
23
+ patterns :
24
+ - " *"
25
+ update-types :
26
+ - " minor"
27
+ - " patch"
28
+ npm-minor-and-patch :
29
+ applies-to : version-updates
30
+ patterns :
31
+ - " *"
32
+ update-types :
33
+ - " minor"
34
+ - " patch"
35
+ - package-ecosystem : " npm"
36
+ directory : " /portal-frontend"
37
+ schedule :
38
+ interval : " daily"
39
+ target-branch : " develop"
40
+ commit-message :
41
+ prefix : " ALCS-000"
42
+ allow :
43
+ - dependency-type : " direct"
44
+ ignore :
45
+ - dependency-name : " *"
46
+ update-types : ["version-update:semver-major"]
47
+ groups :
48
+ npm-security :
49
+ applies-to : security-updates
50
+ patterns :
51
+ - " *"
52
+ update-types :
53
+ - " minor"
54
+ - " patch"
55
+ npm-minor-and-patch :
56
+ applies-to : version-updates
57
+ patterns :
58
+ - " *"
59
+ update-types :
60
+ - " minor"
61
+ - " patch"
62
+ - package-ecosystem : " npm"
63
+ directory : " /services"
64
+ schedule :
65
+ interval : " daily"
66
+ target-branch : " develop"
67
+ commit-message :
68
+ prefix : " ALCS-000"
69
+ allow :
70
+ - dependency-type : " direct"
71
+ ignore :
72
+ - dependency-name : " *"
73
+ update-types : ["version-update:semver-major"]
74
+ groups :
75
+ npm-security :
76
+ applies-to : security-updates
77
+ patterns :
78
+ - " *"
79
+ update-types :
80
+ - " minor"
81
+ - " patch"
82
+ npm-minor-and-patch :
83
+ applies-to : version-updates
84
+ patterns :
85
+ - " *"
86
+ update-types :
87
+ - " minor"
88
+ - " patch"
Original file line number Diff line number Diff line change
1
+ name : Auto-merge Dependabot PRs
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - develop
7
+ workflow_run :
8
+ workflows : ["CI"]
9
+ types :
10
+ - completed
11
+
12
+ permissions :
13
+ contents : write
14
+ pull-requests : write
15
+
16
+ jobs :
17
+ auto-merge :
18
+ runs-on : ubuntu-latest
19
+ if : |
20
+ github.actor == 'dependabot[bot]' &&
21
+ github.event_name == 'workflow_run' &&
22
+ github.event.workflow_run.conclusion == 'success'
23
+ steps :
24
+ - name : Auto-merge Dependabot PR
25
+ env :
26
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ HEAD_BRANCH : ${{ github.event.workflow_run.head_branch }}
28
+ run : |
29
+ # Get PR number from branch name
30
+ PR_NUMBER=$(echo "$HEAD_BRANCH" | grep -o '[0-9]\+' || echo '')
31
+
32
+ if [ -n "$PR_NUMBER" ]; then
33
+ # Approve PR
34
+ gh pr review $PR_NUMBER --approve
35
+
36
+ # Enable auto-merge
37
+ gh pr merge $PR_NUMBER --auto --merge
38
+ fi
You can’t perform that action at this time.
0 commit comments