diff --git a/docs/src/components/ChallengeFooter.astro b/docs/src/components/ChallengeFooter.astro index f11b636..3292bba 100644 --- a/docs/src/components/ChallengeFooter.astro +++ b/docs/src/components/ChallengeFooter.astro @@ -3,11 +3,11 @@ import VideoButton from './VideoButton.astro' import ClipboardCopy from './ClipboardCopy.astro' -const {author, challengeNumber, title, blogLink, videoLink, command} = Astro.props.entry.data; +const {author, challenge, title, blogLink, videoLink, command} = Astro.props.entry.data; -const authorLink = `https://github.com/tomalaforge/angular-challenges/pulls?q=label%3A${challengeNumber}+label%3A"answer+author"`; +const authorLink = `https://github.com/tomalaforge/angular-challenges/pulls?q=label%3A${challenge?.number}+label%3A"answer+author"`; const authorDescription = `${title} solution author`; -const communityLink = `https://github.com/tomalaforge/angular-challenges/pulls?q=label%3A${challengeNumber}+label%3Aanswer`; +const communityLink = `https://github.com/tomalaforge/angular-challenges/pulls?q=label%3A${challenge?.number}+label%3Aanswer`; const communityDescription = `${title} community solutions`; const npxCommand = `npx nx serve ${command}`; --- @@ -22,7 +22,7 @@ const npxCommand = `npx nx serve ${command}`; } +
Your PR title must start with Answer:{challenge?.number}.