Skip to content

Commit 4d45975

Browse files
Merge branch 'anuraghazra:master' into main
2 parents aececaa + de4efa9 commit 4d45975

File tree

103 files changed

+17113
-1758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+17113
-1758
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Bug report
2+
description: Create a report to help us improve.
3+
labels:
4+
- "bug"
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
:warning: PLEASE FIRST READ THE FAQ [(#1770)](https://github.com/anuraghazra/github-readme-stats/discussions/1770) AND COMMON ERROR CODES [(#1772)](https://github.com/anuraghazra/github-readme-stats/issues/1772)!!!
10+
- type: textarea
11+
attributes:
12+
label: Describe the bug
13+
description: A clear and concise description of what the bug is.
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Expected behavior
19+
description:
20+
A clear and concise description of what you expected to happen.
21+
- type: textarea
22+
attributes:
23+
label: Screenshots / Live demo link
24+
description: If applicable, add screenshots to help explain your problem.
25+
placeholder: Paste the github-readme-stats link as markdown image
26+
- type: textarea
27+
attributes:
28+
label: Additional context
29+
description: Add any other context about the problem here.
30+
- type: markdown
31+
attributes:
32+
value: |
33+
---
34+
### FAQ (Snippet)
35+
36+
Below are some questions that are found in the FAQ. The full FAQ can be found in [#1770](https://github.com/anuraghazra/github-readme-stats/discussions/1770).
37+
38+
#### Q: My card displays an error
39+
40+
**Ans:** First, check the common error codes (i.e. https://github.com/anuraghazra/github-readme-stats/issues/1772) and existing issues before creating a new one.
41+
42+
#### Q: How to hide jupyter Notebook?
43+
44+
**Ans:** `&hide=jupyter%20notebook`.
45+
46+
#### Q: I could not figure out how to deploy on my own vercel instance
47+
48+
**Ans:** Please check:
49+
- Docs: https://github.com/anuraghazra/github-readme-stats/#deploy-on-your-own-vercel-instance
50+
- YT tutorial by codeSTACKr: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107
51+
52+
#### Q: Language Card is incorrect
53+
54+
**Ans:** Please read these issues/comments before opening any issues regarding language card stats:
55+
- https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665164174
56+
- https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665172181
57+
58+
#### Q: How to count private stats?
59+
60+
**Ans:** We can only count private commits & we cannot access any other private info of any users, so it's impossible. The only way is to deploy on your own instance & use your own PAT (Personal Access Token).

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Question
4+
url: https://github.com/anuraghazra/github-readme-stats/discussions
5+
about: Please ask and answer questions here.
6+
- name: Error
7+
url: https://github.com/anuraghazra/github-readme-stats/issues/1772
8+
about:
9+
Before opening a bug report, please check the 'Common Error Codes' issue.
10+
- name: FAQ
11+
url: https://github.com/anuraghazra/github-readme-stats/discussions/1770
12+
about: Please first check the FAQ before asking a question.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Feature request
2+
description: Suggest an idea for this project.
3+
labels:
4+
- "enhancement"
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Is your feature request related to a problem? Please describe.
9+
description:
10+
A clear and concise description of what the problem is. Ex. I'm always
11+
frustrated when [...]
12+
validations:
13+
required: true
14+
- type: textarea
15+
attributes:
16+
label: Describe the solution you'd like
17+
description: A clear and concise description of what you want to happen.
18+
- type: textarea
19+
attributes:
20+
label: Describe alternatives you've considered
21+
description:
22+
A clear and concise description of any alternative solutions or features
23+
you've considered.
24+
- type: textarea
25+
attributes:
26+
label: Additional context
27+
description:
28+
Add any other context or screenshots about the feature request here.

.github/labeler.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
11
themes: themes/index.js
22
doc-translation: docs/*
3-
card-i18n: src/translations.js
3+
card-i18n:
4+
- src/translations.js
5+
- src/common/I18n.js
6+
documentation:
7+
- readme.md
8+
- CONTRIBUTING.md
9+
- CODE_OF_CONDUCT.md
10+
dependencies:
11+
- package.json
12+
- package-lock.json
13+
lang-card:
14+
- api/top-langs.js
15+
- src/cards/top-languages-card.js
16+
- src/fetchers/top-languages-fetcher.js
17+
repo-card:
18+
- api/pin.js
19+
- src/cards/repo-card.js
20+
- src/fetchers/repo-fetcher.js
21+
stats-card:
22+
- api/index.js
23+
- src/cards/stats-card.js
24+
- src/fetchers/stats-fetcher.js
25+
wakatime-card:
26+
- api/wakatime.js
27+
- src/cards/wakatime-card.js
28+
- src/fetchers/wakatime-fetcher.js
29+
ranks: src/calculateRank.js
30+
ci:
31+
- .github/workflows/*
32+
- scripts/*

.github/workflows/deploy-prep.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import os
2+
3+
file = open('./vercel.json', 'r')
4+
str = file.read()
5+
file = open('./vercel.json', 'w')
6+
7+
str = str.replace('"maxDuration": 10', '"maxDuration": 30')
8+
9+
file.write(str)
10+
file.close()

.github/workflows/deploy-prep.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deployment Prep
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
config:
10+
if: github.repository == 'anuraghazra/github-readme-stats'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Deployment Prep
15+
run: python ./.github/workflows/deploy-prep.py
16+
- uses: stefanzweifel/git-auto-commit-action@v4
17+
with:
18+
branch: vercel
19+
create_branch: true
20+
push_options: "--force"

.github/workflows/e2e-test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test Deployment
2+
on:
3+
deployment_status:
4+
5+
permissions: read-all
6+
7+
jobs:
8+
e2eTests:
9+
if:
10+
github.repository == 'anuraghazra/github-readme-stats' &&
11+
github.event_name == 'deployment_status' &&
12+
github.event.deployment_status.state == 'success'
13+
name: Perform 2e2 tests
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [18.x]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: npm
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
env:
31+
CI: true
32+
33+
- name: Run end-to-end tests.
34+
run: npm run test:e2e
35+
env:
36+
VERCEL_PREVIEW_URL: ${{ github.event.deployment_status.target_url }}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Close empty issues and templates
2+
on:
3+
issues:
4+
types:
5+
- reopened
6+
- opened
7+
- edited
8+
9+
permissions:
10+
actions: read
11+
checks: read
12+
contents: read
13+
deployments: read
14+
issues: write
15+
discussions: read
16+
packages: read
17+
pages: read
18+
pull-requests: read
19+
repository-projects: read
20+
security-events: read
21+
statuses: read
22+
23+
jobs:
24+
closeEmptyIssuesAndTemplates:
25+
if: github.repository == 'anuraghazra/github-readme-stats'
26+
name: Close empty issues
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v3 # NOTE: Retrieve issue templates.
30+
31+
- name: Run empty issues closer action
32+
uses: rickstaa/empty-issues-closer-action@v1
33+
env:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
close_comment:
37+
Closing this issue because it appears to be empty. Please update the
38+
issue for it to be reopened.
39+
open_comment:
40+
Reopening this issue because the author provided more information.
41+
check_templates: true
42+
template_close_comment:
43+
Closing this issue since the issue template was not filled in.
44+
Please provide us with more information to have this issue reopened.
45+
template_open_comment:
46+
Reopening this issue because the author provided more information.

0 commit comments

Comments
 (0)