Skip to content

Commit

Permalink
Merge pull request #1969 from mfisher87/support-version-update-skip
Browse files Browse the repository at this point in the history
Add version update skip field to schema
  • Loading branch information
beckermr authored Jul 1, 2024
2 parents b0facd0 + c756581 commit dd6091b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Below are a few things we ask you kindly to self-check before getting a review.
-->
Checklist
* [ ] Added a ``news`` entry
* [ ] Regenerated schema JSON if schema altered (`python conda_smithy/schema.py`)

<!--
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/closing-issues-using-keywords/ ):
Expand Down
16 changes: 16 additions & 0 deletions conda_smithy/data/conda-forge.json
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,19 @@
"default": null,
"description": "List of sources to use for version updates",
"title": "Sources"
},
"skip": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": false,
"description": "Skip automatic version updates. Useful in cases where the source project's version numbers don't conform to PEP440.",
"title": "Skip"
}
},
"title": "BotConfigVersionUpdates",
Expand Down Expand Up @@ -782,6 +795,9 @@
"Nullable": {
"const": null,
"description": "Created to avoid issue with schema validation of null values in lists or dicts.",
"enum": [
null
],
"title": "Nullable"
},
"Platforms": {
Expand Down
1 change: 1 addition & 0 deletions conda_smithy/data/conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ bot:
version_updates:
exclude: []
random_fraction_to_keep: null
skip: false
sources: null
build_platform:
emscripten_wasm32: emscripten_wasm32
Expand Down
7 changes: 7 additions & 0 deletions conda_smithy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,13 @@ class BotConfigVersionUpdates(BaseModel):
description="List of sources to use for version updates",
)

skip: Optional[bool] = Field(
default=False,
description="Skip automatic version updates. "
"Useful in cases where the source project's version numbers don't conform to "
"PEP440.",
)


class BotConfig(BaseModel):
"""
Expand Down
3 changes: 3 additions & 0 deletions news/schema_update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Added:**

* Added new schema entries for the bot section of the ``conda-forge.yml``. (#1969)

0 comments on commit dd6091b

Please sign in to comment.