forked from mui/mui-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[code-infra] auto-message on closed issues (mui#11805)
Signed-off-by: Michel Engelen <[email protected]> Co-authored-by: Lukas <[email protected]>
- Loading branch information
1 parent
b1b266d
commit bf65ef9
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters