Skip to content

Commit 5621bd9

Browse files
Add artifacts for v6.5.0
1 parent 71ac561 commit 5621bd9

50 files changed

Lines changed: 1790 additions & 182 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v6.4.3889
1+
v6.5.0

gql/authz.graphql

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,35 @@ extend type Mutation {
1515
"""
1616
userPermissions: [UserPermissionInput!]!
1717
): EmptyResponse!
18+
19+
"""
20+
Add permission for a single user to access a repository. This operation preserves existing permissions.
21+
"""
22+
addRepositoryPermissionForUser(
23+
"""
24+
The repository permission specification - either a specific repository or unrestricted access.
25+
Unrestricted access is currently only supported for service accounts.
26+
"""
27+
permission: RepositoryPermissionInput!
28+
"""
29+
The user identifier and permission level to add.
30+
"""
31+
userID: ID!
32+
): EmptyResponse!
33+
34+
"""
35+
Remove permission for a single user to access a repository. This operation preserves other existing permissions.
36+
"""
37+
removeRepositoryPermissionForUser(
38+
"""
39+
The repository to remove permission from.
40+
"""
41+
repository: ID!
42+
"""
43+
The bindID (username or email) of the user whose permission to remove.
44+
"""
45+
userID: ID!
46+
): EmptyResponse!
1847
"""
1948
Set 'unrestricted' to true or false on a set of repositories. Repositories with
2049
'unrestricted' true will be visible to all users on the Sourcegraph instance.
@@ -297,6 +326,20 @@ input UserPermissionInput {
297326
permission: RepositoryPermission = READ
298327
}
299328

329+
"""
330+
Input type for repository permission specification - either a specific repository or unrestricted access.
331+
"""
332+
input RepositoryPermissionInput {
333+
"""
334+
The repository ID to grant permission for. Mutually exclusive with wildcard.
335+
"""
336+
repository: ID
337+
"""
338+
Whether to grant unrestricted access to all repositories. Mutually exclusive with repository.
339+
"""
340+
wildcard: Boolean
341+
}
342+
300343
"""
301344
A user (identified either by username or email address) with its repository permission.
302345
"""
@@ -463,6 +506,10 @@ type UserPermissionsInfo {
463506
Search query to filter repositories based on name.
464507
"""
465508
query: String
509+
"""
510+
The source of the permission.
511+
"""
512+
source: PermissionSource
466513
): PermissionsInfoRepositoriesConnection
467514
}
468515

gql/batches.graphql

Lines changed: 197 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ enum ChangesetReviewState {
112112
PENDING
113113
COMMENTED
114114
DISMISSED
115+
NOT_APPLICABLE
115116
}
116117

117118
"""
@@ -608,6 +609,10 @@ type ChangesetsStats {
608609
The count of changesets that are complete (i.e in a merged or closed state) and not archived or deleted.
609610
"""
610611
percentComplete: Int!
612+
"""
613+
The count of pushed-only changesets.
614+
"""
615+
pushedOnly: Int!
611616
}
612617

613618
"""
@@ -638,6 +643,10 @@ type RepoChangesetsStats {
638643
The count of all changesets.
639644
"""
640645
total: Int!
646+
"""
647+
The count of pushed-only changesets.
648+
"""
649+
pushedOnly: Int!
641650
}
642651

643652
"""
@@ -668,6 +677,10 @@ type GlobalChangesetsStats {
668677
The count of all changesets.
669678
"""
670679
total: Int!
680+
"""
681+
The count of pushed-only changesets.
682+
"""
683+
pushedOnly: Int!
671684
}
672685

673686
"""
@@ -730,6 +743,36 @@ type ChangesetEventConnection {
730743
pageInfo: PageInfo!
731744
}
732745

746+
"""
747+
Input type for creating or updating a batch spec library variable.
748+
"""
749+
input BatchSpecLibraryVariableInput {
750+
"""
751+
The name of the library variable.
752+
"""
753+
name: String!
754+
755+
"""
756+
The description of the library variable.
757+
"""
758+
description: String!
759+
760+
"""
761+
The regex pattern to match against in the batch spec.
762+
"""
763+
pattern: String!
764+
765+
"""
766+
The level of the library variable (ERROR, WARNING, or INFO). Will be used to display an alert when the input doesn't match the pattern.
767+
"""
768+
level: BatchSpecLibraryVariableLevel!
769+
770+
"""
771+
If the variable is mandatory when filling out values.
772+
"""
773+
mandatory: Boolean!
774+
}
775+
733776
"""
734777
This enum declares all supported sorting orders for batch changes.
735778
"""
@@ -853,7 +896,7 @@ enum ChangesetSpecOperation {
853896
"""
854897
Push code to code host on new branch, but do not start a merge request.
855898
"""
856-
PUSH_ONLY
899+
PUSHED_ONLY
857900
}
858901

859902
"""
@@ -1035,7 +1078,7 @@ type ExistingChangesetReference {
10351078
}
10361079

10371080
"""
1038-
A quadruple that represents all possible states of the published value: true, false, 'draft', or null. Note: this will also include `"pushed-only"` if the 'push-only-changesets' frontend feature flag is set to 'true'.
1081+
A quadruple that represents all possible states of the published value: true, false, 'draft', 'pushed-only', or null.
10391082
"""
10401083
scalar PublishedValue
10411084

@@ -1437,6 +1480,10 @@ extend type Mutation {
14371480
Labels associated with this batch spec, such as "featured". Used for filtering and categorization.
14381481
"""
14391482
labels: [String!]
1483+
"""
1484+
Library variables to associate with this batch spec template.
1485+
"""
1486+
libraryVariables: [BatchSpecLibraryVariableInput!]
14401487
): BatchSpecLibraryRecord!
14411488

14421489
"""
@@ -1461,6 +1508,10 @@ extend type Mutation {
14611508
Labels associated with this batch spec, such as "featured". Used for filtering and categorization.
14621509
"""
14631510
labels: [String!]
1511+
"""
1512+
Library variables to associate with this batch spec template.
1513+
"""
1514+
libraryVariables: [BatchSpecLibraryVariableInput!]
14641515
): BatchSpecLibraryRecord!
14651516

14661517
"""
@@ -1935,6 +1986,13 @@ extend type Mutation {
19351986
"""
19361987
publishChangesets(batchChange: ID!, changesets: [ID!]!, draft: Boolean = false): BulkOperation!
19371988

1989+
"""
1990+
Push code to code host for multiple changesets without creating merge requests.
1991+
1992+
Experimental: This API is likely to change in the future.
1993+
"""
1994+
pushOnlyChangesets(batchChange: ID!, changesets: [ID!]!): BulkOperation!
1995+
19381996
"""
19391997
Attempts to cancel the execution of the given batch spec. All workspace jobs
19401998
that are QUEUED or PROCESSING will be cancelled. The execution must not have completed yet.
@@ -2000,6 +2058,66 @@ type BatchSpecLibraryRecord {
20002058
Labels associated with this batch spec, such as "featured". Used for filtering and categorization.
20012059
"""
20022060
labels: [String!]!
2061+
2062+
"""
2063+
Library variables associated with this batch spec template.
2064+
"""
2065+
libraryVariables: [BatchSpecLibraryVariable!]!
2066+
}
2067+
2068+
"""
2069+
A library variable for a batch spec.
2070+
"""
2071+
type BatchSpecLibraryVariable {
2072+
"""
2073+
The unique ID for the library variable.
2074+
"""
2075+
id: ID!
2076+
2077+
"""
2078+
The name of the library variable.
2079+
"""
2080+
name: String!
2081+
2082+
"""
2083+
The description of the library variable.
2084+
"""
2085+
description: String!
2086+
2087+
"""
2088+
The pattern to match against in the batch spec.
2089+
"""
2090+
pattern: String!
2091+
2092+
"""
2093+
The level of the library variable (ERROR, WARNING, or INFO). Will be used to display an alert when the input doesn't match the pattern.
2094+
"""
2095+
level: BatchSpecLibraryVariableLevel!
2096+
2097+
"""
2098+
If the variable is mandatory when filling out values.
2099+
"""
2100+
mandatory: Boolean!
2101+
}
2102+
2103+
"""
2104+
The level of a batch spec library variable.
2105+
"""
2106+
enum BatchSpecLibraryVariableLevel {
2107+
"""
2108+
Errors block submission of the batch spec.
2109+
"""
2110+
ERROR
2111+
2112+
"""
2113+
Warnings show a warning but don't block submission.
2114+
"""
2115+
WARNING
2116+
2117+
"""
2118+
Informational messages that don't block submission.
2119+
"""
2120+
INFO
20032121
}
20042122

20052123
"""
@@ -2022,6 +2140,56 @@ type BatchSpecLibraryConnection {
20222140
nodes: [BatchSpecLibraryRecord!]!
20232141
}
20242142

2143+
"""
2144+
Input for the renderBatchSpecTemplateWithVariables query.
2145+
"""
2146+
input BatchSpecTemplateVariableInput {
2147+
"""
2148+
The ID of the variable.
2149+
"""
2150+
id: ID!
2151+
2152+
"""
2153+
The value of the variable.
2154+
"""
2155+
value: String!
2156+
}
2157+
2158+
"""
2159+
A validation error for a batch spec template variable.
2160+
"""
2161+
type BatchSpecTemplateVariableValidationError {
2162+
"""
2163+
The variable that failed validation.
2164+
"""
2165+
variable: BatchSpecLibraryVariable!
2166+
2167+
"""
2168+
The provided value that failed validation.
2169+
"""
2170+
value: String!
2171+
2172+
"""
2173+
The validation error message.
2174+
"""
2175+
message: String!
2176+
}
2177+
2178+
"""
2179+
Result of rendering a batch spec template with variables.
2180+
"""
2181+
type RenderBatchSpecTemplateWithVariablesResult {
2182+
"""
2183+
The rendered batch spec with variables applied.
2184+
"""
2185+
spec: String!
2186+
2187+
"""
2188+
Any validation errors encountered during rendering.
2189+
"""
2190+
validationErrors: [BatchSpecTemplateVariableValidationError!]!
2191+
}
2192+
20252193
extend type Query {
20262194
"""
20272195
Returns a list of saved batch spec templates that can be reused to create new batch changes.
@@ -2047,6 +2215,32 @@ extend type Query {
20472215
labelFilter: [String!]
20482216
): BatchSpecLibraryConnection
20492217

2218+
"""
2219+
Fetches a single batch spec template by ID.
2220+
"""
2221+
getBatchSpecLibraryRecord(id: ID!): BatchSpecLibraryRecord
2222+
2223+
"""
2224+
Renders a batch spec template with the provided variable values.
2225+
Returns the rendered spec and any validation errors.
2226+
"""
2227+
renderBatchSpecTemplateWithVariables(
2228+
"""
2229+
The ID of the batch spec library record to render.
2230+
"""
2231+
id: ID!
2232+
2233+
"""
2234+
The variable values to use for rendering.
2235+
"""
2236+
inputs: [BatchSpecTemplateVariableInput!]!
2237+
): RenderBatchSpecTemplateWithVariablesResult!
2238+
2239+
"""
2240+
Retrieves changeset specs by their IDs.
2241+
"""
2242+
getChangesetSpecsByIDs(ids: [ID!]!): ChangesetSpecConnection!
2243+
20502244
"""
20512245
A list of batch changes.
20522246
"""
@@ -3126,7 +3320,7 @@ enum BulkOperationType {
31263320
"""
31273321
AUTO_MERGE
31283322
"""
3129-
Only push code to new branch on code host, do not start a new merge request.
3323+
Push code to a code host without making a merge request.
31303324
"""
31313325
PUSH_ONLY
31323326
}

gql/codeintel.codenav.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,11 @@ type UsageRange {
709709
The repository this usage is present in.
710710
"""
711711
repository: String!
712+
713+
"""
714+
The database ID of the repository this usage is present in.
715+
"""
716+
repositoryID: ID!
712717
"""
713718
TODO(issue: GRAPH-614): 'revision' field should have type GitCommit
714719
before stabilizing this API.

0 commit comments

Comments
 (0)