File tree Expand file tree Collapse file tree 3 files changed +28
-16
lines changed Expand file tree Collapse file tree 3 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 34
34
with :
35
35
name : test-results
36
36
path : coverage/lcov.info
37
-
38
- merge-dependabot-pr :
39
- name : Merge Dependabot PR
40
- if : github.event.pull_request.user.login == 'dependabot[bot]'
41
- runs-on : ubuntu-latest
42
- permissions :
43
- pull-requests : write
44
- contents : write
45
- steps :
46
- - name : Enable auto-merge for Dependabot PRs
47
- run : gh pr merge --auto --squash "$PR_URL"
48
- env :
49
- PR_URL : ${{github.event.pull_request.html_url}}
50
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Dependabot PR
3
+ on :
4
+ pull_request :
5
+ types : [opened]
6
+ branches :
7
+ - main
8
+
9
+ permissions : {}
10
+
11
+ jobs :
12
+ merge-dependabot-pr :
13
+ name : Merge Dependabot PR
14
+ if : github.event.pull_request.user.login == 'dependabot[bot]'
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : mongodb-js/devtools-shared/actions/setup-bot-token@main
18
+ id : app-token
19
+ with :
20
+ app-id : ${{ vars.DEVTOOLS_BOT_APP_ID }}
21
+ private-key : ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
22
+ - name : Enable auto-merge for Dependabot PRs
23
+ run : gh pr merge --auto --squash "$PR_URL"
24
+ env :
25
+ PR_URL : ${{github.event.pull_request.html_url}}
26
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
Original file line number Diff line number Diff line change @@ -213,12 +213,12 @@ export class ConnectClusterTool extends AtlasToolBase {
213
213
] ,
214
214
} ;
215
215
}
216
- case "connecting" : {
216
+ case "connecting" :
217
+ case "unknown" : {
217
218
break ;
218
219
}
219
220
case "connected-to-other-cluster" :
220
221
case "disconnected" :
221
- case "unknown" :
222
222
default : {
223
223
await this . session . disconnect ( ) ;
224
224
const connectionString = await this . prepareClusterConnection ( projectId , clusterName ) ;
You can’t perform that action at this time.
0 commit comments