badges / badges/shields

PR additions/deletions badge

Open
#3,363 7 comments 1 reaction 0 assignees View on GitHub
good first issue service-badge
Dominant language
JavaScript
Stars
27.2k
Forks
5.6k
Avg merge
1d 8h
Merged PRs (30d)
46

Description

:clipboard: **Description**

GitHub PR additions/deletions badge. Since there are two data to be displayed, I suggest a badge like this:
![](https://img.shields.io/badge/%2B114---514-red.svg?labelColor=green)

:link: **Data**

Can be accessed via GitHub [PR API](https://api.github.com/repos/badges/shields/pulls/3295) (last few lines):

```json
"commits": 1,
"additions": 85,
"deletions": 54,
"changed_files": 5
}
```

:microphone: **Motivation**

To show that our PRs are big/small

Contributor guide

Open the contributing guide

Research direction

The issue names the GitHub pull-request API endpoint and its additions and deletions fields; start by inspecting that response and how existing GitHub-backed badges are organized. Done means a badge displays both values in the proposed format, with the behavior verified by the relevant project checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.