Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 2e9f9ba

Browse files
committed
Add repoid to repository.graphql
1 parent ab5c1ff commit 2e9f9ba

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

graphql_api/tests/test_repository.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"""
5252

5353
default_fields = """
54+
repoid
5455
name
5556
active
5657
private
@@ -103,6 +104,7 @@ def setUp(self):
103104
@freeze_time("2021-01-01")
104105
def test_when_repository_has_no_coverage(self):
105106
repo = RepositoryFactory(
107+
repoid=1,
106108
author=self.owner,
107109
active=True,
108110
private=True,
@@ -122,6 +124,7 @@ def test_when_repository_has_no_coverage(self):
122124
+ "coverageAnalytics { percentCovered commitSha hits misses lines },",
123125
) == {
124126
"__typename": "Repository",
127+
"repoid": 1,
125128
"name": "a",
126129
"active": True,
127130
"private": True,
@@ -154,6 +157,7 @@ def test_when_repository_has_no_coverage(self):
154157
@freeze_time("2021-01-01")
155158
def test_when_repository_has_coverage(self):
156159
repo = RepositoryFactory(
160+
repoid=1,
157161
author=self.owner,
158162
active=True,
159163
private=True,
@@ -186,6 +190,7 @@ def test_when_repository_has_coverage(self):
186190
+ "coverageAnalytics { percentCovered commitSha hits misses lines },",
187191
) == {
188192
"__typename": "Repository",
193+
"repoid": 1,
189194
"name": "b",
190195
"active": True,
191196
"latestCommitAt": None,

graphql_api/types/repository/repository.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Repository is a named collection of files uploaded
33
"""
44
type Repository {
55
isFirstPullRequest: Boolean!
6+
repoid: Int!
67
name: String!
78
active: Boolean!
89
activated: Boolean!

0 commit comments

Comments
 (0)