Skip to content

Commit

Permalink
ci: ensure repo labels matches FlutterFire + label automation (#7970)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley authored Aug 13, 2024
1 parent 3ac3e96 commit eba92d8
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "⚠️ Bug/Issue report - React Native"
about: Please provide as much detail as possible. Issues may be closed if they do
not follow the template.
title: "[\U0001F41B] Bug Report Title - CHANGE ME "
labels: 'Help: Needs Triage, Impact: Bug'
labels: 'Help: Needs Triage, Needs Attention, type: bug'
assignees: ''

---
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Documentation_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: "\U0001F4D6 Documentation Feedback"
about: Report an issue with the documentation or suggest an improvement.
title: "[\U0001F4DA] Documentation Issue Title - CHANGE ME "
labels: 'Help: Good First Issue, Type: Docs'
labels: 'Help: Good First Issue, type: documentation'
assignees: ''

---
Expand Down
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "🚀Feature Request"
about: Make a feature request for React Native Firebase.
title: "\U0001F41B [PACKAGE_NAME_HERE] Your feature request title here"
labels: 'Needs Attention, type: enhancement'
assignees: ''

---

## What feature would you like to see?

Is there a missing a feature that is supported on an underlying SDK? Or is there a feature that you think would be useful to have in React Native Firebase?
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/Other_platforms_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: '⚠️ Other Platforms - Bug/Issue report'
title: "[\U0001F41B] Other Platforms Bug Report Title - CHANGE ME "
labels:
- 'Help: Needs Triage'
- 'Impact: Bug'
- 'Platform: Other'
- 'type: bug'
- 'platform: macOS (Other)'
description: Create an issue specific to 'Other' platforms on React Native Firebase (not Android or iOS).
body:
- type: checkboxes
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/issue-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update labels on issues with OP response

on:
issue_comment:
types: [created]

jobs:
label-op-response:
runs-on: ubuntu-latest
steps:
- name: Check if the comment is from the OP
id: check-op
run: |
OP=${{ github.event.issue.user.login }}
COMMENTER=${{ github.event.comment.user.login }}
if [ "$OP" = "$COMMENTER" ]; then
echo "op_comment=true" >> $GITHUB_ENV
else
echo "op_comment=false" >> $GITHUB_ENV
fi
- name: Add 'Needs Attention' label if OP responded
if: env.op_comment == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: 'Needs Attention'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Remove 'blocked customer-response' label if OP responded
if: env.op_comment == 'true'
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: 'blocked: customer-response'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!
You have 15 days until this gets closed automatically
exempt-issue-labels: 'Keep Open,help: good-first-issue,Workflow: Needs Review'
exempt-pr-labels: 'Keep Open,help: good-first-issue,Workflow: Needs Review'
exempt-issue-labels: 'Keep Open,Help: Good First Issue,Workflow: Needs Review'
exempt-pr-labels: 'Keep Open,Help: Good First Issue,Workflow: Needs Review'
close-issue-reason: not_planned
days-before-stale: 28
days-before-close: 15
stale-issue-label: 'Type: Stale'
stale-issue-label: 'Stale'

0 comments on commit eba92d8

Please sign in to comment.