From f9c2157141b8fcddcb2d2c576c952f2ce7daedda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Fri, 3 Apr 2020 10:46:38 -0700 Subject: [PATCH] Add Author Feedback label automatically (#28484) Summary: Improve issue triage by automatically adding the "Needs: Author Feedback" label. NOTE: The old label-actions app should be disabled when this PR is merged: https://github.com/apps/label-actions/installations/7445225 ## Changelog [Internal] - Issue Triage Pull Request resolved: https://github.com/facebook/react-native/pull/28484 Test Plan: Verified the same `label-actions.yml` and workflow config on a private repo. Reviewed By: cpojer Differential Revision: D20817443 Pulled By: hramos fbshipit-source-id: 39732dd67509c9fb9cf6ff7306913f5ec088266d --- .github/label-actions.yml | 97 +++++++++++---------- .github/workflows/process-label-actions.yml | 16 ++++ 2 files changed, 67 insertions(+), 46 deletions(-) create mode 100644 .github/workflows/process-label-actions.yml diff --git a/.github/label-actions.yml b/.github/label-actions.yml index ee828d9e7e7b8b..e0636f4c614438 100644 --- a/.github/label-actions.yml +++ b/.github/label-actions.yml @@ -1,47 +1,52 @@ -# Configuration for Label Actions - https://github.com/dessant/label-actions +# Configuration for Label Actions - https://github.com/marketplace/actions/label-actions -# Configuration settings just for issues -issues: - actions: - "Type: Invalid": - close: true - "Type: Question": - comment: > - 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/). - close: true - "Type: Docs": - comment: > - Please report documentation issues in the [`react-native-website`](https://github.com/facebook/react-native-website/issues) repository. - close: true - "Resolution: For Stack Overflow": - comment: > - 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. - close: true - "Needs: Issue Template": - comment: > -
:warning: - Missing Required Fields -
:information_source: - It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a new issue is created. 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. -
- "Needs: Environment Info": - comment: > -
:warning: - Missing Environment Information -
:information_source: - Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console. -
- "Needs: Verify on Latest Version": - comment: > -
:warning: - Using Old Version -
:information_source: - It looks like you are using an older version of React Native. Please upgrade 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. -
- "Needs: Repro": - comment: > -
:warning: - Missing Reproducible Example -
:information_source: - It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner. -
+"Type: Invalid": + close: true +"Type: Question": + comment: > + 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/). + close: true +"Type: Docs": + comment: > + Please report documentation issues in the [`react-native-website`](https://github.com/facebook/react-native-website/issues) repository. + close: true +"Resolution: For Stack Overflow": + comment: > + 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. + close: true +"Needs: Issue Template": + comment: > +
:warning: + Missing Required Fields +
:information_source: + It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a new issue is created. 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. +
+ labels: + - "Needs: Author Feedback" +"Needs: Environment Info": + comment: > +
:warning: + Missing Environment Information +
:information_source: + Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console. +
+ labels: + - "Needs: Author Feedback" +"Needs: Verify on Latest Version": + comment: > +
:warning: + Using Old Version +
:information_source: + It looks like you are using an older version of React Native. Please upgrade 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. +
+ labels: + - "Needs: Author Feedback" +"Needs: Repro": + comment: > +
:warning: + Missing Reproducible Example +
:information_source: + It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner. +
+ labels: + - "Needs: Author Feedback" diff --git a/.github/workflows/process-label-actions.yml b/.github/workflows/process-label-actions.yml new file mode 100644 index 00000000000000..2c63100f6e8392 --- /dev/null +++ b/.github/workflows/process-label-actions.yml @@ -0,0 +1,16 @@ +name: Label Actions +# This workflow is triggered when a label is added to an issue. +on: + issues: + types: labeled + +jobs: + processLabelAction: + name: Process Label Action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Process Label Action + uses: hramos/label-actions@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}