From cc387f684f1f069adb80bf726fb6438327774902 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Tue, 30 Jan 2024 15:52:09 -0600 Subject: [PATCH] feat: {PropertyTargetDefinition, RepositoryPropertyConditionTarget, RepositoryRule#repository_property} (#891) --- schema.d.ts | 38 ++++++++ schema.graphql | 70 +++++++++++++++ schema.json | 234 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 342 insertions(+) diff --git a/schema.d.ts b/schema.d.ts index 9036f7769..ec98f7ea6 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -17310,6 +17310,23 @@ export type ProjectV2WorkflowsOrderField = /** The date and time of the workflow update */ | 'UPDATED_AT'; +/** A property that must match */ +export type PropertyTargetDefinition = { + __typename?: 'PropertyTargetDefinition'; + /** The name of the property */ + name: Scalars['String']['output']; + /** The values to match for */ + propertyValues: Array; +}; + +/** A property that must match */ +export type PropertyTargetDefinitionInput = { + /** The name of the property */ + name: Scalars['String']['input']; + /** The values to match for */ + propertyValues: Array; +}; + /** A user's public key. */ export type PublicKey = Node & { __typename?: 'PublicKey'; @@ -22260,6 +22277,23 @@ export type RepositoryPrivacy = /** Public */ | 'PUBLIC'; +/** Parameters to be used for the repository_property condition */ +export type RepositoryPropertyConditionTarget = { + __typename?: 'RepositoryPropertyConditionTarget'; + /** Array of repository properties that must not match. */ + exclude: Array; + /** Array of repository properties that must match */ + include: Array; +}; + +/** Parameters to be used for the repository_property condition */ +export type RepositoryPropertyConditionTargetInput = { + /** Array of repository properties that must not match. */ + exclude: Array; + /** Array of repository properties that must match */ + include: Array; +}; + /** A repository rule. */ export type RepositoryRule = Node & { __typename?: 'RepositoryRule'; @@ -22282,6 +22316,8 @@ export type RepositoryRuleConditions = { repositoryId?: Maybe; /** Configuration for the repository_name condition */ repositoryName?: Maybe; + /** Configuration for the repository_property condition */ + repositoryProperty?: Maybe; }; /** Specifies the conditions required for a ruleset to evaluate */ @@ -22292,6 +22328,8 @@ export type RepositoryRuleConditionsInput = { repositoryId?: InputMaybe; /** Configuration for the repository_name condition */ repositoryName?: InputMaybe; + /** Configuration for the repository_property condition */ + repositoryProperty?: InputMaybe; }; /** The connection type for RepositoryRule. */ diff --git a/schema.graphql b/schema.graphql index 035a3a1be..0e6baf317 100644 --- a/schema.graphql +++ b/schema.graphql @@ -33972,6 +33972,36 @@ enum ProjectV2WorkflowsOrderField { UPDATED_AT } +""" +A property that must match +""" +type PropertyTargetDefinition { + """ + The name of the property + """ + name: String! + + """ + The values to match for + """ + propertyValues: [String!]! +} + +""" +A property that must match +""" +input PropertyTargetDefinitionInput { + """ + The name of the property + """ + name: String! + + """ + The values to match for + """ + propertyValues: [String!]! +} + """ A user's public key. """ @@ -44774,6 +44804,36 @@ enum RepositoryPrivacy { PUBLIC } +""" +Parameters to be used for the repository_property condition +""" +type RepositoryPropertyConditionTarget { + """ + Array of repository properties that must not match. + """ + exclude: [PropertyTargetDefinition!]! + + """ + Array of repository properties that must match + """ + include: [PropertyTargetDefinition!]! +} + +""" +Parameters to be used for the repository_property condition +""" +input RepositoryPropertyConditionTargetInput { + """ + Array of repository properties that must not match. + """ + exclude: [PropertyTargetDefinitionInput!]! + + """ + Array of repository properties that must match + """ + include: [PropertyTargetDefinitionInput!]! +} + """ A repository rule. """ @@ -44817,6 +44877,11 @@ type RepositoryRuleConditions { Configuration for the repository_name condition """ repositoryName: RepositoryNameConditionTarget + + """ + Configuration for the repository_property condition + """ + repositoryProperty: RepositoryPropertyConditionTarget } """ @@ -44837,6 +44902,11 @@ input RepositoryRuleConditionsInput { Configuration for the repository_name condition """ repositoryName: RepositoryNameConditionTargetInput + + """ + Configuration for the repository_property condition + """ + repositoryProperty: RepositoryPropertyConditionTargetInput } """ diff --git a/schema.json b/schema.json index 615e6a72b..0599762d8 100644 --- a/schema.json +++ b/schema.json @@ -88506,6 +88506,104 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "PropertyTargetDefinition", + "description": "A property that must match", + "fields": [ + { + "name": "name", + "description": "The name of the property", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "propertyValues", + "description": "The values to match for", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "PropertyTargetDefinitionInput", + "description": "A property that must match", + "fields": null, + "inputFields": [ + { + "name": "name", + "description": "The name of the property", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "propertyValues", + "description": "The values to match for", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "PublicKey", @@ -116761,6 +116859,120 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "RepositoryPropertyConditionTarget", + "description": "Parameters to be used for the repository_property condition", + "fields": [ + { + "name": "exclude", + "description": "Array of repository properties that must not match.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PropertyTargetDefinition", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "include", + "description": "Array of repository properties that must match", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PropertyTargetDefinition", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "RepositoryPropertyConditionTargetInput", + "description": "Parameters to be used for the repository_property condition", + "fields": null, + "inputFields": [ + { + "name": "exclude", + "description": "Array of repository properties that must not match.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PropertyTargetDefinitionInput", + "ofType": null + } + } + } + }, + "defaultValue": null + }, + { + "name": "include", + "description": "Array of repository properties that must match", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PropertyTargetDefinitionInput", + "ofType": null + } + } + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "RepositoryRule", @@ -116874,6 +117086,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "repositoryProperty", + "description": "Configuration for the repository_property condition", + "args": [], + "type": { + "kind": "OBJECT", + "name": "RepositoryPropertyConditionTarget", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -116916,6 +117140,16 @@ "ofType": null }, "defaultValue": null + }, + { + "name": "repositoryProperty", + "description": "Configuration for the repository_property condition", + "type": { + "kind": "INPUT_OBJECT", + "name": "RepositoryPropertyConditionTargetInput", + "ofType": null + }, + "defaultValue": null } ], "interfaces": null,