Skip to content

Commit 34b0a74

Browse files
authored
Merge pull request #1068 from camptocamp/c2cciutils-upgrade
CI updates
2 parents 5454eb2 + b1ebf44 commit 34b0a74

File tree

1 file changed

+4
-41
lines changed

1 file changed

+4
-41
lines changed

.github/workflows/pull-request-automation.yaml

+4-41
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ on:
55
types:
66
- opened
77
- reopened
8-
- closed
9-
pull_request_target:
10-
types:
11-
- closed
128

139
jobs:
1410
auto-merge:
15-
name: Auto reviews, merge and close pull requests
11+
name: Auto reviews pull requests from bots
1612
runs-on: ubuntu-22.04
1713
timeout-minutes: 5
1814

@@ -38,11 +34,9 @@ jobs:
3834
})
3935
if: |-
4036
startsWith(github.head_ref, 'ghci/audit/')
41-
&& (github.event.pull_request.user.login == 'ghci-test[bot]'
42-
|| github.event.pull_request.user.login == 'ghci-int[bot]'
43-
|| github.event.pull_request.user.login == 'ghci[bot]')
44-
&& (github.event.action == 'opened'
45-
|| github.event.action == 'reopened')
37+
&& (github.event.pull_request.user.login == 'geo-ghci-test[bot]'
38+
|| github.event.pull_request.user.login == 'geo-ghci-int[bot]'
39+
|| github.event.pull_request.user.login == 'geo-ghci[bot]')
4640
- name: Auto reviews Renovate updates
4741
uses: actions/github-script@v7
4842
with:
@@ -55,34 +49,3 @@ jobs:
5549
})
5650
if: |-
5751
github.event.pull_request.user.login == 'renovate[bot]'
58-
&& (github.event.action == 'opened'
59-
|| github.event.action == 'reopened')
60-
- name: Auto review and merge dpkg updates
61-
uses: actions/github-script@v7
62-
with:
63-
script: |-
64-
github.rest.pulls.createReview({
65-
owner: context.repo.owner,
66-
repo: context.repo.repo,
67-
pull_number: context.payload.pull_request.number,
68-
event: 'APPROVE',
69-
});
70-
github.graphql(`
71-
mutation {
72-
enablePullRequestAutoMerge(input: {
73-
pullRequestId: "${context.payload.pull_request.node_id}",
74-
mergeMethod: SQUASH,
75-
}) {
76-
pullRequest {
77-
autoMergeRequest {
78-
enabledAt
79-
}
80-
}
81-
}
82-
}
83-
`)
84-
if: |-
85-
github.event.pull_request.user.login == 'c2c-bot-gis-ci-2'
86-
&& startsWith(github.head_ref, 'dpkg-update/')
87-
&& (github.event.action == 'opened'
88-
|| github.event.action == 'reopened')

0 commit comments

Comments
 (0)