Skip to content
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

Merged
merged 5 commits into from
Dec 4, 2018
Merged

Conversation

jakebolam
Copy link
Member

@jakebolam jakebolam commented Dec 1, 2018

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

@facebook-github-bot
Copy link
Contributor

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 cla@fb.com. Thanks!

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Dec 1, 2018

Deploy preview for docusaurus-preview ready!

Built with commit 82519a8

https://deploy-preview-1136--docusaurus-preview.netlify.com

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 1, 2018
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Contributor

@endiliey endiliey left a 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

@@ -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'
Copy link
Contributor

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).
Copy link
Member Author

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

@jakebolam
Copy link
Member Author

@endiliey added to v2 and some docs. Ran prettier.

@endiliey endiliey merged commit c4a9b31 into facebook:master Dec 4, 2018
@jakebolam jakebolam deleted the patch-1 branch December 11, 2018 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants