Skip to content

Commit d40789b

Browse files
committed
docs: update README to include GitHub token requirements for new reports
1 parent 7cdfdd7 commit d40789b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ Add the following to your workflow file:
288288

289289
## GitHub Token
290290

291-
`previous-results-report`, `flaky-rate-report` and `fail-rate-report` need a
291+
`previous-results-report`, `insights-report`, `flaky-rate-report`, `fail-rate-report`, and `slowest-report` need a
292292
GITHUB_TOKEN:
293293

294294
```yaml

dist/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github/core.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ export function generateViews(inputs: Inputs, report: CtrfReport): void {
6565
)
6666
}
6767

68+
if (inputs.insightsReport) {
69+
core.info('Adding insights report to summary')
70+
addViewToSummary('### Insights', BuiltInReports.InsightsTable, report)
71+
}
72+
6873
if (inputs.failedReport) {
6974
core.info('Adding failed tests report to summary')
7075
addViewToSummary('### Failed Tests', BuiltInReports.FailedTable, report)
@@ -107,11 +112,6 @@ export function generateViews(inputs: Inputs, report: CtrfReport): void {
107112
addViewToSummary('### Commits', BuiltInReports.CommitTable, report)
108113
}
109114

110-
if (inputs.insightsReport) {
111-
core.info('Adding insights report to summary')
112-
addViewToSummary('### Insights', BuiltInReports.InsightsTable, report)
113-
}
114-
115115
if (inputs.slowestReport) {
116116
core.info('Adding slowest tests report to summary')
117117
addViewToSummary('### Slowest Tests', BuiltInReports.SlowestTable, report)

0 commit comments

Comments
 (0)