Skip to content

Commit

Permalink
Bump version + change log for #153 (#154)
Browse files Browse the repository at this point in the history
* 1.1.51

* changelog

* build
  • Loading branch information
MishaKav authored Feb 13, 2024
1 parent 5dbfef7 commit a1fe18e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog of the Pytest Coverage Comment

## [Pytest Coverage Comment 1.1.51](https://github.com/MishaKav/pytest-coverage-comment/tree/v1.1.51)

**Release Date:** 2024-01-13

#### Changes

- add `workflow_run` to the events that can trigger this action, big thanks to [@Bouni](https://github.com/Bouni) for contribution

## [Pytest Coverage Comment 1.1.50](https://github.com/MishaKav/pytest-coverage-comment/tree/v1.1.50)

**Release Date:** 2023-11-26
Expand Down
15 changes: 11 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17928,7 +17928,10 @@ const main = async () => {
} else if (eventName === 'push') {
options.commit = payload.after;
options.head = context.ref;
} else if (eventName === 'workflow_dispatch' || eventName === 'workflow_run') {
} else if (
eventName === 'workflow_dispatch' ||
eventName === 'workflow_run'
) {
options.commit = context.sha;
options.head = context.ref;
}
Expand Down Expand Up @@ -17983,7 +17986,8 @@ const main = async () => {
if (
!options.hideReport &&
html.length + summaryReport.length > MAX_COMMENT_LENGTH &&
(eventName != 'workflow_dispatch' && eventName != 'workflow_run')
eventName != 'workflow_dispatch' &&
eventName != 'workflow_run'
) {
// generate new html without report
// prettier-ignore
Expand Down Expand Up @@ -18067,7 +18071,10 @@ const main = async () => {
WATERMARK,
);
}
} else if (eventName === 'workflow_dispatch' || eventName === 'workflow_run') {
} else if (
eventName === 'workflow_dispatch' ||
eventName === 'workflow_run'
) {
await core.summary.addRaw(body, true).write();
if (!issueNumberInput) {
// prettier-ignore
Expand Down Expand Up @@ -18166,7 +18173,7 @@ const getChangedFiles = async (options, pr_number) => {
if (response.status !== 200) {
core.setFailed(
`The GitHub API for comparing the base and head commits for this ${eventName} event returned ${response.status}, expected 200. ` +
"Please submit an issue on this action's GitHub repo.",
"Please submit an issue on this action's GitHub repo.",
);
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pytest-coverage-comment",
"version": "1.1.50",
"version": "1.1.51",
"description": "Comments a pull request with the pytest code coverage badge, full report and tests summary",
"author": "Misha Kav",
"license": "MIT",
Expand Down

0 comments on commit a1fe18e

Please sign in to comment.