Skip to content

Commit fc9e1e1

Browse files
[support-infra] Re-enable support satisfaction survey for all users (#911)
1 parent d9cf3df commit fc9e1e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/scripts/issues/addClosingMessage.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@ module.exports = async ({ core, context, github }) => {
4141

4242
core.info(`>>> Author permission level: ${userPermission.data.permission}`);
4343

44-
// checks if the issue was created by a customer with commercial support (pro, premium, or priority plan)
45-
const isPaidSupport = issue.data.labels.some((label) =>
46-
/\b(pro|premium|priority)\b/i.test(label.name),
47-
);
48-
4944
// Only ask for feedback if the user is not an admin or doesn't have write access (from a team membership)
50-
if (!['admin', 'write'].includes(userPermission.data.permission) && isPaidSupport) {
45+
if (!['admin', 'write'].includes(userPermission.data.permission)) {
5146
commentLines.push('\n---\n');
5247
commentLines.push(
5348
`@${issue.data.user.login} Thanks again for creating this issue! If you have a moment, we would love to hear your thoughts on how we handled it with this short [feedback form](https://tally.mui.com/support-satisfaction-survey?issue=${issueNumber}&productId=${repositoryMap[repo]}).`,

0 commit comments

Comments
 (0)