Skip to content

Commit 543243c

Browse files
committed
testing
1 parent 4543e45 commit 543243c

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 12 additions & 0 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.

docs/integrations.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The Slack integration allows you to send test results directly to your Slack cha
5454
5555
The Slack integration is powered by the [Slack Test Reporter](https://github.com/ctrf-io/slack-test-reporter), see the latest documentation for more information.
5656
57-
#### Configuration Options
57+
Requires the `SLACK_WEBHOOK_URL` environment variable to be set.
5858

5959
```yaml
6060
- name: Publish Test Report
@@ -88,6 +88,8 @@ The Microsoft Teams integration allows you to send test results directly to your
8888

8989
The Microsoft Teams integration is powered by the [Microsoft Teams Test Reporter](https://github.com/ctrf-io/teams-test-reporter), see the documentation for more information.
9090

91+
Requires the `TEAMS_WEBHOOK_URL` environment variable to be set.
92+
9193
```yaml
9294
- name: Publish Test Report
9395
uses: ctrf-io/github-test-reporter@v1
@@ -117,6 +119,8 @@ The AI integration provides intelligent analysis of your test results using adva
117119

118120
The AI integration is powered by the [AI Test Reporter](https://github.com/ctrf-io/ai-test-reporter), see the latestdocumentation for more information.
119121

122+
Requires the environment variable to be set for the AI provider you are using.
123+
120124
```yaml
121125
- name: Publish Test Report
122126
uses: ctrf-io/github-test-reporter@v1

src/ctrf/enrichers.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,20 @@ export function enrichCurrentReportWithRunDetails(
542542
extendedReport.results.environment.extra =
543543
extendedReport.results.environment.extra ?? {}
544544

545+
if (!extendedReport.results.environment.buildName) {
546+
extendedReport.results.environment.buildName = run.job
547+
}
548+
if (!extendedReport.results.environment.buildNumber) {
549+
extendedReport.results.environment.buildNumber = run.run_number.toString()
550+
}
551+
if (!extendedReport.results.environment.buildUrl) {
552+
extendedReport.results.environment.buildUrl = run.build_url
553+
}
554+
555+
extendedReport.results.environment.buildName = run.job
556+
extendedReport.results.environment.buildNumber = run.run_number.toString()
557+
extendedReport.results.environment.buildUrl = run.build_url
558+
545559
extendedReport.results.environment.extra.runId = run.run_id
546560
extendedReport.results.environment.extra.runNumber = run.run_number
547561
extendedReport.results.environment.extra.buildUrl = run.build_url

0 commit comments

Comments
 (0)