-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,36 @@ | ||
# contributions-badge | ||
Showcase your number of merged pull requests in profile's README dynamically | ||
|
||
This project has MERGED_PULL_REQUESTS_COUNT merged pull requests. | ||
> A github action workflow for showcasing your number of merged pull requests in profile's README dynamically | ||
<p align="center"> | ||
<a href="https://github.com/imskr/contributions-badge/releases"><img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/imskr/contributions-badge?include_prereleases&style=flat-square"></a> | ||
<a href="https://github.com/imskr/contributions-badge/actions/workflows/build.yml"><img alt="Actions workflow" src="https://img.shields.io/github/workflow/status/imskr/contributions-badge/Build/main?style=flat-square"></a> | ||
<a href="https://github.com/imskr/contributions-badge/issues"><img alt="Github Issues" src="https://img.shields.io/github/issues/imskr/contributions-badge?color=orange&style=flat-square"></a> | ||
</p> | ||
<hr noshade> | ||
|
||
## Usage | ||
|
||
1. Go to your repository | ||
2. Add the following to your **README.md** file, you can use any title. Just make sure that you use `<!-- MERGED_PULL_REQUESTS_COUNT -->` in your readme. The workflow will replace this comment with the number of merged pull requests: | ||
|
||
```markdown | ||
<!-- MERGED_PULL_REQUESTS_COUNT --> | ||
``` | ||
|
||
3. Create a folder `.github/workflows` inside root of the repository if it doesn't exists. | ||
4. Create a new file `contributions.yml` inside `.github/workflows/` with the following contents: | ||
|
||
![](./public/images/contributions-workflow.png) | ||
|
||
5. Replace the above `organization`, `project` and `username` with your data. | ||
6. Commit and wait for it to run automatically, or you can also trigger it manually to see the result instantly. | ||
|
||
> Currently we are only supporting public projects on GitLab | ||
|
||
|
||
## Support | ||
|
||
<p> | ||
<a href="https://buymeacoffee.com/imskr" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-red.png" alt="Buy Me A Coffee" width="150" ></a> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.