Skip to content

Commit e44f165

Browse files
committed
Format gql
1 parent eae97f5 commit e44f165

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
2020
hooks:
2121
- id: prettier
22-
files: \.(css|html|md|yml|yaml)
22+
files: \.(css|html|md|yml|yaml|gql)
2323
args: [--prose-wrap=preserve]
2424

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

devstats/queries/issue_activity_since_date.gql

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -14,9 +14,9 @@ query {
1414
url
1515
reactionGroups {
1616
content
17-
users {
18-
totalCount
19-
}
17+
users {
18+
totalCount
19+
}
2020
}
2121
labels(first: 100) {
2222
edges {
@@ -25,7 +25,10 @@ query {
2525
}
2626
}
2727
}
28-
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+
) {
2932
totalCount
3033
edges {
3134
node {

devstats/queries/pr_data_query.gql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
@@ -20,18 +20,18 @@ query {
2020
}
2121
}
2222
}
23-
author{
23+
author {
2424
login
2525
}
2626
authorAssociation
27-
mergedBy{
27+
mergedBy {
2828
login
2929
}
3030
mergedAt
31-
reviews(states:APPROVED){
31+
reviews(states: APPROVED) {
3232
totalCount
3333
}
34-
participants(first:100){
34+
participants(first: 100) {
3535
totalCount
3636
}
3737
}

0 commit comments

Comments
 (0)