-
Notifications
You must be signed in to change notification settings - Fork 85
fix: Don't use link escape chars when no tty #489
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 all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -328,7 +328,7 @@ def print_console(self, pr: int | None) -> None: | |||||
| if pr is not None: | ||||||
| pr_url = f"https://github.com/NixOS/nixpkgs/pull/{pr}" | ||||||
| info("\nLink to currently reviewing PR:") | ||||||
| link(f"\u001b]8;;{pr_url}\u001b\\{pr_url}\u001b]8;;\u001b\\\n") | ||||||
| link(pr_url) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rationale for this suggestion being?.. Either way seems fine, so unless there's a strong reason, I'd stick to status-quo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To the python virtual stack machine these two are nearly identical, but the former preserves |
||||||
|
|
||||||
| for system, report in self.system_reports.items(): | ||||||
| info(f"--------- Report for '{system}' ---------") | ||||||
|
|
||||||
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.