diff --git a/.gitignore b/.gitignore index c4c5b0e..e8acee0 100644 --- a/.gitignore +++ b/.gitignore @@ -160,5 +160,13 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -# MAC + +# MacOS .DS_Store + +# VSCode +.vscode/ +.history/ + +# devstats +devstats-data/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61458df..677a915 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,3 @@ -# Install pre-commit hooks via -# pre-commit install - repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0 @@ -22,7 +19,7 @@ repos: rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3 hooks: - id: prettier - files: \.(css|html|md|yml|yaml) + files: \.(css|html|md|yml|yaml|gql) args: [--prose-wrap=preserve] - repo: https://github.com/astral-sh/ruff-pre-commit diff --git a/devstats/queries/issue_activity_since_date.gql b/devstats/queries/issue_activity_since_date.gql index 2301975..637f5d4 100644 --- a/devstats/queries/issue_activity_since_date.gql +++ b/devstats/queries/issue_activity_since_date.gql @@ -1,6 +1,6 @@ query { repository(owner: "_REPO_OWNER_", name: "_REPO_NAME_") { - issues(first: 100, filterBy: {since: "2020-01-01T00:00:00Z"}) { + issues(first: 100, filterBy: { since: "2020-01-01T00:00:00Z" }) { totalCount edges { cursor @@ -8,10 +8,16 @@ query { number title createdAt - state - closedAt updatedAt + closedAt + state url + reactionGroups { + content + users { + totalCount + } + } labels(first: 100) { edges { node { @@ -19,7 +25,10 @@ query { } } } - timelineItems(first: 100, itemTypes: [CROSS_REFERENCED_EVENT, ISSUE_COMMENT, CLOSED_EVENT]) { + timelineItems( + first: 100 + itemTypes: [CROSS_REFERENCED_EVENT, ISSUE_COMMENT, CLOSED_EVENT] + ) { totalCount edges { node { diff --git a/devstats/queries/pr_data_query.gql b/devstats/queries/pr_data_query.gql index 55274db..6a1c983 100644 --- a/devstats/queries/pr_data_query.gql +++ b/devstats/queries/pr_data_query.gql @@ -1,28 +1,37 @@ query { - repository(owner:"_REPO_OWNER_", name:"_REPO_NAME_") { - pullRequests(first:100) { + repository(owner: "_REPO_OWNER_", name: "_REPO_NAME_") { + pullRequests(first: 100) { totalCount edges { cursor - node{ + node { number state title createdAt + updatedAt + closedAt baseRefName mergeable - author{ + labels(first: 100) { + edges { + node { + name + } + } + } + author { login } authorAssociation - mergedBy{ + mergedBy { login } mergedAt - reviews(states:APPROVED){ + reviews(states: APPROVED) { totalCount } - participants(first:100){ + participants(first: 100) { totalCount } }