Skip to content

Commit dbeecaa

Browse files
committed
Merge branch 'main' into nested-text-superscript
2 parents 0bf75e7 + 26b2bb5 commit dbeecaa

File tree

112 files changed

+1718
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1718
-745
lines changed

.circleci/config.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,11 +1659,6 @@ workflows:
16591659
jsengine: "Hermes"
16601660
flipper: "WithFlipper"
16611661
use_frameworks: "DynamicFrameworks"
1662-
- architecture: "NewArch"
1663-
flavor: "Release"
1664-
jsengine: "Hermes"
1665-
flipper: "WithoutFlipper"
1666-
use_frameworks: "StaticFrameworks"
16671662
- architecture: "NewArch"
16681663
flavor: "Release"
16691664
jsengine: "Hermes"
@@ -1684,11 +1679,6 @@ workflows:
16841679
jsengine: "JSC"
16851680
flipper: "WithFlipper"
16861681
use_frameworks: "DynamicFrameworks"
1687-
- architecture: "NewArch"
1688-
flavor: "Release"
1689-
jsengine: "JSC"
1690-
flipper: "WithoutFlipper"
1691-
use_frameworks: "StaticFrameworks"
16921682
- architecture: "NewArch"
16931683
flavor: "Release"
16941684
jsengine: "JSC"
@@ -1729,21 +1719,11 @@ workflows:
17291719
jsengine: "Hermes"
17301720
flipper: "WithFlipper"
17311721
use_frameworks: "StaticFrameworks"
1732-
- architecture: "NewArch"
1733-
flavor: "Debug"
1734-
jsengine: "Hermes"
1735-
flipper: "WithoutFlipper"
1736-
use_frameworks: "StaticFrameworks"
17371722
- architecture: "NewArch"
17381723
flavor: "Debug"
17391724
jsengine: "JSC"
17401725
flipper: "WithFlipper"
17411726
use_frameworks: "StaticFrameworks"
1742-
- architecture: "NewArch"
1743-
flavor: "Debug"
1744-
jsengine: "JSC"
1745-
flipper: "WithoutFlipper"
1746-
use_frameworks: "StaticFrameworks"
17471727
- architecture: "OldArch"
17481728
flavor: "Debug"
17491729
jsengine: "Hermes"

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ body:
1616
- type: input
1717
id: version
1818
attributes:
19-
label: Version
20-
description: What react-native version does this appear on? Bear in mind that only issues on [supported versions](https://github.com/reactwg/react-native-releases#which-versions-are-currently-supported) will be looked into.
21-
placeholder: ex. 0.70.0
19+
label: React Native Version
20+
description: What is the latest version of react-native that this issue reproduces on? Please only list the highest version you tested. Bear in mind that only issues on [supported versions](https://github.com/reactwg/react-native-releases#which-versions-are-currently-supported) will be looked into.
21+
placeholder: ex. 0.71.0
2222
validations:
2323
required: true
2424
- type: textarea

.github/ISSUE_TEMPLATE/new_architecture_bug_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ body:
2121
- type: input
2222
id: version
2323
attributes:
24-
label: Version
25-
description: What react-native version does this appear on? Please test against the latest stable version. Bug reports against older versions are more likely to stall.
26-
placeholder: ex. 0.68.0
24+
label: React Native Version
25+
description: What is the latest version of react-native that this issue reproduces on? Please test against the latest stable version, and list only the highest version you tested. Bug reports against older versions are more likely to stall.
26+
placeholder: ex. 0.71.0
2727
validations:
2828
required: true
2929
- type: textarea

.github/workflows/actOnLabel.js

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @format
8+
*/
9+
10+
module.exports = async (github, context, label) => {
11+
const closeIssue = async () => {
12+
await github.rest.issues.update({
13+
issue_number: context.issue.number,
14+
owner: context.repo.owner,
15+
repo: context.repo.repo,
16+
state: 'closed',
17+
});
18+
};
19+
20+
const addComment = async comment => {
21+
await github.rest.issues.createComment({
22+
issue_number: context.issue.number,
23+
owner: context.repo.owner,
24+
repo: context.repo.repo,
25+
body: comment,
26+
});
27+
};
28+
29+
const requestAuthorFeedback = async () => {
30+
// Remove the triage label if it exists (ignore the 404 if not; it's not expected to always be there)
31+
try {
32+
await github.rest.issues.removeLabel({
33+
issue_number: context.issue.number,
34+
owner: context.repo.owner,
35+
repo: context.repo.repo,
36+
name: 'Needs: Triage :mag:',
37+
});
38+
} catch {}
39+
40+
await github.rest.issues.addLabels({
41+
issue_number: context.issue.number,
42+
owner: context.repo.owner,
43+
repo: context.repo.repo,
44+
labels: ['Needs: Author Feedback'],
45+
});
46+
};
47+
48+
switch (label) {
49+
case 'Type: Invalid':
50+
await addComment(
51+
`| :warning: | Issue is Invalid |\n` +
52+
`| --- | --- |\n` +
53+
`| :information_source: | This issue doesn't match any of the expected types for this repository - closing. |`,
54+
);
55+
await closeIssue();
56+
return;
57+
case 'Type: Question':
58+
await addComment(
59+
`| :warning: | Issue is a Question |\n` +
60+
`| --- | --- |\n` +
61+
`| :information_source: | We are using GitHub issues exclusively to track bugs in React Native. GitHub may not be the ideal place to ask a question, but you can try asking over on [Stack Overflow](http://stackoverflow.com/questions/tagged/react-native), or on [Reactiflux](https://www.reactiflux.com/). |`,
62+
);
63+
await closeIssue();
64+
return;
65+
case 'Type: Docs':
66+
await addComment(
67+
`| :warning: | Documentation Issue |\n` +
68+
`| --- | --- |\n` +
69+
`| :information_source: | Please report documentation issues in the [react-native-website](https://github.com/facebook/react-native-website/issues) repository. |`,
70+
);
71+
await closeIssue();
72+
return;
73+
case 'Resolution: For Stack Overflow':
74+
await addComment(
75+
`| :warning: | Issue is a Question |\n` +
76+
`| --- | --- |\n` +
77+
`| :information_source: | We are using GitHub issues exclusively to track bugs in the core React Native library. Please try asking over on [Stack Overflow](http://stackoverflow.com/questions/tagged/react-native) as it is better suited for this type of question. |`,
78+
);
79+
await closeIssue();
80+
return;
81+
case 'Type: Expo':
82+
await addComment(
83+
`| :warning: | Issue is Related to Expo |\n` +
84+
`| --- | --- |\n` +
85+
`| :information_source: | It looks like your issue is related to Expo and not React Native core. Please open your issue in [Expo's repository](https://github.com/expo/expo/issues/new). If you are able to create a repro that showcases that this issue is also happening in React Native vanilla, we will be happy to re-open. |`,
86+
);
87+
await closeIssue();
88+
return;
89+
case 'Needs: Issue Template':
90+
await addComment(
91+
`| :warning: | Missing Required Fields |\n` +
92+
`| --- | --- |\n` +
93+
`| :information_source: | 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?template=bug_report.md). 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. |`,
94+
);
95+
await requestAuthorFeedback();
96+
return;
97+
case 'Needs: Environment Info':
98+
await addComment(
99+
`| :warning: | Missing Environment Information |\n` +
100+
`| --- | --- |\n` +
101+
`| :information_source: | Your issue may be missing information about your development environment. You can obtain the missing information by running <code>react-native info</code> in a console. |`,
102+
);
103+
await requestAuthorFeedback();
104+
return;
105+
case 'Needs: Verify on Latest Version':
106+
await addComment(
107+
`| :warning: | Newer Version of React Native is Available! |\n` +
108+
`| --- | --- |\n` +
109+
`| :information_source: | You are on a supported minor version, but it looks like there's a newer patch available. Please [upgrade](https://reactnative.dev/docs/upgrading) to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |`,
110+
);
111+
return;
112+
case 'Needs: Version Info':
113+
await addComment(
114+
`| :warning: | Add or Reformat Version Info |\n` +
115+
`| --- | --- |\n` +
116+
`| :information_source: | We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2 |`,
117+
);
118+
await requestAuthorFeedback();
119+
return;
120+
case 'Needs: Repro':
121+
await addComment(
122+
`| :warning: | Missing Reproducible Example |\n` +
123+
`| --- | --- |\n` +
124+
`| :information_source: | It looks like your issue is missing a reproducible example. Please provide a [Snack](https://snack.expo.dev) or a repository that demonstrates the issue you are reporting in a [minimal, complete, and reproducible](https://stackoverflow.com/help/minimal-reproducible-example) manner. |`,
125+
);
126+
await requestAuthorFeedback();
127+
return;
128+
case 'Type: Unsupported Version':
129+
await addComment(
130+
`| :warning: | Unsupported Version of React Native |\n` +
131+
`| --- | --- |\n` +
132+
`| :information_source: | It looks like your issue or the example you provided uses an [unsupported version of React Native](https://github.com/reactwg/react-native-releases/blob/main/README.md#releases-support-policy). Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please [upgrade](https://reactnative.dev/docs/upgrading) to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on [StackOverflow](https://stackoverflow.com/questions/tagged/react-native) to get further community support. |`,
133+
);
134+
await requestAuthorFeedback();
135+
return;
136+
}
137+
};

0 commit comments

Comments
 (0)