Skip to content

Commit

Permalink
[docs-infra] Open demo crash in the right repository
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 16, 2023
1 parent de106f1 commit 29aad1d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/src/modules/components/DemoErrorBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Button from '@mui/material/Button';
* with node 8 + IE11 support i.e. not using URL (URLSearchParams.set replaced with Map.set)
*/
function newGitHubIssueUrl(options) {
const url = `https://github.com/${options.user}/${options.repo}/issues/new`;
const url = `${process.env.SOURCE_CODE_REPO}/issues/new`;

const query = Object.keys(options)
.map((type) => {
Expand Down Expand Up @@ -38,20 +38,18 @@ export default class DemoErrorBoundary extends React.Component {
const title = `[docs] Demo ${name} crashes`;
const searchQuery = encodeURIComponent(`is:issue ${title}`);
const issueLink = newGitHubIssueUrl({
user: 'mui',
repo: 'material-ui',
title,
body: `
<!-- Please make sure you have fulfilled the following items before submitting -->
<!-- Checked checkbox should look like this: [x] -->
- [ ] I have [searched for similar issues](https://github.com/mui/material-ui/issues?q=${searchQuery}) in this repository and believe that this is not a duplicate.
## Steps to Reproduce
## Steps to reproduce
1. Visit ${window.location.href}
2. ??
3. demo *${name}* crashes
## Your Environment
## Your environment
| Tech | Version |
|--------------|---------|
| MUI | v${process.env.LIB_VERSION} |
Expand Down

0 comments on commit 29aad1d

Please sign in to comment.