49 lines
1.8 KiB
JavaScript
49 lines
1.8 KiB
JavaScript
// PR commentary for Authelia branch based contributions
|
|
on('pull_request.opened')
|
|
.filter(
|
|
context =>
|
|
context.payload.pull_request.head.label.startsWith('authelia:')
|
|
)
|
|
.filter(
|
|
context =>
|
|
!context.payload.pull_request.head.ref.startsWith('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.startsWith('authelia:')
|
|
)
|
|
.filter(
|
|
context =>
|
|
!context.payload.pull_request.head.label.endsWith(':master')
|
|
)
|
|
.comment(`Thanks for choosing to contribute. 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.startsWith('authelia:')
|
|
)
|
|
.filter(
|
|
context =>
|
|
context.payload.pull_request.head.label.endsWith(':master')
|
|
)
|
|
.comment(`Thanks for choosing to contribute. It appears that you're submitting a PR from a forked master branch.
|
|
|
|
This causes issues with codecov, please close this PR and re-submit your PR from a branch other than master.`) |