Skip to content

Commit d3b1f22

Browse files
committed
added same workflow call as in material-ui
1 parent 2e38064 commit d3b1f22

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed
+5-26
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Add comment
1+
name: Add closing message to issue
22

33
on:
44
issues:
@@ -9,30 +9,9 @@ permissions: {}
99

1010
jobs:
1111
add-comment:
12-
env:
13-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14-
GH_REPO: ${{ github.repository }}
15-
NUMBER: ${{ github.event.issue.number }}
16-
BODY: |
17-
:warning: **This issue has been closed.** If you have a similar problem but not exactly the same, please open a [new issue](https://github.com/mui/mui-x/issues/new/choose).
18-
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
19-
APPENDIX: |
20-
21-
@${{ github.event.issue.user.login }}: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short [Support Satisfaction survey](https://tally.so/r/w4r5Mk?issue=${{ github.event.issue.number }}&productId=x).
22-
23-
if: github.event.issue.state_reason != 'inactivity'
24-
runs-on: ubuntu-latest
12+
name: Add closing message
13+
if: github.event.issue.state_reason == 'completed'
14+
uses: mui/mui-public/.github/workflows/issues_add-closing-message.yml@master
2515
permissions:
16+
contents: read
2617
issues: write
27-
steps:
28-
- uses: actions-cool/check-user-permission@956b2e73cdfe3bcb819bb7225e490cb3b18fd76e
29-
id: checkUser
30-
with:
31-
require: 'write'
32-
username: ${{ github.event.issue.user.login }}
33-
- name: Add comment for outside contributors
34-
if: steps.checkUser.outputs.check-result == false
35-
run: gh issue comment "$NUMBER" --body "$BODY $APPENDIX"
36-
- name: Add comment for maintainers
37-
if: steps.checkUser.outputs.check-result == true
38-
run: gh issue comment "$NUMBER" --body "$BODY"

0 commit comments

Comments
 (0)