-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add graphql * feat: issues analysis * test: issues analysis * fix lint * docs: update * chore: update version
- Loading branch information
Showing
15 changed files
with
1,722 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "gh-lens" | ||
authors = ["hirokisan <[email protected]>"] | ||
description = "CLI to analyze your activity on GitHub" | ||
version = "0.0.11" | ||
version = "0.0.12" | ||
edition = "2021" | ||
license = "MIT" | ||
keywords = ["github", "cli", "analysis", "gh-lens"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
mod client; | ||
mod gql; | ||
mod issue; | ||
mod issues; | ||
mod issues_summary; | ||
mod pull_request; | ||
mod pull_requests; | ||
mod pull_requests_summary; | ||
|
||
pub(crate) use client::*; | ||
pub(crate) use issues::*; | ||
pub(crate) use issues_summary::*; | ||
pub(crate) use pull_requests::*; | ||
pub(crate) use pull_requests_summary::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pub(super) mod query; | ||
pub(super) mod issues_query; | ||
pub(super) mod pull_requests_query; | ||
pub(super) mod scaler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
query IssuesQuery($first: Int!, $after: String, $query: String!, $threshold: Int!) { | ||
search( type: ISSUE first: $first after: $after query: $query) { | ||
issueCount | ||
pageInfo { | ||
hasNextPage | ||
endCursor | ||
} | ||
nodes { | ||
__typename | ||
... on Issue { | ||
url | ||
createdAt | ||
closedAt | ||
author { | ||
__typename | ||
login | ||
} | ||
comments(first: $threshold) { | ||
nodes { | ||
author { | ||
__typename | ||
login | ||
} | ||
} | ||
} | ||
timelineItems(first: 1, itemTypes: CLOSED_EVENT) { | ||
nodes { | ||
__typename | ||
... on ClosedEvent { | ||
actor { | ||
__typename | ||
login | ||
} | ||
createdAt | ||
} | ||
} | ||
} | ||
assignees(first: $threshold) { | ||
nodes { | ||
login | ||
} | ||
} | ||
participants(first: $threshold) { | ||
nodes { | ||
login | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.