Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate GitHub issue templates #307

Merged
merged 4 commits into from
Feb 19, 2024
Merged

Validate GitHub issue templates #307

merged 4 commits into from
Feb 19, 2024

Conversation

dstansby
Copy link
Member

This validates the GitHub issue tempaltes against a schema, and would have caught the issue that was fixed by #306.

Unfortunately it's not possible to validate the package template files as they contain invalid characters for a string entry ({ and }).

@dstansby dstansby requested a review from paddyroddy February 19, 2024 10:39
Copy link
Member

@paddyroddy paddyroddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry thought of one more thing

@@ -56,3 +56,12 @@ repos:
args:
- --fix=lf
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: cb934cfd6d2eea1aed7b20e4e9e6339d5952322c # 0.28.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume renovate will use this syntax in the future. How does this play with pre-commit autoupdate?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢 pre-commit autoupdate doesn't like it, and just changes it back to a version number. So I've switched the SHAs to version numbers.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I thought that might be the case. The pre-commit maintainer is pretty stubborn, too, so he likely won't change the format.

@dstansby dstansby merged commit 6fe5210 into main Feb 19, 2024
15 checks passed
@dstansby dstansby deleted the validate-josn branch February 19, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants