sapling/addons/reviewstack
Michael Bolin f32ae61f72 reviewstack: fix parsing logic to hide stack info from PR body
Summary:
Updates `parseSaplingStackBody()` to keep track of the format
of the PR body that it parsed so that
`stripStackInfoFromSaplingBodyHTML()` can do the right thing
in both cases.

Reviewed By: quark-zju

Differential Revision: D42183664

fbshipit-source-id: 41bb47bfc5034deae357a444fa5816b674a6329b
2022-12-21 21:32:14 -08:00
..
docs cleaned up READMEs 2022-11-15 09:31:00 -08:00
src reviewstack: fix parsing logic to hide stack info from PR body 2022-12-21 21:32:14 -08:00
.gitignore Re-sync with internal repository 2022-11-15 00:48:09 -08:00
codegen.js Re-sync with internal repository 2022-11-15 00:48:09 -08:00
codegen.yml Re-sync with internal repository 2022-11-15 00:48:09 -08:00
package.json Re-sync with internal repository 2022-11-15 00:48:09 -08:00
README.md cleaned up READMEs 2022-11-15 09:31:00 -08:00
textmate.js Re-sync with internal repository 2022-11-15 00:48:09 -08:00
tsconfig.json Re-sync with internal repository 2022-11-15 00:48:09 -08:00

ReviewStack

ReviewStack is a novel user interface for GitHub pull requests with custom support for stacked changes. The user experience is inspired by Meta's internal code review tool, but leverages GitHub's design system to achieve a look and feel that is familiar to GitHub users:

A hosted instance of ReviewStack is publicly available at https://reviewstack.dev/. Note that it has no server component (though it does leverage Netlify's OAuth signing to authenticate with GitHub).

Local Development

  • Run yarn in the addons/ folder to install all the dependencies.
  • Run yarn codegen in the addons/reviewstack to build the generated code.
  • Run yarn start in the addons/reviewstack.dev folder to run a local instance of ReviewStack.

The development environment was created using Create React App, so it should be available on http://localhost:3000/ by default.

If you have already authenticated with the GitHub CLI gh, you can run:

gh auth status -t

to dump your GitHub personal access token that you can use with the development instance of ReviewStack.

WARNING: The token will be written to localStorage, and in the course of using the app, various data from GitHub may be written to localStorage or indexedDB for the host localhost:3000. This means that if you ran another development server on port 3000 later on, it would be able to read any of the GitHub data stored locally by ReviewStack! Note that if you click Logout in the ReviewStack UI, it will delete all of the locally stored GitHub data, so be sure to do this before running a different application on port 3000.