|
5 | 5 | types:
|
6 | 6 | - opened
|
7 | 7 | - reopened
|
8 |
| - - closed |
9 |
| - pull_request_target: |
10 |
| - types: |
11 |
| - - closed |
12 | 8 |
|
13 | 9 | jobs:
|
14 | 10 | auto-merge:
|
15 |
| - name: Auto reviews, merge and close pull requests |
| 11 | + name: Auto reviews pull requests from bots |
16 | 12 | runs-on: ubuntu-22.04
|
17 | 13 | timeout-minutes: 5
|
18 | 14 |
|
|
38 | 34 | })
|
39 | 35 | if: |-
|
40 | 36 | 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]') |
46 | 40 | - name: Auto reviews Renovate updates
|
47 | 41 | uses: actions/github-script@v7
|
48 | 42 | with:
|
|
55 | 49 | })
|
56 | 50 | if: |-
|
57 | 51 | 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