mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-04-30 02:05:47 +08:00
[scripts] Only add prod asset checklist to post-release upgrade PRs in web
This commit is contained in:
@@ -39,13 +39,10 @@ const polarisBotToken = secrets.github['shopify-polaris'];
|
||||
const shopifyPolarisBotGitOverride = `GIT_COMMITTER_NAME='${polarisBotName}' GIT_COMMITTER_EMAIL='${polarisBotEmail}'`;
|
||||
|
||||
function pullRequestTemplate(repository, version) {
|
||||
return `
|
||||
## Version ${version} of @shopify/polaris just got published!
|
||||
|
||||
See what’s new: https://github.com/Shopify/polaris-react/releases/tag/${version}
|
||||
|
||||
---
|
||||
let prodAssetChecklist = '';
|
||||
|
||||
if (repository === 'web') {
|
||||
prodAssetChecklist = `
|
||||
### How to [tophat](https://development.shopify.io/engineering/developing_at_Shopify/write-code/tophatting)
|
||||
|
||||
<!-- Tophatting instructions, and/ or what you want reviewers to concentrate on. -->
|
||||
@@ -56,11 +53,20 @@ See what’s new: https://github.com/Shopify/polaris-react/releases/tag/${versio
|
||||
|
||||
- [ ] This PR is [safe to rollback](https://development.shopify.io/guides/shipping/safe_to_merge#Signs_your_PR_is_safe_to_rollback). ⚠️ This field is required.
|
||||
|
||||
<!-- If it is not safe, please detail what would need to happen to make it safe. For example, if this PR removes a GraphQL field that will then be removed from the schema, link to the Shopify Core PR that removes the field. -->
|
||||
<!-- If it is not safe, please detail what would need to happen to make it safe. For example, if this PR removes a GraphQL field that will then be removed from the schema, link to the Shopify Core PR that removes the field. -->
|
||||
|
||||
- [ ] I [tophatted](https://development.shopify.io/engineering/developing_at_Shopify/write-code/tophatting) this change with production assets.
|
||||
|
||||
<!-- If you are having difficulties running the production build, please ask in #shopify-web. -->
|
||||
<!-- If you are having difficulties running the production build, please ask in #shopify-web. -->
|
||||
`;
|
||||
}
|
||||
|
||||
return `
|
||||
## Version ${version} of @shopify/polaris just got published!
|
||||
|
||||
See what’s new: https://github.com/Shopify/polaris-react/releases/tag/${version}
|
||||
|
||||
${prodAssetChecklist}
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user