Skip to content

Commit

Permalink
[core] Update no-response workflow (#137)
Browse files Browse the repository at this point in the history
Signed-off-by: Bilal Shafi <bilalshafidev@gmail.com>
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
  • Loading branch information
MBilalShafi and oliviertassinari authored Dec 22, 2023
1 parent 578166b commit ed2f728
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1.bug.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug report 🐛
description: Create a bug report for MUI Public.
labels: ['status: needs triage']
labels: ['status: waiting for maintainer']
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2.feature.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Feature request 💄
description: Suggest a new idea for MUI Core.
labels: ['status: needs triage']
labels: ['status: waiting for maintainer']
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/3.rfc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: RFC 💬
description: Request for comments for your proposal.
title: '[RFC] '
labels: ['status: needs triage', 'RFC']
labels: ['status: waiting for maintainer', 'RFC']
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ensure-triage-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['status: needs triage']
labels: ['status: waiting for maintainer']
})
}
2 changes: 1 addition & 1 deletion .github/workflows/mark-duplicate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
actions: 'mark-duplicate'
token: ${{ secrets.GITHUB_TOKEN }}
duplicate-labels: 'duplicate'
remove-labels: 'status: incomplete,status: needs triage'
remove-labels: 'status: incomplete,status: waiting for maintainer'
close-issue: true
10 changes: 7 additions & 3 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: No response

# Both `issue_comment` and `scheduled` event types are required for this Action
# `issues`.`closed`, `issue_comment`.`created`, and `scheduled` event types are required for this Action
# to work properly.
on:
issues:
types: [closed]
issue_comment:
types: [created]
schedule:
Expand All @@ -18,13 +20,15 @@ jobs:
contents: read
issues: write
steps:
- uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb # v0.5.0
- uses: MBilalShafi/no-response-add-label@629add01d7b6f8e120811f978c42703736098947 # v0.0.6
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 7
# Label requiring a response
responseRequiredLabel: 'status: needs more information'
responseRequiredLabel: 'status: waiting for author'
# Label to add back when the `responseRequiredLabel` is removed
optionalFollowupLabel: 'status: waiting for maintainer'
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed.
Expand Down
6 changes: 3 additions & 3 deletions tools-public/toolpad/pages/closedIssuesNoNeedtriage/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
url: https://api.github.com/repos/mui/material-ui/issues
searchParams:
- name: labels
value: 'status: needs triage'
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
Expand All @@ -72,7 +72,7 @@ spec:
url: https://api.github.com/repos/mui/mui-x/issues
searchParams:
- name: labels
value: 'status: needs triage'
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
Expand All @@ -85,7 +85,7 @@ spec:
url: https://api.github.com/repos/mui/mui-design-kits/issues
searchParams:
- name: labels
value: 'status: needs triage'
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
Expand Down
6 changes: 3 additions & 3 deletions tools-public/toolpad/pages/issueWithoutProductScope/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
url: https://api.github.com/repos/mui/material-ui/issues
searchParams:
- name: labels
value: 'status: needs triage'
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
Expand All @@ -87,7 +87,7 @@ spec:
url: https://api.github.com/repos/mui/mui-x/issues
searchParams:
- name: labels
value: 'status: needs triage'
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
Expand All @@ -100,7 +100,7 @@ spec:
url: https://api.github.com/repos/mui/mui-design-kits/issues
searchParams:
- name: labels
value: 'status: needs triage'
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
Expand Down
2 changes: 1 addition & 1 deletion tools-public/toolpad/pages/needtriageNotAssigned/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
searchParams:
- name: q
value: 'repo:mui/material-ui repo:mui/mui-x is:open is:issue label:"status:
needs triage" no:assignee'
waiting for maintainer" no:assignee'
headers:
- name: Bearer
value: abc
Expand Down

0 comments on commit ed2f728

Please sign in to comment.