-
Notifications
You must be signed in to change notification settings - Fork 17
fix: Explicitly handle LINK_TO_PROFILE flag in markdown output #297
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
@copilot can you fix the failing GitHub action related to linting |
@copilot can you add a test case for this logic |
Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
Added a test case covering string |
I'm thinking this points to a problem in the env code where we are not evaluating the string into the intended bool correctly. 👀 So I think the fix should be applied at the env.py level rather than trying to get the string to a bool right before we use it. |
…info Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
Previously, non-empty string values for
LINK_TO_PROFILE
(e.g."false"
) were treated as truthy, causing the username to always be prefixed (and effectively “linked”) even when the flag was intended to be false. This change normalizes thelink_to_profile
parameter by converting it to a lowercase string and checking explicitly for"true"
. Only if the flag equals"true"
(or booleanTrue
) will the username be prefixed with@
. Otherwise, it is rendered as plain text.link_to_profile
tostr(...).lower()
for comparison@username
only when the string equals"true"
True
/"True"
) are handled correctly"false"
caseFixes #268.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.
🚧 Copilot coding agent is using an experimental model for this task. Please take the time to report feedback with the 👍 or 👎 buttons.