Skip to content

Commit

Permalink
add validation schema for label description length
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Oct 23, 2023
1 parent 08c39a2 commit c51736c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev126"
version = "0.0.0.dev127"
name = "RepoDynamics"
dependencies = [
"packaging >= 23.2, < 24",
Expand Down
20 changes: 20 additions & 0 deletions src/repodynamics/meta/_data/schema/dev/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ properties:
default: '0366d6'
description:
type: string
maxLength: 100
description: Description of the label
default: |
The issue/pull request is concerning this specific version of the package.
Expand Down Expand Up @@ -62,6 +63,18 @@ properties:
description: Labels for the commit type
type: object
default: {}
additionalProperties:
description: Labels for the commit type
type: object
properties:
suffix:
description: Suffix for the label name
type: string
description:
description: Description of the label
type: string
maxLength: 100
required: [ suffix, description ]
properties:
package_major:
type: object
Expand All @@ -74,6 +87,7 @@ properties:
description:
description: Description of the label
type: string
maxLength: 100
default: |
Resolving/merging the labeled issue/pull-request will result in a major release of the package.
package_minor:
Expand All @@ -87,6 +101,7 @@ properties:
description:
description: Description of the label
type: string
maxLength: 100
default: |
Resolving/merging the labeled issue/pull-request will result in a minor release of the package.
package_patch:
Expand All @@ -100,6 +115,7 @@ properties:
description:
description: Description of the label
type: string
maxLength: 100
default: |
Resolving/merging the labeled issue/pull-request will result in a patch release of the package.
package_post:
Expand All @@ -113,6 +129,7 @@ properties:
description:
description: Description of the label
type: string
maxLength: 100
default: |
Resolving/merging the labeled issue/pull-request will result in a post release of the package.
website:
Expand All @@ -126,6 +143,7 @@ properties:
description:
description: Description of the label
type: string
maxLength: 100
default: |
Resolving/merging the labeled issue/pull-request will result in deployment of the website.
meta:
Expand All @@ -139,6 +157,7 @@ properties:
description:
description: Description of the label
type: string
maxLength: 100
default: |
An issue/pull-request about the meta content of the repository.
required: [ package_major, package_minor, package_patch, package_post, website, meta ]
Expand Down Expand Up @@ -171,6 +190,7 @@ properties:
description:
description: Description of the label
type: string
maxLength: 100
required: [ suffix, description ]
required: [ prefix, color, labels ]
required: [ primary_type, status ]
Expand Down

0 comments on commit c51736c

Please sign in to comment.