Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
5 changes: 1 addition & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
17 changes: 13 additions & 4 deletions devstats/queries/issue_activity_since_date.gql
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
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
node {
number
title
createdAt
state
closedAt
updatedAt
closedAt
state
url
reactionGroups {
content
users {
totalCount
}
}
labels(first: 100) {
edges {
node {
name
}
}
}
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 {
Expand Down
23 changes: 16 additions & 7 deletions devstats/queries/pr_data_query.gql
Original file line number Diff line number Diff line change
@@ -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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the limit here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was just to match the same limit as for the issue query. There is no real reason for it otherwise.

edges {
node {
name
}
}
}
author {
login
}
authorAssociation
mergedBy{
mergedBy {
login
}
mergedAt
reviews(states:APPROVED){
reviews(states: APPROVED) {
totalCount
}
participants(first:100){
participants(first: 100) {
totalCount
}
}
Expand Down
Loading