Skip to content

Commit eba92d8

Browse files
ci: ensure repo labels matches FlutterFire + label automation (#7970)
1 parent 3ac3e96 commit eba92d8

File tree

6 files changed

+55
-7
lines changed

6 files changed

+55
-7
lines changed

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "⚠️ Bug/Issue report - React Native"
33
about: Please provide as much detail as possible. Issues may be closed if they do
44
not follow the template.
55
title: "[\U0001F41B] Bug Report Title - CHANGE ME "
6-
labels: 'Help: Needs Triage, Impact: Bug'
6+
labels: 'Help: Needs Triage, Needs Attention, type: bug'
77
assignees: ''
88

99
---

.github/ISSUE_TEMPLATE/Documentation_issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "\U0001F4D6 Documentation Feedback"
33
about: Report an issue with the documentation or suggest an improvement.
44
title: "[\U0001F4DA] Documentation Issue Title - CHANGE ME "
5-
labels: 'Help: Good First Issue, Type: Docs'
5+
labels: 'Help: Good First Issue, type: documentation'
66
assignees: ''
77

88
---
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: "🚀Feature Request"
3+
about: Make a feature request for React Native Firebase.
4+
title: "\U0001F41B [PACKAGE_NAME_HERE] Your feature request title here"
5+
labels: 'Needs Attention, type: enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
## What feature would you like to see?
11+
12+
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?

.github/ISSUE_TEMPLATE/Other_platforms_bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: '⚠️ Other Platforms - Bug/Issue report'
22
title: "[\U0001F41B] Other Platforms Bug Report Title - CHANGE ME "
33
labels:
44
- 'Help: Needs Triage'
5-
- 'Impact: Bug'
6-
- 'Platform: Other'
5+
- 'type: bug'
6+
- 'platform: macOS (Other)'
77
description: Create an issue specific to 'Other' platforms on React Native Firebase (not Android or iOS).
88
body:
99
- type: checkboxes
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Update labels on issues with OP response
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
label-op-response:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check if the comment is from the OP
12+
id: check-op
13+
run: |
14+
OP=${{ github.event.issue.user.login }}
15+
COMMENTER=${{ github.event.comment.user.login }}
16+
17+
if [ "$OP" = "$COMMENTER" ]; then
18+
echo "op_comment=true" >> $GITHUB_ENV
19+
else
20+
echo "op_comment=false" >> $GITHUB_ENV
21+
fi
22+
23+
- name: Add 'Needs Attention' label if OP responded
24+
if: env.op_comment == 'true'
25+
uses: actions-ecosystem/action-add-labels@v1
26+
with:
27+
labels: 'Needs Attention'
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
30+
- name: Remove 'blocked customer-response' label if OP responded
31+
if: env.op_comment == 'true'
32+
uses: actions-ecosystem/action-remove-labels@v1
33+
with:
34+
labels: 'blocked: customer-response'
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/stale.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!
3131
3232
You have 15 days until this gets closed automatically
33-
exempt-issue-labels: 'Keep Open,help: good-first-issue,Workflow: Needs Review'
34-
exempt-pr-labels: 'Keep Open,help: good-first-issue,Workflow: Needs Review'
33+
exempt-issue-labels: 'Keep Open,Help: Good First Issue,Workflow: Needs Review'
34+
exempt-pr-labels: 'Keep Open,Help: Good First Issue,Workflow: Needs Review'
3535
close-issue-reason: not_planned
3636
days-before-stale: 28
3737
days-before-close: 15
38-
stale-issue-label: 'Type: Stale'
38+
stale-issue-label: 'Stale'

0 commit comments

Comments
 (0)