{"modulePath":"github.com/deepsourcelabs/cli","version":"v0.10.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package issues\n\nLists the issues reported in a single file mentioned by the user\n\nLists the issues reported in the whole project\n\n## Types\n\n```go\ntype FileIssuesListParams struct {\n\tOwner    string\n\tRepoName string\n\tProvider string\n\tFilePath string\n\tLimit    int\n}\n```\n\n```go\ntype FileIssuesListRequest struct {\n\tParams FileIssuesListParams\n}\n```\nRequest struct\n\n```go\nfunc (f FileIssuesListRequest) Do(ctx context.Context, client IGQLClient) ([]issues.Issue, error)\n```\n\n```go\ntype FileIssuesResponse struct {\n\tRepository struct {\n\t\tIssues struct {\n\t\t\tEdges []struct {\n\t\t\t\tNode struct {\n\t\t\t\t\tOccurrences struct {\n\t\t\t\t\t\tEdges []struct {\n\t\t\t\t\t\t\tNode struct {\n\t\t\t\t\t\t\t\tPath      string `json:\"path\"`\n\t\t\t\t\t\t\t\tBeginLine int    `json:\"beginLine\"`\n\t\t\t\t\t\t\t\tEndLine   int    `json:\"endLine\"`\n\t\t\t\t\t\t\t\tIssue     struct {\n\t\t\t\t\t\t\t\t\tTitle         string `json:\"title\"`\n\t\t\t\t\t\t\t\t\tShortcode     string `json:\"shortcode\"`\n\t\t\t\t\t\t\t\t\tCategory      string `json:\"category\"`\n\t\t\t\t\t\t\t\t\tIsRecommended bool   `json:\"isRecommended\"`\n\t\t\t\t\t\t\t\t\tAnalyzer      struct {\n\t\t\t\t\t\t\t\t\t\tName      string `json:\"name\"`\n\t\t\t\t\t\t\t\t\t\tShortcode string `json:\"shortcode\"`\n\t\t\t\t\t\t\t\t\t} `json:\"analyzer\"`\n\t\t\t\t\t\t\t\t} `json:\"issue\"`\n\t\t\t\t\t\t\t} `json:\"node\"`\n\t\t\t\t\t\t} `json:\"edges\"`\n\t\t\t\t\t} `json:\"occurrences\"`\n\t\t\t\t} `json:\"node\"`\n\t\t\t} `json:\"edges\"`\n\t\t} `json:\"issues\"`\n\t} `json:\"repository\"`\n}\n```\nResponse struct\n\n```go\ntype IGQLClient interface {\n\tGQL() *graphql.Client\n\tGetToken() string\n}\n```\nGraphQL client interface\n\n```go\ntype IssuesListParams struct {\n\tOwner    string\n\tRepoName string\n\tProvider string\n\tLimit    int\n}\n```\n\n```go\ntype IssuesListRequest struct {\n\tParams IssuesListParams\n}\n```\n\n```go\nfunc (i IssuesListRequest) Do(ctx context.Context, client IGQLClient) ([]issues.Issue, error)\n```\n\n```go\ntype IssuesListResponse struct {\n\tRepository struct {\n\t\tIssues struct {\n\t\t\tEdges []struct {\n\t\t\t\tNode struct {\n\t\t\t\t\tOccurrences struct {\n\t\t\t\t\t\tEdges []struct {\n\t\t\t\t\t\t\tNode struct {\n\t\t\t\t\t\t\t\tPath      string `json:\"path\"`\n\t\t\t\t\t\t\t\tBeginLine int    `json:\"beginLine\"`\n\t\t\t\t\t\t\t\tEndLine   int    `json:\"endLine\"`\n\t\t\t\t\t\t\t\tIssue     struct {\n\t\t\t\t\t\t\t\t\tTitle         string `json:\"title\"`\n\t\t\t\t\t\t\t\t\tShortcode     string `json:\"shortcode\"`\n\t\t\t\t\t\t\t\t\tCategory      string `json:\"category\"`\n\t\t\t\t\t\t\t\t\tSeverity      string `json:\"severity\"`\n\t\t\t\t\t\t\t\t\tIsRecommended bool   `json:\"isRecommended\"`\n\t\t\t\t\t\t\t\t\tAnalyzer      struct {\n\t\t\t\t\t\t\t\t\t\tName      string `json:\"name\"`\n\t\t\t\t\t\t\t\t\t\tShortcode string `json:\"shortcode\"`\n\t\t\t\t\t\t\t\t\t} `json:\"analyzer\"`\n\t\t\t\t\t\t\t\t} `json:\"issue\"`\n\t\t\t\t\t\t\t} `json:\"node\"`\n\t\t\t\t\t\t} `json:\"edges\"`\n\t\t\t\t\t} `json:\"occurrences\"`\n\t\t\t\t} `json:\"node\"`\n\t\t\t} `json:\"edges\"`\n\t\t} `json:\"issues\"`\n\t} `json:\"repository\"`\n}\n```\n\n","path":"github.com/deepsourcelabs/cli/deepsource/issues/queries","name":"issues","synopsis":"Lists the issues reported in a single file mentioned by the user","isRedistributable":true}
