Skip to content

Commit b1468f0

Browse files
authored
Merge branch 'main' into stars_over_time
2 parents 17b177c + 6aac187 commit b1468f0

File tree

4 files changed

+37
-18
lines changed

4 files changed

+37
-18
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,13 @@ cython_debug/
160160
# and can be added to the global gitignore or merged into this file. For a more nuclear
161161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162162
#.idea/
163-
# MAC
163+
164+
# MacOS
164165
.DS_Store
165166

166-
.python-version
167+
# VSCode
168+
.vscode/
169+
.history/
167170

168-
/devstats-data
171+
# devstats
172+
devstats-data/

.pre-commit-config.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Install pre-commit hooks via
2-
# pre-commit install
3-
41
repos:
52
- repo: https://github.com/pre-commit/pre-commit-hooks
63
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
@@ -22,7 +19,7 @@ repos:
2219
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
2320
hooks:
2421
- id: prettier
25-
files: \.(css|html|md|yml|yaml)
22+
files: \.(css|html|md|yml|yaml|gql)
2623
args: [--prose-wrap=preserve]
2724

2825
- repo: https://github.com/astral-sh/ruff-pre-commit

devstats/queries/issue_activity_since_date.gql

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
query {
22
repository(owner: "_REPO_OWNER_", name: "_REPO_NAME_") {
3-
issues(first: 100, filterBy: {since: "2020-01-01T00:00:00Z"}) {
3+
issues(first: 100, filterBy: { since: "2020-01-01T00:00:00Z" }) {
44
totalCount
55
edges {
66
cursor
77
node {
88
number
99
title
1010
createdAt
11-
state
12-
closedAt
1311
updatedAt
12+
closedAt
13+
state
1414
url
15+
reactionGroups {
16+
content
17+
users {
18+
totalCount
19+
}
20+
}
1521
labels(first: 100) {
1622
edges {
1723
node {
1824
name
1925
}
2026
}
2127
}
22-
timelineItems(first: 100, itemTypes: [CROSS_REFERENCED_EVENT, ISSUE_COMMENT, CLOSED_EVENT]) {
28+
timelineItems(
29+
first: 100
30+
itemTypes: [CROSS_REFERENCED_EVENT, ISSUE_COMMENT, CLOSED_EVENT]
31+
) {
2332
totalCount
2433
edges {
2534
node {

devstats/queries/pr_data_query.gql

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
query {
2-
repository(owner:"_REPO_OWNER_", name:"_REPO_NAME_") {
3-
pullRequests(first:100) {
2+
repository(owner: "_REPO_OWNER_", name: "_REPO_NAME_") {
3+
pullRequests(first: 100) {
44
totalCount
55
edges {
66
cursor
7-
node{
7+
node {
88
number
99
state
1010
title
1111
createdAt
12+
updatedAt
13+
closedAt
1214
baseRefName
1315
mergeable
14-
author{
16+
labels(first: 100) {
17+
edges {
18+
node {
19+
name
20+
}
21+
}
22+
}
23+
author {
1524
login
1625
}
1726
authorAssociation
18-
mergedBy{
27+
mergedBy {
1928
login
2029
}
2130
mergedAt
22-
reviews(states:APPROVED){
31+
reviews(states: APPROVED) {
2332
totalCount
2433
}
25-
participants(first:100){
34+
participants(first: 100) {
2635
totalCount
2736
}
2837
}

0 commit comments

Comments
 (0)