mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Update method for getting PR number and modify output report
The code updates the way we fetch the Pull Request number in the Github action. Rather than using an external action, we directly make use of Github's CLI, which helps improve the speed and reliability of the workflow. Additionally, the output report's format in terminal.py, previously named as "Git Comment", has been changed to "Error Files" to better reflect the information it carries. CURA-10903
This commit is contained in:
parent
d52cd78852
commit
a965392559
2 changed files with 8 additions and 6 deletions
|
@ -42,7 +42,7 @@ def main() -> None:
|
|||
settings = yaml.load(f, yaml.FullLoader)
|
||||
|
||||
full_body_check = {"Diagnostics": []}
|
||||
comments_check = {"Git Comment": []}
|
||||
comments_check = {"Error Files": []}
|
||||
|
||||
for file in files:
|
||||
if not path.exists(file):
|
||||
|
@ -52,7 +52,7 @@ def main() -> None:
|
|||
if args.deleted:
|
||||
for file in args.Files:
|
||||
deletedFiles = diagnoseIssuesWithFile(file, settings )
|
||||
comments_check["Git Comment"].extend([d.toDict() for d in deletedFiles])
|
||||
comments_check["Error Files"].extend([d.toDict() for d in deletedFiles])
|
||||
|
||||
results = yaml.dump(comments_check, default_flow_style=False, indent=4, width=240)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue