Skip to content

Commit

Permalink
Merge branch 'master' into relative-to-git-root
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGiletich authored Mar 2, 2023
2 parents 4de526d + 3206c1b commit 0d9ddf9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v1.1.0 (Thu Mar 02 2023)

#### 🚀 Enhancement

- Allow to pass check name environment variable [#150](https://github.com/hipstersmoothie/jest-github-reporter/pull/150) ([@PaulGiletich](https://github.com/PaulGiletich))

#### Authors: 1

- [@PaulGiletich](https://github.com/PaulGiletich)

---

# v1.0.2 (Mon Feb 15 2021)

:tada: This release contains work from new contributors! :tada:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ Example:
GH_PREVIEWS=eye-scream-preview,machine-man-preview
```

### 5. (optional) Set `GH_CHECK_NAME`

If the default check name conflicts with something, you can override it by passing `GH_CHECK_NAME` environment variable.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-github-reporter",
"version": "1.0.2",
"version": "1.1.0",
"description": "Report tests failures from Jest in GitHub",
"main": "dist/index.js",
"repository": "hipstersmoothie/jest-github-reporter",
Expand Down
2 changes: 1 addition & 1 deletion src/create-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async function createAnnotations(results: TestResult[]) {
export default async (results: AggregatedResult) =>
createCheck({
tool: 'Jest',
name: 'Test',
name: process.env.GH_CHECK_NAME || 'Test',
annotations: await createAnnotations(results.testResults),
errorCount: results.numFailedTests,
appId: process.env.JEST_APP_ID ? Number(process.env.JEST_APP_ID) : APP_ID,
Expand Down

0 comments on commit 0d9ddf9

Please sign in to comment.