[No QA] Fix failureNotifier issue body rendered as code block#82845
[No QA] Fix failureNotifier issue body rendered as code block#82845neil-marcellini merged 1 commit intomainfrom
Conversation
|
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@neil-marcellini do you need to rebuild GH actions? |
10d63ea to
2cd81d1
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f1164d16a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2cd81d1 to
7a9c89d
Compare
|
No C+ review needed in my opinion. |
|
@codex please review |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The `dedent` utility strips the minimum indentation from all lines. When the errorMessage content was injected with `\n ` (1 space), it became the minimum-indentation line, so dedent only stripped 1 space instead of 12, leaving 11 spaces on every other line. GitHub Markdown renders 4+ leading spaces as a code block. Fix: pre-indent errorMessage lines to match the template indentation so dedent calculates the correct minimum and strips all 12 spaces. Co-authored-by: Cursor <cursoragent@cursor.com>
7a9c89d to
7e1eda1
Compare
|
I filled out the whole checklist so I'm not sure why the CI check isn't passing, but I don't think it really matters so I'm going to merge anyways. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.3.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
Explanation of Change
The
dedentutility infailureNotifier.tsstrips the minimum indentation from all lines in a template literal. When theerrorMessagecontent was interpolated, its lines had different (lower) indentation than the rest of the template. This madededentmiscalculate the minimum indent — it stripped only 1 space instead of 12, leaving 11 leading spaces on every other line. GitHub Markdown renders 4+ leading spaces as a code block, which is why recent workflow failure issues have their entire body rendered inside a code block.Fix: Remove
dedentand use a plain template literal that starts at column 0. This is the simplest approach sincededentdoesn't work reliably with interpolated multi-line values that have different indentation. A comment explains why the template is intentionally unindented relative to the surrounding code.Fixed Issues
$ #82842
Tests
N/A — No QA, GitHub Actions workflow change only.
Local output verification
Ran a local simulation of the template with sample data. The fixed output has zero lines with 4+ leading spaces, matching correctly-formatted older issues.
Fixed output:
✅ No lines with 4+ leading spaces — will render as proper Markdown.
Broken output (before fix):
❌ 15 lines with 4+ leading spaces — renders as code block on GitHub.
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
N/A — CI workflow change only, no UI changes.