forked from authelia/authelia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprobot.js
50 lines (43 loc) · 1.85 KB
/
probot.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// PR commentary for Authelia branch based contributions
on('pull_request.opened')
.filter(
context =>
context.payload.pull_request.head.label.slice(0, 9) === 'authelia:'
)
.filter(
context =>
context.payload.pull_request.head.ref.slice(0, 11) !== 'dependabot/'
)
.comment(`## Artifacts
These changes are published for testing on Buildkite and DockerHub.
### Docker Container
* \`docker pull authelia/authelia:{{ pull_request.head.ref }}\``)
// PR commentary for third party based contributions
on('pull_request.opened')
.filter(
context =>
context.payload.pull_request.head.label.slice(0, 9) !== 'authelia:'
)
.filter(
context =>
!context.payload.pull_request.head.label.includes(':master')
)
.comment(`Thanks for choosing to contribute @{{ pull_request.user.login }}. We lint all PR's with golangci-lint, I may add a review to your PR with some suggestions.
You are free to apply the changes if you're comfortable, alternatively you are welcome to ask a team member for advice.
## Artifacts
These changes once approved by a team member will be published for testing on Buildkite and DockerHub.
### Docker Container
* \`docker pull authelia/authelia:PR{{ pull_request.number }}\``)
// PR commentary for forked master branches
on('pull_request.opened')
.filter(
context =>
context.payload.pull_request.head.label.slice(0, 9) !== 'authelia:'
)
.filter(
context =>
context.payload.pull_request.head.label.includes(':master')
)
.comment(`Thanks for choosing to contribute @{{ pull_request.user.login }}.
Unfortunately it appears that you're submitting a PR from a forked master branch and this is known to causes issues with codecov. Please re-submit your PR from a branch other than master.`)
.close()