Skip to content

Commit

Permalink
feat: {PropertyTargetDefinition, RepositoryPropertyConditionTarget, R…
Browse files Browse the repository at this point in the history
…epositoryRule#repository_property} (#891)
  • Loading branch information
octokitbot committed Jan 30, 2024
1 parent a868665 commit cc387f6
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 0 deletions.
38 changes: 38 additions & 0 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Scalars['String']['output']>;
};

/** A property that must match */
export type PropertyTargetDefinitionInput = {
/** The name of the property */
name: Scalars['String']['input'];
/** The values to match for */
propertyValues: Array<Scalars['String']['input']>;
};

/** A user's public key. */
export type PublicKey = Node & {
__typename?: 'PublicKey';
Expand Down Expand Up @@ -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<PropertyTargetDefinition>;
/** Array of repository properties that must match */
include: Array<PropertyTargetDefinition>;
};

/** Parameters to be used for the repository_property condition */
export type RepositoryPropertyConditionTargetInput = {
/** Array of repository properties that must not match. */
exclude: Array<PropertyTargetDefinitionInput>;
/** Array of repository properties that must match */
include: Array<PropertyTargetDefinitionInput>;
};

/** A repository rule. */
export type RepositoryRule = Node & {
__typename?: 'RepositoryRule';
Expand All @@ -22282,6 +22316,8 @@ export type RepositoryRuleConditions = {
repositoryId?: Maybe<RepositoryIdConditionTarget>;
/** Configuration for the repository_name condition */
repositoryName?: Maybe<RepositoryNameConditionTarget>;
/** Configuration for the repository_property condition */
repositoryProperty?: Maybe<RepositoryPropertyConditionTarget>;
};

/** Specifies the conditions required for a ruleset to evaluate */
Expand All @@ -22292,6 +22328,8 @@ export type RepositoryRuleConditionsInput = {
repositoryId?: InputMaybe<RepositoryIdConditionTargetInput>;
/** Configuration for the repository_name condition */
repositoryName?: InputMaybe<RepositoryNameConditionTargetInput>;
/** Configuration for the repository_property condition */
repositoryProperty?: InputMaybe<RepositoryPropertyConditionTargetInput>;
};

/** The connection type for RepositoryRule. */
Expand Down
70 changes: 70 additions & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down Expand Up @@ -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.
"""
Expand Down Expand Up @@ -44817,6 +44877,11 @@ type RepositoryRuleConditions {
Configuration for the repository_name condition
"""
repositoryName: RepositoryNameConditionTarget

"""
Configuration for the repository_property condition
"""
repositoryProperty: RepositoryPropertyConditionTarget
}

"""
Expand All @@ -44837,6 +44902,11 @@ input RepositoryRuleConditionsInput {
Configuration for the repository_name condition
"""
repositoryName: RepositoryNameConditionTargetInput

"""
Configuration for the repository_property condition
"""
repositoryProperty: RepositoryPropertyConditionTargetInput
}

"""
Expand Down

0 comments on commit cc387f6

Please sign in to comment.