Skip to content

Commit

Permalink
WIP: add headers to createLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Jan 16, 2019
1 parent 060394d commit 79abbee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ exports.createLabel = function createLabel(github, data) {
repo,
name,
color,
description
description,
headers: {
Accept: 'application/vnd.github.symmetra-preview+json'
}
})
}
5 changes: 4 additions & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,10 @@ describe('Bot', () => {
repo,
name: 'merge when passing',
color: 'FF851B',
description: 'Merge the PR once all status checks have passed'
description: 'Merge the PR automatically once all status checks have passed',
headers: {
Accept: 'application/vnd.github.symmetra-preview+json'
}
})
})
})
Expand Down

0 comments on commit 79abbee

Please # to comment.