Skip to content

Commit d77626a

Browse files
authored
rename (#173)
* rename * rename image
1 parent 2ee9e8c commit d77626a

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get Cover: The Esential Coverage Reporter GitHub Action
1+
# Python Coverage: The Esential Coverage Reporter GitHub Action for python
22

33
> ☂️ parse and publish coverage xml to a PR, enforce coverage rate on new & modified files
44
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Get Cover
26-
uses: orgoro/coverage@v2
26+
uses: orgoro/coverage@v3
2727
with:
2828
coverageFile: path/to/coverage.xml
2929
token: ${{ secrets.GITHUB_TOKEN }}
@@ -34,10 +34,10 @@ jobs:
3434
3535
## Inputs
3636
37-
| Input | Optional | Description | Example |
38-
|---------------------|----------|--------------------------------------------------|------------------------|
39-
| `coverageFile` | | path to python .xml coverage report | ./path/to/coverage.xml |
40-
| `token` | | your github token | 🤫 |
37+
| Input | Optional | Description | Example |
38+
|---------------------|-----------|--------------------------------------------------|------------------------|
39+
| `coverageFile` | | path to .xml coverage report | ./path/to/coverage.xml |
40+
| `token` | | your github token | 🤫 |
4141
| `thresholdAll` | ✅ | the minimal average line coverage | 0.8 |
4242
| `thresholdNew` | ✅ | the minimal average new files line coverage | 0.9 |
4343
| `thresholdModified` | ✅ | the minimal average modified files line coverage | 0.0 |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Get Cover'
1+
name: 'Python Coverage'
22
description: 'Publish coverage report to a PR & enforce coverage on new & modified files'
33
author: 'orgoro'
44
inputs:

dist/index.js

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

images/pr-message.png

-3.25 KB
Loading

src/scorePr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {formatAverageTable, formatFilesTable, toPercent} from './format'
55
import {context} from '@actions/github'
66
import {octokit} from './client'
77

8-
const TITLE = `# ☂️ Get Cover`
8+
const TITLE = `# ☂️ Python Coverage`
99

1010
export async function publishMessage(pr: number, message: string): Promise<void> {
1111
const body = TITLE.concat(message)
@@ -66,8 +66,8 @@ export function scorePr(filesCover: FilesCoverage): boolean {
6666
core.info('No covered modified files in this PR ')
6767
}
6868
const sha = context.payload.pull_request?.head.sha.slice(0, 7)
69-
const action = '[action](https://github.com/marketplace/actions/get-cover)'
70-
message = message.concat(`\n\n\n> **updated for commit: \`${sha}\` by ${action}🛡**`)
69+
const action = '[action](https://github.com/marketplace/actions/python-coverage)'
70+
message = message.concat(`\n\n\n> **updated for commit: \`${sha}\` by ${action}🐍**`)
7171
message = `\n> current status: ${passOverall ? '✅' : '❌'}`.concat(message)
7272
publishMessage(context.issue.number, message)
7373
core.endGroup()

0 commit comments

Comments
 (0)