-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[NoQA] Prevent commit messages that end in \
from breaking getMergeLogsAsJSON()
#13500
Conversation
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.
@francoisl This is a little bit mind-boggling but I guess we can take this for now to make sure the checklist works, great find!
Reviewer Checklist
Screenshots/VideosNo screenshots needed, this change only related to github actions. |
\
from breaking getMergeLogsAsJSON()
\
from breaking getMergeLogsAsJSON()
@francoisl A few pieces of feedback:
|
🚀 Deployed to production by @chiragsalian in version: 1.2.39-0 🚀
|
Details
When we generate the changelog in JSON format with
git log --format={...}
, if we have a commit like this one whose subject ends with a backslash, we generate invalid JSON, since we're technically escaping the double quote to end the subject.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/248037
N/A
Tests
I made this after running
createOrUpdateStagingDeploy.js
with a hardcoded search/replace for the invalid commit message, so I didn't get to test it in real-life. But the concept is:Offline tests
N/A
QA Steps
No QA, only affects the build systems
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android