Skip to content

Commit

Permalink
Merge pull request #2 from madlabsinc/next
Browse files Browse the repository at this point in the history
fix: regression with create repository implemenation (madlabsinc#80)
  • Loading branch information
abhijithneilabraham authored Apr 14, 2020
2 parents a6743a1 + 49680d6 commit 427e5b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ const createRepository = async () => {
type: 'input',
validate,
});
const API_URL = `https://api.github.com/user/repos?access_token=${userToken}`;

const API_URL = `https://api.github.com/user/repos`;
axios.defaults.headers.common['Authorization'] = `token ${userToken}`;
// Create a new repository.
try {
await axios.post(API_URL, { name: 'teachcode-solutions' });
Expand Down

0 comments on commit 427e5b3

Please # to comment.