Skip to content

Commit 922394c

Browse files
committed
Fix: Use 'token' instead of 'Bearer' for GitHub API auth
1 parent fa2b42d commit 922394c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5870,7 +5870,7 @@ async function _aicode(input, channel, userName) {
58705870
const response = await fetch(`https://api.github.com/repos/htilly/SlackONOS/dispatches`, {
58715871
method: 'POST',
58725872
headers: {
5873-
'Authorization': `Bearer ${config.get('githubToken')}`,
5873+
'Authorization': `token ${config.get('githubToken')}`,
58745874
'Accept': 'application/vnd.github+json',
58755875
'Content-Type': 'application/json'
58765876
},

0 commit comments

Comments
 (0)