-
Notifications
You must be signed in to change notification settings - Fork 3
Add ability to provide changelog for add-ons #52
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
Changes from 49 commits
9d95d97
4a7f9b4
5427327
23e4bb4
3ece59f
1f5dc75
d9f3f49
f2efd30
b0754e6
9835dd8
07d493f
4dcd7df
b921d6f
ff43517
aaf2b85
8b1ed2a
38da96d
ecb8957
098a480
cbe5d18
c93e4a5
a0b53f8
a35e5db
3529858
c816603
288ea2f
40274dd
f776545
ebe905a
75d6e0d
bb03c83
9a044f7
cd3e0a4
0064120
d0af4bd
438f427
ffbfe0a
7fd4b0c
3385e8f
98f2703
92b193f
2d838ae
c000bff
89e3ba7
0003084
9e24496
0fbfa69
815226c
e915411
879e61b
efc4fc2
ba1ea07
bc652ab
9318884
6b7789c
f8fe187
18cc72c
caf598d
58a6fc4
9566693
e7f9414
ed2f0ed
8cc1dcd
639d095
58a88be
75eb537
b1d3fe0
d65f79f
4354cfb
8fe9415
377dd49
745c4cb
c4d7e87
c807a0e
b4fd29c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,13 +23,23 @@ def regenerateJsonFile(filePath: str, errorFilePath: str | None) -> None: | |||||||||||||||||||||||
| with open(errorFilePath, "w") as errorFile: | ||||||||||||||||||||||||
| errorFile.write(f"Validation Errors:\n{manifest.errors}") | ||||||||||||||||||||||||
| return | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| changelog = manifest.get("changelog") # type: ignore[reportUnknownMemberType] | ||||||||||||||||||||||||
| if changelog == "None": | ||||||||||||||||||||||||
| # The config default is None | ||||||||||||||||||||||||
| # which is parsed by configobj as a string not a NoneType | ||||||||||||||||||||||||
| changelog = None | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
| changelog = None | |
| changelog = None | |
| # Add the main manifest's translation (default language) to translations | |
| addonData["translations"].append( | |
| { | |
| "language": manifest.get("language", "default"), | |
| "displayName": manifest["summary"], | |
| "description": manifest["description"], | |
| "changelog": changelog, | |
| }, | |
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead, this should just be removed. It's not useful/needed to add this when regenerating files.
Only translations need to be regenerated
https://github.com/nvaccess/addon-datastore-validation/pull/52/files#r2512898348
Uh oh!
There was an error while loading. Please reload this page.