Skip to content

Commit be7d641

Browse files
committed
Added return on pushes to 'documentation' branches
1 parent 9ae1f67 commit be7d641

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ handler.on('push', async function (event) {
293293
console.log('Received a push event for %s to %s',
294294
event.payload.repository.name,
295295
event.payload.ref)
296+
// Ignore documentaion branches
297+
if (event.payload.ref.endsWith('documentation')) { return; }
296298
try { // Run tests for head commit only
297299
let head_commit = event.payload.head_commit.id;
298300
// Post a 'pending' status while we do our tests

0 commit comments

Comments
 (0)