Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
✋ To keep the backlog clean and actionable, issues will be
🚫 closed if they do not follow one of the issue templates:
👉 https://github.com/facebook/react-native/issues/new/choose
👉 https://github.com/react/react-native/issues/new/choose

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ body:
* If you're found a problem with our **documentation**, [report it here](https://github.com/facebook/react-native-website/issues/).
* If you're having an issue with **Metro** (the bundler), [report it here](https://github.com/facebook/metro/issues/).
* If you're using an external library, report the issue to the **library first**.
* Please [search for similar issues](https://github.com/facebook/react-native/issues) in our issue tracker.
* Please [search for similar issues](https://github.com/react/react-native/issues) in our issue tracker.

Make sure that your issue:
* Have a **valid reproducer** (See [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug)).
* Is tested against the [**latest stable**](https://github.com/facebook/react-native/releases/) of React Native.
* Is tested against the [**latest stable**](https://github.com/react/react-native/releases/) of React Native.

🚨 IMPORTANT: Due to the extreme number of bugs we receive, issues **without a reproducer** or for an [**unsupported versions**](https://github.com/reactwg/react-native-releases#which-versions-are-currently-supported) of React Native **will be closed**.
- type: textarea
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/debugger_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ body:
* If you've found a problem with our **documentation**, [report it here](https://github.com/facebook/react-native-website/issues/).
* If you're having an issue with **Metro** (the bundler), [report it here](https://github.com/facebook/metro/issues/).
* If you're using an external library, report the issue to the **library first**.
* Please [search for similar issues](https://github.com/facebook/react-native/issues) in our issue tracker.
* Please [search for similar issues](https://github.com/react/react-native/issues) in our issue tracker.
Make sure that your issue is tested against the [**latest stable**](https://github.com/facebook/react-native/releases/) of React Native.
Make sure that your issue is tested against the [**latest stable**](https://github.com/react/react-native/releases/) of React Native.
- type: textarea
id: description
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/new_architecture_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ body:
Thank you for taking the time to report an issue for [the New Architecture of React Native](https://reactnative.dev/docs/the-new-architecture/landing-page),
your contribution will help make the framework better for everyone.

If you're **NOT** using the New Architecture, please use this [other bug type](https://github.com/facebook/react-native/issues/new?template=bug_report.yml).
If you're **NOT** using the New Architecture, please use this [other bug type](https://github.com/react/react-native/issues/new?template=bug_report.yml).
Do not attempt to open a bug in this category if you're not using the New Architecture as your bug will be closed.

Make sure that your issue:
* Have a **valid reproducer** (See [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug)).
* Is tested against the [**latest stable**](https://github.com/facebook/react-native/releases/) of React Native.
* Is tested against the [**latest stable**](https://github.com/react/react-native/releases/) of React Native.

🚨 IMPORTANT: Due to the extreme number of bugs we receive, issues **without a reproducer** or for an [**unsupported versions**](https://github.com/reactwg/react-native-releases#which-versions-are-currently-supported) of React Native **will be closed**.
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/RELEASE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ To help you upgrade to this version, you can use the [upgrade helper](https://re

---

See changes from this release in the [changelog PR](https://github.com/facebook/react-native/labels/%F0%9F%93%9D%20Changelog)
See changes from this release in the [changelog PR](https://github.com/react/react-native/labels/%F0%9F%93%9D%20Changelog)
2 changes: 1 addition & 1 deletion .github/SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The React Native website is hosted on a [separate repository](https://github.com

## 🐛 I found a bug in React Native.

If you want to report a reproducible bug or regression in the React Native library, you can [create a new issue](https://github.com/facebook/react-native/issues/new?labels=Type%3A+Bug+Report&template=bug_report.md). It's a good idea to look through [open issues](https://github.com/facebook/react-native/issues) before doing so, as someone else may have reported a similar issue.
If you want to report a reproducible bug or regression in the React Native library, you can [create a new issue](https://github.com/react/react-native/issues/new?labels=Type%3A+Bug+Report&template=bug_report.md). It's a good idea to look through [open issues](https://github.com/react/react-native/issues) before doing so, as someone else may have reported a similar issue.


## 🚀 I want to discuss the future of React Native.
Expand Down
88 changes: 43 additions & 45 deletions .github/workflow-scripts/__tests__/createDraftRelease-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
});
});
Expand All @@ -49,64 +49,64 @@ 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;
});
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 () => {
Expand All @@ -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}
Expand Down Expand Up @@ -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 () => {
Expand All @@ -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,
Expand Down Expand Up @@ -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',
Expand All @@ -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',
}),
}),
);
Expand All @@ -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,
Expand All @@ -274,14 +274,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',
html_url: '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',
Expand All @@ -306,7 +305,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',
}),
}),
);
Expand All @@ -318,7 +317,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,
Expand All @@ -327,14 +326,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',
html_url: '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',
Expand Down Expand Up @@ -362,7 +360,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,
Expand Down
7 changes: 3 additions & 4 deletions .github/workflow-scripts/__tests__/generateChangelog-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -202,8 +202,7 @@ N/A`;
it('Returns the pr url', async () => {
const currentVersion = '0.79.0-rc5';
const token = 'token';
const expectedPrURL =
'https://github.com/facebook/react-native/pulls/1234';
const expectedPrURL = 'https://github.com/react/react-native/pulls/1234';

const returnedObject = {
status: 201,
Expand Down Expand Up @@ -238,7 +237,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,
Expand Down
Loading
Loading