Skip to content

Commit 7dff0f4

Browse files
hramosfacebook-github-bot
authored andcommitted
Enable label-actions on the react-native repository (#28374)
Summary: Enhance our issue management workflow by having the bot respond automatically whenever a label is applied to the issue. ## Changelog [Internal] - CI Pull Request resolved: #28374 Test Plan: Not tested. If needed, could be applied to a different, test repository. Reviewed By: cpojer Differential Revision: D20606887 Pulled By: hramos fbshipit-source-id: 874d1464527ea76bf51394a7d3e98e4fd8f69345
1 parent 44f213b commit 7dff0f4

File tree

2 files changed

+50
-18
lines changed

2 files changed

+50
-18
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,25 @@ labels: 'Needs: Triage :mag:'
66

77
---
88

9-
Description:
9+
Please provide all the information requested. Issues that do not follow this format are likely to stall.
1010

11-
Please provide a clear and concise description of what the bug is. Include screenshots if needed.
12-
Please test using the latest React Native release to make sure your issue has not already been fixed: https://reactnative.dev/docs/upgrading.html
13-
14-
15-
React Native version:
16-
17-
Run `react-native info` in your terminal and copy the results here.
11+
## Description
12+
Please provide a clear and concise description of what the bug is. Include screenshots if needed.
13+
Please test using the latest React Native release to make sure your issue has not already been fixed: https://reactnative.dev/docs/upgrading.html
1814

15+
## React Native version:
16+
Run `react-native info` in your terminal and copy the results here.
1917

2018
## Steps To Reproduce
21-
22-
Provide a detailed list of steps that reproduce the issue.
23-
Issues without reproduction steps or code are likely to stall.
19+
Provide a detailed list of steps that reproduce the issue.
2420

2521
1.
2622
2.
2723

28-
2924
## Expected Results
30-
31-
Describe what you expected to happen.
25+
Describe what you expected to happen.
3226

3327
## Snack, code example, screenshot, or link to a repository:
34-
35-
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
36-
You may provide a screenshot of the application if you think it is relevant to your bug report.
37-
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
28+
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
29+
You may provide a screenshot of the application if you think it is relevant to your bug report.
30+
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

.github/label-actions.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Configuration for Label Actions - https://github.com/dessant/label-actions
2+
3+
# Configuration settings just for issues
4+
issues:
5+
actions:
6+
"Type: Invalid":
7+
close: true
8+
"Type: Question":
9+
comment: >
10+
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/).
11+
close: true
12+
"Type: Docs":
13+
comment: >
14+
Please report documentation issues in the [`react-native-website`](https://github.com/facebook/react-native-website/issues) repository.
15+
close: true
16+
"Resolution: For Stack Overflow":
17+
comment: >
18+
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.
19+
close: true
20+
"Needs: Issue Template":
21+
comment: >
22+
<table><tbody><tr><th width="50">⚠️</th><th width="100%">
23+
Missing Required Fields
24+
</th></tr><tr><td>ℹ️</td><td>
25+
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.
26+
</td></tr></tbody></table>
27+
comment: >
28+
<table><tbody><tr><th width="50">⚠️</th><th width="100%">
29+
Missing Environment Information
30+
</th></tr><tr><td>ℹ️</td><td>
31+
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.
32+
</td></tr></tbody></table>
33+
"Needs: Verify on Latest Version":
34+
comment: >
35+
<table><tbody><tr><th width="50">⚠️</th><th width="100%">
36+
Using Old Version
37+
</th></tr><tr><td>ℹ️</td><td>
38+
It looks like you are using an older version of React Native. Please [upgrade](https://reactnative.dev/docs/upgrading) to the latest version, and verify if the issue persists. If it does not, 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 current release.
39+
</td></tr></tbody></table>

0 commit comments

Comments
 (0)