mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 10:03:49 -06:00
fix: validate_pr json says failed, not new
The JSON report put "outcome": "new" on every file without another outcome, so a path that does not exist, or a file that failed a check, was listed as a new contribution. A failed file now reads "failed".
This commit is contained in:
1 parent
a1ddee8e5e
commit
a343be0da1
2 files changed
+11
-1
No files matched your search
@@ -847,7 +847,8 @@ def main() -> None:
|
||||
{
|
||||
"file": r.filepath,
|
||||
"passed": r.passed,
|
||||
"outcome": r.outcome or "new",
|
||||
# A file that failed, unread or refused, is not a new one.
|
||||
"outcome": r.outcome or ("new" if r.passed else "failed"),
|
||||
"destination": r.destination,
|
||||
"sha1": r.sha1,
|
||||
"md5": r.md5,
|
||||
|
||||
Reference in new issue
Block a user