From 728d61ac0e058dd8b8abaa7514e2ca068b76a7d2 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Sun, 11 May 2025 12:27:42 -0700 Subject: [PATCH 1/5] update gitignore for vscode --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index c4c5b0e..8d04342 100644 --- a/.gitignore +++ b/.gitignore @@ -160,5 +160,10 @@ 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 .DS_Store + +# VsCode +.vscode/ +.history/ \ No newline at end of file From ddff78da50f7da53366d14c64abf080bdd32fcd2 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Sun, 11 May 2025 14:43:24 -0700 Subject: [PATCH 2/5] add more infomation --- .gitignore | 7 +++++-- .pre-commit-config.yaml | 3 --- devstats/queries/issue_activity_since_date.gql | 10 ++++++++-- devstats/queries/pr_data_query.gql | 9 +++++++++ 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 8d04342..5c031cf 100644 --- a/.gitignore +++ b/.gitignore @@ -164,6 +164,9 @@ cython_debug/ # MAC .DS_Store -# VsCode +# Vs Code .vscode/ -.history/ \ No newline at end of file +.history/ + +# devstats +devstats-data/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61458df..2272fec 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 diff --git a/devstats/queries/issue_activity_since_date.gql b/devstats/queries/issue_activity_since_date.gql index 2301975..b30aa85 100644 --- a/devstats/queries/issue_activity_since_date.gql +++ b/devstats/queries/issue_activity_since_date.gql @@ -8,10 +8,16 @@ query { number title createdAt - state - closedAt updatedAt + closedAt + state url + reactionGroups { + content + users { + totalCount + } + } labels(first: 100) { edges { node { diff --git a/devstats/queries/pr_data_query.gql b/devstats/queries/pr_data_query.gql index 55274db..3d33001 100644 --- a/devstats/queries/pr_data_query.gql +++ b/devstats/queries/pr_data_query.gql @@ -9,8 +9,17 @@ query { state title createdAt + updatedAt + closedAt baseRefName mergeable + labels(first: 25) { + edges { + node { + name + } + } + } author{ login } From c5fd591bf8ef510f353dd82813573b1a2b23e0a1 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Sun, 11 May 2025 15:08:41 -0700 Subject: [PATCH 3/5] Update devstats/queries/pr_data_query.gql --- devstats/queries/pr_data_query.gql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstats/queries/pr_data_query.gql b/devstats/queries/pr_data_query.gql index 3d33001..9140dd7 100644 --- a/devstats/queries/pr_data_query.gql +++ b/devstats/queries/pr_data_query.gql @@ -13,7 +13,7 @@ query { closedAt baseRefName mergeable - labels(first: 25) { + labels(first: 100) { edges { node { name From eae97f54bdd532941a4bb389e568c742a1f648bb Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Sun, 11 May 2025 17:34:02 -0700 Subject: [PATCH 4/5] "typos" --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5c031cf..e8acee0 100644 --- a/.gitignore +++ b/.gitignore @@ -161,10 +161,10 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -# MAC +# MacOS .DS_Store -# Vs Code +# VSCode .vscode/ .history/ From e44f1650ec1ce2b7beaadfa6ba63eb95801050a1 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Mon, 12 May 2025 10:03:47 -0700 Subject: [PATCH 5/5] Format gql --- .pre-commit-config.yaml | 2 +- devstats/queries/issue_activity_since_date.gql | 13 ++++++++----- devstats/queries/pr_data_query.gql | 14 +++++++------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2272fec..677a915 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,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 b30aa85..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 @@ -14,9 +14,9 @@ query { url reactionGroups { content - users { - totalCount - } + users { + totalCount + } } labels(first: 100) { edges { @@ -25,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 9140dd7..6a1c983 100644 --- a/devstats/queries/pr_data_query.gql +++ b/devstats/queries/pr_data_query.gql @@ -1,10 +1,10 @@ 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 @@ -20,18 +20,18 @@ query { } } } - author{ + author { login } authorAssociation - mergedBy{ + mergedBy { login } mergedAt - reviews(states:APPROVED){ + reviews(states: APPROVED) { totalCount } - participants(first:100){ + participants(first: 100) { totalCount } }