diff --git a/src/components/CIAnalytics.tsx b/src/components/CIAnalytics.tsx index 80894dcf2..5eff43d64 100644 --- a/src/components/CIAnalytics.tsx +++ b/src/components/CIAnalytics.tsx @@ -103,6 +103,8 @@ export default function CIAnalytics() { : "Rate limited" : "Refresh"; + const hasNoCIData = !!data && data.totalRuns === 0; + return (
+ Set up GitHub Actions to see workflow and build analytics here. +
+ + + Learn GitHub Actions + +Flakiest workflow diff --git a/src/components/DiscussionsWidget.tsx b/src/components/DiscussionsWidget.tsx index daf2905ed..ba8be0d61 100644 --- a/src/components/DiscussionsWidget.tsx +++ b/src/components/DiscussionsWidget.tsx @@ -52,6 +52,12 @@ export default function DiscussionsWidget() { ] : []; + const hasNoDiscussionData = + !!data && + data.discussionsStarted === 0 && + data.commentsGiven === 0 && + data.markedAsAnswer === 0; + return (
+ Participate in GitHub Discussions to see your activity metrics here. +
+ + + Explore Discussions + +No commits in the last {days} days.
++ Push your first commit on GitHub to get started and see repository activity here. +
+ + + Create Repository + +