Skip to content

Commit

Permalink
feat(#34): fetch releases too
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 9, 2024
1 parent 77c20e2 commit aa63235
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ const graph = `query ($searchQuery: String!, $first: Int, $after: String) {
latestRelease {
createdAt
}
releases(first:1) {
edges {
node {
id
}
}
totalCount
}
stargazerCount
forkCount
pullRequests {
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ function writeFiles(json) {
createdAt: result.createdAt,
lastCommitDate: result.defaultBranchRef.target.history.edges[0].node.committedDate,
lastReleaseDate: result.latestRelease ? result.latestRelease.createdAt : '',
releases: result.releases.totalCount,
contributors: result.mentionableUsers.totalCount,
pulls: result.pullRequests.totalCount,
commits: result.defaultBranchRef.target.history.totalCount,
Expand Down

0 comments on commit aa63235

Please sign in to comment.