-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
feat: add custom commit message #1136
Conversation
Addresses: facebook#1135
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Deploy preview for docusaurus-preview ready! Built with commit 82519a8 |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
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.
Seems reasonable to me
v1/lib/publish-gh-pages.js
Outdated
@@ -165,9 +166,10 @@ fs.copy( | |||
|
|||
shell.cd(path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`)); | |||
shell.exec('git add --all'); | |||
|
|||
|
|||
const commitMessage = CUSTOM_COMMIT_MESSAGE ? CUSTOM_COMMIT_MESSAGE : 'Deploy website' |
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.
const commitMessage = CUSTOM_COMMIT_MESSAGE || 'Deploy website'
@@ -162,8 +162,17 @@ Now, whenever a new commit lands in `master`, CircleCI will run your suite of te | |||
|
|||
### Tips & Tricks | |||
|
|||
When initially deploying to a `gh-pages` branch using Circle CI, you may notice that some jobs triggered by commits to the `gh-pages` branch fail to run successfully due to a lack of tests. You can easily work around this by creating a basic Circle CI config with the following contents: | |||
When initially deploying to a `gh-pages` branch using Circle CI, you may notice that some jobs triggered by commits to the `gh-pages` branch fail to run successfully due to a lack of tests (This can also result in chat/slack build failure notifications). |
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.
Add the chat/slack build notifications to pickup on commonly searched google terms
@endiliey added to v2 and some docs. Ran prettier. |
Addresses: #1135. Looking for early feedback.
Motivation
See #1135
Have you read the [Contributing Guidelines on pull requests]
Yes
Test Plan
Testing happen as part of deploy, could not find additional unit tests.
Related PRs
Docs in this PR