mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
f6bef0c4c6
Summary: This was requested for `sl pr` in https://github.com/facebook/sapling/issues/218, though this diff adds support for signing commits in general, in Sapling. Here's how it works: - `sl config --local gpg.key <KEY>` to specify your key - Now `gitcommittext()` takes an optional `str` for the `gpgsigningkey` if `gpg.key` is set and `gpg.enabled` is `true` (which is the default). - The text of the unsigned commit object is constructed and then signed using `gpg --status-fd=2 -bsau <KEY>` with the text passed via stdin. - The resulting signature is embedded into the original text to sign it. Note that the original PGP key goes through some minor formatting (`\r` is removed; lines must start with a space to avoid a `\n\n` sequence) before it is embedded. I documented things to the best of my knowledge in `eden/website/docs/git/signing.md`. Follow-up items: - Show signed status in smartlog? - Update `sl ghstack` to honor signing configuration when running `git commit-tree`. - Update `sl pr` to honor signing configuration when running `git commit-tree`. Reviewed By: quark-zju Differential Revision: D41778874 fbshipit-source-id: 5018a0d8bea1b5e9293c05954db65f35dd3c7aff |
||
---|---|---|
.. | ||
docs | ||
fb | ||
scripts | ||
src | ||
static | ||
.eslintrc.js | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
.stylelintrc.js | ||
babel.config.js | ||
constants.js | ||
docusaurus.config.js | ||
elements.tsx | ||
package.json | ||
README.md | ||
sidebars.js | ||
tsconfig.json | ||
yarn.lock |
Website
This website is built using Docusaurus 2, a modern static website generator.
Installation
$ yarn
Local Development
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
Deployment
Using SSH:
$ USE_SSH=true yarn deploy
Not using SSH:
$ GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.
Continuous Integration
Some common defaults for linting/formatting have been set for you. If you integrate your project with an open source Continuous Integration system (e.g. Travis CI, CircleCI), you may check for issues using the following command.
$ yarn ci