mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Update repository references on 0.86 (#57666)
This commit is contained in:
1 parent
5b9e949a5a
commit
6766cc3655
196 files changed
+7079
-7079
No files matched your search
@@ -38,7 +38,7 @@ describe('Create Draft Release', () => {
|
||||
);
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -49,39 +49,39 @@ describe('Create Draft Release', () => {
|
||||
|
||||
## v0.77.2
|
||||
|
||||
- [PR #1234](https://github.com/facebook/react-native/pull/1234) - Some change
|
||||
- [PR #5678](https://github.com/facebook/react-native/pull/5678) - Some other change
|
||||
- [PR #1234](https://github.com/react/react-native/pull/1234) - Some change
|
||||
- [PR #5678](https://github.com/react/react-native/pull/5678) - Some other change
|
||||
|
||||
|
||||
## v0.77.1
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change
|
||||
|
||||
### Fixed
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change
|
||||
|
||||
|
||||
## v0.77.0
|
||||
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
|
||||
## v0.76.0
|
||||
|
||||
- [PR #7890](https://github.com/facebook/react-native/pull/7890) - Some other change`;
|
||||
- [PR #7890](https://github.com/react/react-native/pull/7890) - Some other change`;
|
||||
|
||||
jest.spyOn(fs, 'readFileSync').mockImplementationOnce(func => {
|
||||
return mockedReturnValue;
|
||||
@@ -89,24 +89,24 @@ describe('Create Draft Release', () => {
|
||||
const changelog = _extractChangelog('0.77.1');
|
||||
expect(changelog).toEqual(`## v0.77.1
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change
|
||||
|
||||
### Fixed
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change`);
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change`);
|
||||
});
|
||||
|
||||
it('does not extract changelog for rc.0', async () => {
|
||||
@@ -125,15 +125,15 @@ describe('Create Draft Release', () => {
|
||||
const version = '0.77.1';
|
||||
const changelog = `## v${version}
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change`;
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change`;
|
||||
const body = _computeBody(changelog, version);
|
||||
|
||||
expect(body).toEqual(`${changelog}
|
||||
@@ -166,7 +166,7 @@ To help you upgrade to this version, you can use the [Upgrade Helper](https://re
|
||||
|
||||
---
|
||||
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/react-native/blob/main/CHANGELOG.md).`);
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/react/react-native/blob/main/CHANGELOG.md).`);
|
||||
});
|
||||
|
||||
it('computes body for release when hermes versions are passed', async () => {
|
||||
@@ -175,15 +175,15 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
const hermesV1Version = '250829098.0.2';
|
||||
const changelog = `## v${version}
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change`;
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change`;
|
||||
const body = _computeBody(
|
||||
changelog,
|
||||
version,
|
||||
@@ -221,14 +221,14 @@ To help you upgrade to this version, you can use the [Upgrade Helper](https://re
|
||||
|
||||
---
|
||||
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/react-native/blob/main/CHANGELOG.md).`);
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/react/react-native/blob/main/CHANGELOG.md).`);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#_createDraftReleaseOnGitHub', () => {
|
||||
it('creates a draft release on GitHub', async () => {
|
||||
const version = '0.77.1';
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const token = 'token';
|
||||
const headers = {
|
||||
Accept: 'Accept: application/vnd.github+json',
|
||||
@@ -253,7 +253,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
Promise.resolve({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
}),
|
||||
}),
|
||||
);
|
||||
@@ -265,7 +265,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
);
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
`https://api.github.com/repos/facebook/react-native/releases`,
|
||||
`https://api.github.com/repos/react/react-native/releases`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
@@ -275,13 +275,13 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
expect(response).toEqual({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
});
|
||||
});
|
||||
|
||||
it('creates a draft release for prerelease on GitHub', async () => {
|
||||
const version = '0.77.0-rc.2';
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const token = 'token';
|
||||
const headers = {
|
||||
Accept: 'Accept: application/vnd.github+json',
|
||||
@@ -306,7 +306,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
Promise.resolve({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
}),
|
||||
}),
|
||||
);
|
||||
@@ -318,7 +318,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
);
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
`https://api.github.com/repos/facebook/react-native/releases`,
|
||||
`https://api.github.com/repos/react/react-native/releases`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
@@ -328,13 +328,13 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
expect(response).toEqual({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
});
|
||||
});
|
||||
|
||||
it('throws if the post failes', async () => {
|
||||
const version = '0.77.0-rc.2';
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const token = 'token';
|
||||
const headers = {
|
||||
Accept: 'Accept: application/vnd.github+json',
|
||||
@@ -362,7 +362,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
).rejects.toThrowError();
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
`https://api.github.com/repos/facebook/react-native/releases`,
|
||||
`https://api.github.com/repos/react/react-native/releases`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
|
||||
@@ -191,7 +191,7 @@ N/A`;
|
||||
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
'https://api.github.com/repos/facebook/react-native/pulls',
|
||||
'https://api.github.com/repos/react/react-native/pulls',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
@@ -203,7 +203,7 @@ N/A`;
|
||||
const currentVersion = '0.79.0-rc5';
|
||||
const token = 'token';
|
||||
const expectedPrURL =
|
||||
'https://github.com/facebook/react-native/pulls/1234';
|
||||
'https://github.com/react/react-native/pulls/1234';
|
||||
|
||||
const returnedObject = {
|
||||
status: 201,
|
||||
@@ -238,7 +238,7 @@ N/A`;
|
||||
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
'https://api.github.com/repos/facebook/react-native/pulls',
|
||||
'https://api.github.com/repos/react/react-native/pulls',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
|
||||
@@ -84,7 +84,7 @@ module.exports = async (github, context, labelWithContext) => {
|
||||
case 'Needs: Issue Template':
|
||||
await addComment(
|
||||
`> [!WARNING]\n` +
|
||||
`> **Missing issue template**: It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a [new issue is created](https://github.com/facebook/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A&projects=&template=bug_report.yml). Could you go back and make sure to fill out the template? You may edit this issue, or close it and open a new one.`,
|
||||
`> **Missing issue template**: It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a [new issue is created](https://github.com/react/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A&projects=&template=bug_report.yml). Could you go back and make sure to fill out the template? You may edit this issue, or close it and open a new one.`,
|
||||
);
|
||||
await requestAuthorFeedback();
|
||||
return;
|
||||
@@ -105,7 +105,7 @@ module.exports = async (github, context, labelWithContext) => {
|
||||
case 'Needs: Repro':
|
||||
await addComment(
|
||||
`> [!WARNING]\n` +
|
||||
`> **Missing reproducer**: We could not detect a reproducible example in your issue report. Reproducers are **mandatory** and we can accept only one of those as a valid reproducer: <br/><ul><li>For majority of bugs: send us a Pull Request with the [RNTesterPlayground.js](https://github.com/facebook/react-native/blob/main/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js) edited to reproduce your bug.</li><li>If your bug is UI related: a [Snack](https://snack.expo.dev)</li><li> If your bug is build/upgrade related: a project using our [Reproducer Template](https://github.com/react-native-community/reproducer-react-native/generate)</li></ul><br/>You can read more about about it on our website: [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug).`,
|
||||
`> **Missing reproducer**: We could not detect a reproducible example in your issue report. Reproducers are **mandatory** and we can accept only one of those as a valid reproducer: <br/><ul><li>For majority of bugs: send us a Pull Request with the [RNTesterPlayground.js](https://github.com/react/react-native/blob/main/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js) edited to reproduce your bug.</li><li>If your bug is UI related: a [Snack](https://snack.expo.dev)</li><li> If your bug is build/upgrade related: a project using our [Reproducer Template](https://github.com/react-native-community/reproducer-react-native/generate)</li></ul><br/>You can read more about about it on our website: [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug).`,
|
||||
);
|
||||
await requestAuthorFeedback();
|
||||
return;
|
||||
|
||||
@@ -21,6 +21,6 @@ if [ -x "$(command -v shellcheck)" ]; then
|
||||
-exec sh -c 'shellcheck "$1"' -- {} \;
|
||||
|
||||
else
|
||||
echo 'shellcheck is not installed. See https://github.com/facebook/react-native/wiki/Development-Dependencies#shellcheck for instructions.'
|
||||
echo 'shellcheck is not installed. See https://github.com/react/react-native/wiki/Development-Dependencies#shellcheck for instructions.'
|
||||
exit 1
|
||||
fi
|
||||
@@ -23,8 +23,8 @@ function _extractChangelog(version) {
|
||||
// for RC.0 and for the release of a new stable minor, the changelog is too long
|
||||
// to be added in a release. The release body is usually something shorter.
|
||||
// See for example the release for 0.76.0 or 0.77.0:
|
||||
// 0.76: https://github.com/facebook/react-native/releases/tag/v0.76.0
|
||||
// 0.77: https://github.com/facebook/react-native/releases/tag/v0.77.0
|
||||
// 0.76: https://github.com/react/react-native/releases/tag/v0.76.0
|
||||
// 0.77: https://github.com/react/react-native/releases/tag/v0.77.0
|
||||
return '';
|
||||
}
|
||||
const changelog = String(fs.readFileSync('CHANGELOG.md', 'utf8')).split('\n');
|
||||
@@ -73,11 +73,11 @@ To help you upgrade to this version, you can use the [Upgrade Helper](https://re
|
||||
|
||||
---
|
||||
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/react-native/blob/main/CHANGELOG.md).`;
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/react/react-native/blob/main/CHANGELOG.md).`;
|
||||
}
|
||||
|
||||
async function _verifyTagExists(version) {
|
||||
const url = `https://github.com/facebook/react-native/releases/tag/v${version}`;
|
||||
const url = `https://github.com/react/react-native/releases/tag/v${version}`;
|
||||
|
||||
const response = await fetch(url);
|
||||
if (response.status === 404) {
|
||||
@@ -86,7 +86,7 @@ async function _verifyTagExists(version) {
|
||||
}
|
||||
|
||||
async function _createDraftReleaseOnGitHub(version, body, latest, token) {
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const method = 'POST';
|
||||
const headers = _headers(token);
|
||||
const fetchBody = JSON.stringify({
|
||||
|
||||
@@ -59,7 +59,7 @@ function _pushCommit(version) {
|
||||
|
||||
async function _createPR(version, token) {
|
||||
log('Creating changelog pr');
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/pulls';
|
||||
const url = 'https://api.github.com/repos/react/react-native/pulls';
|
||||
const body = `
|
||||
## Summary
|
||||
Add Changelog for ${version}
|
||||
|
||||
Reference in new issue
Block a user