Skip to content

Commit 9a71d8b

Browse files
committed
Initial commit
0 parents  commit 9a71d8b

File tree

12 files changed

+195
-0
lines changed

12 files changed

+195
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* coverage-badge-py:
2+
3+
### Description
4+
5+
Describe what you were trying to get done.
6+
Tell us what happened, what went wrong, and what you expected to happen.
7+
8+
### What I Did
9+
10+
Add some details about your workflow ?

.github/workflows/rebase.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Automatic Rebase
2+
on:
3+
issue_comment:
4+
types: [created]
5+
jobs:
6+
rebase:
7+
name: Rebase
8+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
token: ${{ secrets.PAT_TOKEN }}
14+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
15+
- name: Automatic Rebase
16+
uses: cirrus-actions/rebase@1.4
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update release version.
2+
on:
3+
release:
4+
types: [published]
5+
6+
7+
jobs:
8+
update-version:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Sync release version
13+
uses: tj-actions/sync-release-version@v8
14+
id: sync-release-version
15+
with:
16+
pattern: 'tj-actions/coverage-badge-py@'
17+
paths: |
18+
README.md
19+
- name: Generate CHANGELOG
20+
uses: tj-actions/github-changelog-generator@v1.3
21+
with:
22+
output: 'HISTORY.md'
23+
- name: Create Pull Request
24+
uses: peter-evans/create-pull-request@v3
25+
with:
26+
base: "main"
27+
title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
28+
branch: "upgrade-to-${{ steps.sync-release-version.outputs.new_version }}"
29+
commit-message: "Upgraded from ${{ steps.sync-release-version.outputs.old_version }} -> ${{ steps.sync-release-version.outputs.new_version }}"
30+
body: "View [CHANGES](https://github.com/${{ github.repository }}/compare/${{ steps.sync-release-version.outputs.old_version }}...${{ steps.sync-release-version.outputs.new_version }})"
31+
token: ${{ secrets.PAT_TOKEN }}

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
name: Test coverage-badge-py
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: shellcheck
19+
uses: reviewdog/action-shellcheck@v1
20+
- name: Run coverage-badge-py
21+
uses: ./

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/
2+
.envrc

CONTRIBUTING.md

Whitespace-only changes.

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.9.2-alpine3.13
2+
3+
LABEL maintainer="Tonye Jack <jtonye@ymail.com>"
4+
5+
RUN apk add bash
6+
7+
RUN pip install -U coverage-badge
8+
9+
COPY entrypoint.sh /entrypoint.sh
10+
RUN chmod +x /entrypoint.sh
11+
ENTRYPOINT ["/entrypoint.sh"]

HISTORY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
History
2+
-------
3+
4+
v1 (2021-03-25)
5+
------------------
6+
7+
* Initial Release.

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2021, Tonye Jack
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
coverage-badge-py
2+
-----------------
3+
4+
Generate coverage.py badge
5+
6+
```yaml
7+
...
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Coverage Badge
11+
uses: tj-actions/coverage-badge-py@v1
12+
```
13+
14+
15+
## Inputs
16+
17+
| Input | type | required | default | description |
18+
|:-------------:|:-----------:|:-------------:|:----------------------------:|:-------------:|
19+
| token | `string` | `true` | `${{ github.token }}` | [GITHUB_TOKEN](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow) <br /> or a repo scoped <br /> [Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) |
20+
21+
22+
23+
* Free software: [MIT license](LICENSE)
24+
25+
Features
26+
--------
27+
28+
* TODO
29+
30+
31+
Credits
32+
-------
33+
34+
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).
35+
36+
37+
38+
Report Bugs
39+
-----------
40+
41+
Report bugs at https://github.com/tj-actions/coverage-badge-py/issues.
42+
43+
If you are reporting a bug, please include:
44+
45+
* Your operating system name and version.
46+
* Any details about your workflow that might be helpful in troubleshooting.
47+
* Detailed steps to reproduce the bug.

0 commit comments

Comments
 (0)