-
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
Sievush Park
committed
Oct 11, 2024
0 parents
commit 0ff563b
Showing
107 changed files
with
27,425 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/* linguist-vendored=false |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Bug report | ||
description: Create a report to help us improve. | ||
labels: | ||
- "bug" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
: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)!!! | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: | ||
A clear and concise description of what you expected to happen. | ||
- type: textarea | ||
attributes: | ||
label: Screenshots / Live demo link | ||
description: If applicable, add screenshots to help explain your problem. | ||
placeholder: Paste the github-readme-stats link as markdown image | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
- type: markdown | ||
attributes: | ||
value: | | ||
--- | ||
### FAQ (Snippet) | ||
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). | ||
#### Q: My card displays an error | ||
**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. | ||
#### Q: How to hide jupyter Notebook? | ||
**Ans:** `&hide=jupyter%20notebook`. | ||
#### Q: I could not figure out how to deploy on my own vercel instance | ||
**Ans:** Please check: | ||
- Docs: https://github.com/anuraghazra/github-readme-stats/#deploy-on-your-own-vercel-instance | ||
- YT tutorial by codeSTACKr: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107 | ||
#### Q: Language Card is incorrect | ||
**Ans:** Please read these issues/comments before opening any issues regarding language card stats: | ||
- https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665164174 | ||
- https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665172181 | ||
#### Q: How to count private stats? | ||
**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). |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Question | ||
url: https://github.com/anuraghazra/github-readme-stats/discussions | ||
about: Please ask and answer questions here. | ||
- name: Error | ||
url: https://github.com/anuraghazra/github-readme-stats/issues/1772 | ||
about: | ||
Before opening a bug report, please check the 'Common Error Codes' issue. | ||
- name: FAQ | ||
url: https://github.com/anuraghazra/github-readme-stats/discussions/1770 | ||
about: Please first check the FAQ before asking a question. |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Feature request | ||
description: Suggest an idea for this project. | ||
labels: | ||
- "enhancement" | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Is your feature request related to a problem? Please describe. | ||
description: | ||
A clear and concise description of what the problem is. Ex. I'm always | ||
frustrated when [...] | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the solution you'd like | ||
description: A clear and concise description of what you want to happen. | ||
- type: textarea | ||
attributes: | ||
label: Describe alternatives you've considered | ||
description: | ||
A clear and concise description of any alternative solutions or features | ||
you've considered. | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: | ||
Add any other context or screenshots about the feature request here. |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for NPM | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "build(deps)" | ||
prefix-development: "build(deps-dev)" | ||
reviewers: | ||
- "qwerty541" | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "ci(deps)" | ||
prefix-development: "ci(deps-dev)" | ||
reviewers: | ||
- "qwerty541" |
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 |
---|---|---|
@@ -0,0 +1,95 @@ | ||
themes: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- themes/index.js | ||
|
||
doc-translation: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- docs/* | ||
|
||
card-i18n: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- src/translations.js | ||
- src/common/I18n.js | ||
|
||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- readme.md | ||
- CONTRIBUTING.md | ||
- CODE_OF_CONDUCT.md | ||
- SECURITY.md | ||
|
||
dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- package.json | ||
- package-lock.json | ||
|
||
lang-card: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- api/top-langs.js | ||
- src/cards/top-languages-card.js | ||
- src/fetchers/top-languages-fetcher.js | ||
- tests/fetchTopLanguages.test.js | ||
- tests/renderTopLanguagesCard.test.js | ||
- tests/top-langs.test.js | ||
|
||
repo-card: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- api/pin.js | ||
- src/cards/repo-card.js | ||
- src/fetchers/repo-fetcher.js | ||
- tests/fetchRepo.test.js | ||
- tests/renderRepoCard.test.js | ||
- tests/pin.test.js | ||
|
||
stats-card: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- api/index.js | ||
- src/cards/stats-card.js | ||
- src/fetchers/stats-fetcher.js | ||
- tests/fetchStats.test.js | ||
- tests/renderStatsCard.test.js | ||
- tests/api.test.js | ||
|
||
wakatime-card: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- api/wakatime.js | ||
- src/cards/wakatime-card.js | ||
- src/fetchers/wakatime-fetcher.js | ||
- tests/fetchWakatime.test.js | ||
- tests/renderWakatimeCard.test.js | ||
- tests/wakatime.test.js | ||
|
||
gist-card: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- api/gist.js | ||
- src/cards/gist-card.js | ||
- src/fetchers/gist-fetcher.js | ||
- tests/fetchGist.test.js | ||
- tests/renderGistCard.test.js | ||
- tests/gist.test.js | ||
|
||
ranks: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- src/calculateRank.js | ||
|
||
ci: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/workflows/* | ||
- scripts/* | ||
|
||
infrastructure: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .eslintrc.json |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 30 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- feature | ||
- enhancement | ||
- help wanted | ||
- bug | ||
|
||
# Label to use when marking an issue as stale | ||
staleLabel: stale | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "Static code analysis workflow (CodeQL)" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
actions: read | ||
checks: read | ||
contents: read | ||
deployments: read | ||
issues: read | ||
discussions: read | ||
packages: read | ||
pages: read | ||
pull-requests: read | ||
repository-projects: read | ||
security-events: write | ||
statuses: read | ||
|
||
jobs: | ||
CodeQL-Build: | ||
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@46a6823b81f2d7c67ddf123851eea88365bc8a67 # v2.13.5 | ||
with: | ||
languages: javascript | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@46a6823b81f2d7c67ddf123851eea88365bc8a67 # v2.13.5 |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import os | ||
|
||
file = open('./vercel.json', 'r') | ||
str = file.read() | ||
file = open('./vercel.json', 'w') | ||
|
||
str = str.replace('"maxDuration": 10', '"maxDuration": 30') | ||
|
||
file.write(str) | ||
file.close() |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Deployment Prep | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
config: | ||
if: github.repository == 'anuraghazra/github-readme-stats' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
- name: Deployment Prep | ||
run: python ./.github/workflows/deploy-prep.py | ||
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 | ||
with: | ||
branch: vercel | ||
create_branch: true | ||
push_options: "--force" |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Test Deployment | ||
on: | ||
deployment_status: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
e2eTests: | ||
if: | ||
github.repository == 'anuraghazra/github-readme-stats' && | ||
github.event_name == 'deployment_status' && | ||
github.event.deployment_status.state == 'success' | ||
name: Perform 2e2 tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
env: | ||
CI: true | ||
|
||
- name: Run end-to-end tests. | ||
run: npm run test:e2e | ||
env: | ||
VERCEL_PREVIEW_URL: ${{ github.event.deployment_status.target_url }} |
Oops, something went wrong.