-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
31 lines (29 loc) · 1.37 KB
/
closed-issue-message.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Add comment
on:
issues:
types:
- closed
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: |
:warning: **This issue has been closed.**
If you have a similar problem, please open a [new issue](https://github.com/mui/mui-x/issues/new/choose) and provide details about your specific problem.
If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.
APPENDIX: |
**How did we do @${{ github.event.issue.user.login }}?**
Your experience with our support team matters to us. If you have a moment, please share your thoughts through our [brief survey](https://tally.so/r/w4r5Mk?issue=${{ github.event.issue.number }}).
jobs:
add-comment:
if: github.event.issue.state_reason != 'inactivity'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment for outside contributors
if: github.event.issue.author_association != 'MEMBER' && github.event.issue.author_association != 'OWNER'
run: gh issue comment "$NUMBER" --body "$BODY $APPENDIX"
- name: Add comment for maintainers
if: github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'OWNER'
run: gh issue comment "$NUMBER" --body "$BODY"