forked from facebook/react-native-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the remaining RN wiki content to website (facebook#3120)
Co-authored-by: Lorenzo Sciandra <[email protected]> Co-authored-by: Anthony Cyrille <[email protected]> Co-authored-by: Nicola Corti <[email protected]>
- Loading branch information
1 parent
34bf6e3
commit eac2dbd
Showing
33 changed files
with
1,186 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: Bots Reference | ||
--- | ||
|
||
## pull-bot | ||
|
||
This pull request linter bot performs basic sanity checks whenever a pull request is created. It might leave a comment on a pull request if it is unable to find a test plan or a changelog in the description, or if it notices that the pull request was not opened against the `main` branch. This bot uses [Danger](https://danger.systems), and its configuration can be found in the [`dangerfile.js`](https://github.com/facebook/react-native/blob/main/bots/dangerfile.js). | ||
|
||
## analysis-bot | ||
|
||
The code analysis bot collects feedback from tools such as Prettier, eslint, and Flow whenever a commit is added to a pull request. If any of these tools finds issues with the code, the bot will add these as inline review comments on the pull request. Its configuration can be found in the [`analyze_code.sh`](https://github.com/facebook/react-native/blob/main/scripts/circleci/analyze_code.sh) file in core repository. | ||
|
||
## label-actions | ||
|
||
A bot that acts on an issue or pull request based on a label. Configured in [`.github/respond-to-issue-based-on-label.yml`](https://github.com/facebook/react-native/blob/main/.github/respond-to-issue-based-on-label.yml). | ||
|
||
## github-actions | ||
|
||
A bot that performs actions defined in a GitHub workflow. Workflows are configured in [`.github/workflows`](https://github.com/facebook/react-native/tree/main/.github/workflows). | ||
|
||
## facebook-github-bot | ||
|
||
The Facebook GitHub Bot is used across several open source projects at Meta. In the case of React Native, you will most likely encounter it when it pushes a merge commit to `main` after a pull request is successfully imported to Facebook's internal source control. It will also let authors know if they are missing a Contributor License Agreement. | ||
|
||
## react-native-bot | ||
|
||
The React Native bot is a tool that helps us automate several processes described in this wiki. Configured in [`hramos/react-native-bot`](https://github.com/hramos/react-native-bot). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
title: Changelogs in Pull Requests | ||
--- | ||
|
||
The changelog entry in your pull request serves as a sort of "tl;dr:" for your changes: do they affect Android? are these breaking changes? is something new being added? | ||
|
||
Providing a changelog using a standardized format helps release coordinators write release notes. Please include a changelog as part of your pull request description. Your pull request description will be used as the commit message should the pull request get merged. | ||
|
||
### Format | ||
|
||
A changelog entry has the following format | ||
|
||
``` | ||
## Changelog: | ||
[Category] [Type] - Message | ||
``` | ||
|
||
The "Category" field may be one of: | ||
|
||
- **Android**, for changes that affect Android. | ||
- **iOS**, for changes that affect iOS. | ||
- **General**, for changes that do not fit any of the other categories. | ||
- **Internal**, for changes that would not be relevant to developers consuming the release notes. | ||
|
||
The "Type" field may be one of: | ||
|
||
- **Added**, for new features. | ||
- **Changed**, for changes in existing functionality. | ||
- **Deprecated**, for soon-to-be removed features. | ||
- **Removed**, for now removed features. | ||
- **Fixed**, for any bug fixes. | ||
- **Security**, in case of vulnerabilities. | ||
|
||
Finally, the "Message" field may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes. | ||
|
||
For more detail, see [How do I make a good changelog?](https://keepachangelog.com/en/1.0.0/#how) and [Why keep a changelog?](https://keepachangelog.com/en/1.0.0/#why) | ||
|
||
### Examples | ||
|
||
- `[General] [Added] - Add snapToOffsets prop to ScrollView component` | ||
- `[General] [Fixed] - Fix various issues in snapToInterval on ScrollView component` | ||
- `[iOS] [Fixed] - Fix crash in RCTImagePicker` | ||
|
||
### FAQ | ||
|
||
#### What if my pull request contains changes to both Android and JavaScript? | ||
|
||
Use the Android category. | ||
|
||
#### What if my pull request contains changes to both Android and iOS? | ||
|
||
Use the General category if the change is made in a single pull request. | ||
|
||
#### What if my pull request contains changes to Android, iOS, and JavaScript? | ||
|
||
Use the General category if the change is made in a single pull request. | ||
|
||
#### What if...? | ||
|
||
Any changelog entry is better than none. If you are unsure if you have picked the right category, use the "message" field to succinctly describe your change. | ||
|
||
These entries are used by the [`@rnx-kit/rn-changelog-generator`](https://github.com/microsoft/rnx-kit/tree/main/incubator/rn-changelog-generator) script to build a rough draft, which is then edited by a release coordinator. | ||
|
||
Your notes will be used to add your change to the correct location in the final release notes. |
Oops, something went wrong.