Skip to content

Commit

Permalink
Merge pull request #79 from backstrokeapp/more-fork-details
Browse files Browse the repository at this point in the history
Return more details in the response of checkRepo
  • Loading branch information
1egoman committed Nov 8, 2017
2 parents b871d97 + 220ddc5 commit 71e2f1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routes/checkRepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export default function checkRepo(req, res) {
valid: true,
private: repoData.private,
fork: repoData.fork,
parent: repoData.parent ? {
owner: repoData.parent.owner.login,
name: repoData.parent.name,
private: repoData.parent.private,
defaultBranch: repoData.parent.default_branch,
} : null,
branches: branches.map(b => b.name),
});
}).catch(err => {
Expand Down

0 comments on commit 71e2f1d

Please sign in to comment.