Skip to content

Commit 0bdcdc6

Browse files
author
Bjornskjald
committed
fix: Fixed failed destructuring
1 parent ea8811b commit 0bdcdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/setStatus.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const agent = require('superagent')
22

33
module.exports = async (pr, state, description) => {
4-
const { head: { sha, repo: { full_name: name } } } = pr.meta
4+
const { sha, repo: { full_name: name } } = pr.meta
55
const { body } = await agent
66
.post(`https://api.github.com/repos/${name}/statuses/${sha}`)
77
.set({ Authorization: `Bearer ${global.token}` })

0 commit comments

Comments
 (0)