chore: update bot messages (#4517)
This commit is contained in:
35
.github/scripts/validate.js
vendored
35
.github/scripts/validate.js
vendored
@@ -30,23 +30,33 @@ const BOT_LABELS = [
|
|||||||
|
|
||||||
const SKIP_LABEL = 'No Validation';
|
const SKIP_LABEL = 'No Validation';
|
||||||
|
|
||||||
|
const ISSUE_BOOST_INFO = `
|
||||||
|
Need faster resolution? Consider [Issue Boost](https://www.thewidlarzgroup.com/issue-boost/?utm_source=rnv&utm_medium=bug-report&utm_campaign=bot&utm_id=bot-message) – it allows us to dedicate time specifically to your issue and fix it faster 🚀`;
|
||||||
|
|
||||||
const MESSAGE = {
|
const MESSAGE = {
|
||||||
FEATURE_REQUEST: `Thanks for the feature request! Check out our roadmap [here](https://github.com/TheWidlarzGroup/react-native-video/discussions/3351). If your request is already there – great! If not, give us some time, and we'll get back to you with information on when TheWidlarzGroup can address it as part of our free open-source support. Alternatively, [contact us](https://www.thewidlarzgroup.com/?utm_source=rnv&utm_medium=feature-request&utm_campaign=bot&utm_id=bot-message#Contact) to discuss ways to speed up the process.`,
|
FEATURE_REQUEST: `Thanks for the feature request! 🚀
|
||||||
BUG_REPORT: `Thank you for your bug report. We will review it and get back to you if we need more information.`,
|
\nYou can check out our [public roadmap](https://github.com/orgs/TheWidlarzGroup/projects/6) to see what we're currently working on. All requests are automatically added there, so you can track progress anytime.
|
||||||
|
\nWe review and implement new features when time allows, but this can take a while. If you’d like to speed things up and make this a priority, consider [Issue Boost](https://www.thewidlarzgroup.com/issue-boost/?utm_source=rnv&utm_medium=feature-request&utm_campaign=bot&utm_id=bot-message), our commercial option that lets us dedicate time specifically to your request.
|
||||||
|
\nThanks for your input and patience! 🙌`,
|
||||||
|
BUG_REPORT: `Hey! 👋
|
||||||
|
Thanks for reporting this issue. We try to fix bugs as quickly as possible, but since our time is limited, we prioritize sponsored issues first, then focus on critical problems affecting many users, and finally, we handle other reports when we can. Some issues might take a while to be resolved.
|
||||||
|
\nIf you want to speed up this process, check out [Issue Boost](https://www.thewidlarzgroup.com/issue-boost/?utm_source=rnv&utm_medium=bug-report&utm_campaign=bot&utm_id=bot-message-valid) – it allows us to dedicate time specifically to your issue and fix it faster.
|
||||||
|
\nThanks for your patience and support! 🚀`,
|
||||||
MISSING_INFO: (missingFields) => {
|
MISSING_INFO: (missingFields) => {
|
||||||
return `Thank you for your issue report. Please note that the following information is missing or incomplete:\n\n${missingFields
|
return `Hey! 👋
|
||||||
|
Thanks for the bug report. To help us resolve your issue effectively, we still need some key information:\n\n${missingFields
|
||||||
.map((field) => `- ${field.replace('missing-', '')}`)
|
.map((field) => `- ${field.replace('missing-', '')}`)
|
||||||
.join(
|
.join('\n')}
|
||||||
'\n',
|
|
||||||
)}\n\nPlease update your issue with this information to help us address it more effectively.
|
Please edit your issue and fill in the missing details.
|
||||||
\n > Note: issues without complete information have a lower priority`;
|
> Issues with incomplete info are treated with lower priority, so this helps speed things up.`;
|
||||||
},
|
},
|
||||||
OUTDATED_VERSION: (issueVersion, latestVersion) => {
|
OUTDATED_VERSION: (issueVersion, latestVersion) => {
|
||||||
return (
|
return (
|
||||||
`There is a newer version of the library available. ` +
|
`Heads up! ⚠️ You're using version **${issueVersion}**, but the latest stable version is **${latestVersion}**. ` +
|
||||||
`You are using version ${issueVersion}, while the latest stable version is ${latestVersion}. ` +
|
`Please update to the newest version and check if the issue still occurs.\n\n` +
|
||||||
`Please update to the latest version and check if the issue still exists.` +
|
`> Keeping your dependencies up-to-date often resolves many common problems.` +
|
||||||
`\n > Note: If the issue still exists, please update the issue report with the latest information.`
|
`\n\nStill having the issue after upgrading? Update the report with the new version details so we can investigate.`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -179,6 +189,7 @@ const handleFeatureRequest = async ({github, context, body, labels}) => {
|
|||||||
validateFeatureRequest(body, labels);
|
validateFeatureRequest(body, labels);
|
||||||
|
|
||||||
const comment = MESSAGE.FEATURE_REQUEST;
|
const comment = MESSAGE.FEATURE_REQUEST;
|
||||||
|
await hidePreviousComments({github, context});
|
||||||
await createComment({github, context, body: comment});
|
await createComment({github, context, body: comment});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -212,6 +223,8 @@ const handleMissingInformation = async ({github, context, labels}) => {
|
|||||||
)}`;
|
)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comment += `\n\n${ISSUE_BOOST_INFO}`;
|
||||||
|
|
||||||
await hidePreviousComments({github, context});
|
await hidePreviousComments({github, context});
|
||||||
await createComment({github, context, body: comment});
|
await createComment({github, context, body: comment});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user