-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fixed author name string to remove apostrophe #3151
Conversation
WalkthroughThe update to the codebase addresses an issue where an apostrophe in the author's name in the Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- v2/cmd/wails/init.go (1 hunks)
Files skipped from review due to trivial changes (1)
- v2/cmd/wails/init.go
Thanks 🙏 Please could you add an entry to the changelog located at |
Hi, added the changelog message, @leaanthony |
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.
Review Status
Actionable comments generated: 4
Configuration used: CodeRabbit UI
Files selected for processing (1)
- website/src/pages/changelog.mdx (1 hunks)
Additional comments: 1
website/src/pages/changelog.mdx (1)
- 19-21:
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- website/src/pages/changelog.mdx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- website/src/pages/changelog.mdx
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- website/src/pages/changelog.mdx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- website/src/pages/changelog.mdx
@sbshah97 - I recalled that there are sometimes legitimate backslashes in git names. The example I was shown was windows domain users that can have git names of |
@sbshah97 - ping |
Hi apologies. I missed this. Coming back to this will make some changes later today. |
@@ -230,6 +230,7 @@ func findAuthorDetails(options *templates.Options) { | |||
name, err := git.Name() | |||
if err == nil { | |||
options.AuthorName = strings.TrimSpace(name) | |||
options.AuthorName = strings.Replace(options.AuthorName, "\\", "", -1) |
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.
This isn't removing an apostrophe from the name but rather a backslash. Perhaps a function sanitizeName would be appropriate if there are additional characters to be removed in the future.
Is this the only bad character that can occur?
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.
Sorry didn't get this, what is the change we are looking for ?
From what I understand,
- Create a function called sanitizeName
- Remove apostrophe from the author name instead of back slash.
ANything else?
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.
My point is the change doesn't accomplish what your PR title says it does.
I am not sure what the correct output is based on this change set and your comments.
@sbshah97 - any thoughts on this? |
Hi slightly caught on stuff. Happy in case someone else wants to make the proposed fixes |
|
Closing this for now as I think this use case is already covered. |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Closes #3128
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration using
wails doctor
.Test Configuration
Please paste the output of
wails doctor
. If you are unable to run this command, please describe your environment in as much detail as possible.Checklist:
website/src/pages/changelog.mdx
with details of this PRSummary by CodeRabbit