don't run deploy bot on dependabot PRs (#1924)
Don't run deploy bot on dependabot PRs
This commit is contained in:
4
.github/probot.js
vendored
4
.github/probot.js
vendored
@@ -1,5 +1,9 @@
|
||||
on('pull_request.closed')
|
||||
.filter(context => context.payload.pull_request.merged)
|
||||
.filter(
|
||||
context =>
|
||||
context.payload.pull_request.head.ref.slice(0, 11) !== 'dependabot/'
|
||||
)
|
||||
.filter(context => context.payload.pull_request.base.ref === 'master')
|
||||
.comment(`This pull request was merged to [{{ pull_request.base.ref }}]({{ repository.html_url }}/tree/{{ pull_request.base.ref }}) branch. Now this change is waiting for deployment.
|
||||
Deploys usually happen every few weeks. After deployment changes are copied to [gh-pages]({{ repository.html_url }}/tree/gh-pages) branch.
|
||||
|
||||
Reference in New Issue
Block a user