Skip to content

Commit

Permalink
fix(pr): add content type to post pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianpaquier committed May 4, 2024
1 parent a46b333 commit 1c54139
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/git.ts
Original file line number Diff line number Diff line change
@@ -38,7 +38,10 @@ export const createPullRequest = async (context: Partial<VerifyConditionsContext
try {
const response = await fetch(url, {
body: JSON.stringify(body),
headers: { Authorization: `Bearer ${config.token}` },
headers: {
Authorization: `Bearer ${config.token}`,
"Content-Type": "application/json",
},
method: "POST",
})
if (!response.ok) {

0 comments on commit 1c54139

Please sign in to comment.