diff --git a/.github/workflows/generate-theme-doc.yml b/.github/workflows/generate-theme-doc.yml
index 47671883..e1c0aa6e 100644
--- a/.github/workflows/generate-theme-doc.yml
+++ b/.github/workflows/generate-theme-doc.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- master
+ - next
paths:
- "themes/index.js"
workflow_dispatch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a767eac8..a1223e72 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -3,9 +3,11 @@ on:
push:
branches:
- master
+ - next
pull_request:
branches:
- master
+ - next
permissions: read-all
diff --git a/.github/workflows/update-langs.yml b/.github/workflows/update-langs.yml
index c7a64ba2..bdad93f8 100644
--- a/.github/workflows/update-langs.yml
+++ b/.github/workflows/update-langs.yml
@@ -28,7 +28,7 @@ permissions:
jobs:
updateLanguages:
- if: github.repository == 'anuraghazra/github-readme-stats'
+ if: github.repository == 'anuraghazra/github-readme-stats' || github.repository == 'stats-organization/github-readme-stats'
name: Update supported languages
runs-on: ubuntu-latest
strategy:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 8aafae6f..bea1d477 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -12,7 +12,7 @@ We love your input! We want to make contributing to this project as easy and tra
Pull requests are the best way to propose changes. We actively welcome your pull requests:
-1. Fork the repo and create your branch from `master`.
+1. Fork the repo and create your branch from `next`.
2. If you've added code that should be tested, add some tests' examples.
3. If you've changed APIs, update the documentation.
4. Issue that pull request!
diff --git a/readme.md b/readme.md
index d9fb3356..32135336 100644
--- a/readme.md
+++ b/readme.md
@@ -84,9 +84,9 @@
- [Quick Tip (Align The Cards)](#quick-tip-align-the-cards)
- [Stats and top languages cards](#stats-and-top-languages-cards)
- [Pinning repositories](#pinning-repositories)
-- [Deploy on your own](#deploy-on-your-own)
- - [GitHub Actions (Recommended)](#github-actions-recommended)
- - [Self-hosted (Vercel/Other) (Recommended)](#self-hosted-vercelother-recommended)
+- [Deploy on your own (recommended)](#deploy-on-your-own-recommended)
+ - [GitHub Actions](#github-actions)
+ - [Self-hosted (Vercel/Other)](#self-hosted-vercelother)
- [First step: get your Personal Access Token (PAT)](#first-step-get-your-personal-access-token-pat)
- [On Vercel](#on-vercel)
- [:film\_projector: Check Out Step By Step Video Tutorial By @codeSTACKr](#film_projector-check-out-step-by-step-video-tutorial-by-codestackr)
@@ -96,10 +96,10 @@
- [:sparkling\_heart: Support the project](#sparkling_heart-support-the-project)
-# Important Notices
+# Important Notices
> [!IMPORTANT]
-> The public Vercel instance at `https://github-readme-stats.vercel.app/api` is best-effort and can be unreliable due to rate limits and traffic spikes (see [#1471](https://github.com/anuraghazra/github-readme-stats/issues/1471)). We use caching to improve stability (see [common options](#common-options)), but for reliable cards we recommend [self-hosting](#deploy-on-your-own) (Vercel or other) or using the [GitHub Actions workflow](#github-actions-recommended) to generate cards in your [profile repository](https://docs.github.com/en/account-and-profile/how-tos/profile-customization/managing-your-profile-readme).
+> The public Vercel instance at `https://github-readme-stats.vercel.app/api` is best-effort and can be unreliable due to rate limits and traffic spikes (see [#1471](https://github.com/anuraghazra/github-readme-stats/issues/1471)). We use caching to improve stability (see [common options](#common-options)), but for reliable cards we recommend [self-hosting](#deploy-on-your-own-recommended) (Vercel or other) or using the [GitHub Actions workflow](#github-actions) to generate cards in your [profile repository](https://docs.github.com/en/account-and-profile/how-tos/profile-customization/managing-your-profile-readme).
@@ -117,7 +117,7 @@ Change the `?username=` value to your GitHub username.
```
> [!WARNING]
-> By default, the stats card only shows statistics like stars, commits, and pull requests from public repositories. To show private statistics on the stats card, you should [deploy your own instance](#deploy-on-your-own) using your own GitHub API token.
+> By default, the stats card only shows statistics like stars, commits, and pull requests from public repositories. To show private statistics on the stats card, you should [deploy your own instance](#deploy-on-your-own-recommended) using your own GitHub API token.
> [!NOTE]
> Available ranks are S (top 1%), A+ (12.5%), A (25%), A- (37.5%), B+ (50%), B (62.5%), B- (75%), C+ (87.5%) and C (everyone). This ranking scheme is based on the [Japanese academic grading](https://wikipedia.org/wiki/Academic_grading_in_Japan) system. The global percentile is calculated as a weighted sum of percentiles for each statistic (number of commits, pull requests, reviews, issues, stars, and followers), based on the cumulative distribution function of the [exponential](https://wikipedia.org/wiki/exponential_distribution) and the [log-normal](https://wikipedia.org/wiki/Log-normal_distribution) distributions. The implementation can be investigated at [src/calculateRank.js](https://github.com/anuraghazra/github-readme-stats/blob/master/src/calculateRank.js). The circle around the rank shows 100 minus the global percentile.
@@ -285,7 +285,7 @@ You can customize the appearance of all your cards however you wish with URL par
| `border_radius` | Corner rounding on the card. | number | `4.5` |
> [!WARNING]
-> We use caching to decrease the load on our servers (see ). Our cards have the following default cache hours: stats card - 24 hours, top languages card - 144 hours (6 days), pin card - 240 hours (10 days), gist card - 48 hours (2 days), and wakatime card - 24 hours. If you want the data on your cards to be updated more often you can [deploy your own instance](#deploy-on-your-own) and set [environment variable](#available-environment-variables) `CACHE_SECONDS` to a value of your choosing.
+> We use caching to decrease the load on our servers (see ). Our cards have the following default cache hours: stats card - 24 hours, top languages card - 144 hours (6 days), pin card - 240 hours (10 days), gist card - 48 hours (2 days), and wakatime card - 24 hours. If you want the data on your cards to be updated more often you can [deploy your own instance](#deploy-on-your-own-recommended) and set [environment variable](#available-environment-variables) `CACHE_SECONDS` to a value of your choosing.
##### Gradient in bg\_color
@@ -462,7 +462,7 @@ Use `show_owner` query option to include the gist's owner username
The top languages card shows a GitHub user's most frequently used languages.
> [!WARNING]
-> By default, the language card shows language results only from public repositories. To include languages used in private repositories, you should [deploy your own instance](#deploy-on-your-own) using your own GitHub API token.
+> By default, the language card shows language results only from public repositories. To include languages used in private repositories, you should [deploy your own instance](#deploy-on-your-own-recommended) using your own GitHub API token.
> [!NOTE]
> Top Languages does not indicate the user's skill level or anything like that; it's a GitHub metric to determine which languages have the most code on GitHub. It is a new feature of github-readme-stats.
@@ -798,7 +798,7 @@ By default, GitHub does not lay out the cards side by side. To do that, you can
# Deploy on your own (recommended)
-Because the public endpoint is [not reliable](#Important-Notices), we recommend self-deployment via GitHub Actions or your own hosted instance. GitHub Actions is the simplest setup with static SVGs stored in your repo but less frequent updates, while self-hosting takes more work and can serve fresher stats (with caching).
+Because the public endpoint is [not reliable](#important-notices), we recommend self-deployment via GitHub Actions or your own hosted instance. GitHub Actions is the simplest setup with static SVGs stored in your repo but less frequent updates, while self-hosting takes more work and can serve fresher stats (with caching).
## GitHub Actions
@@ -811,14 +811,18 @@ name: Update README cards
on:
schedule:
- - cron: "0 3 * * *"
+ - cron: "0 0 * * *" # Runs once daily at midnight
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
+
+ permissions:
+ contents: write
+
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Generate stats card
uses: readme-tools/github-readme-stats-action@v1
@@ -830,8 +834,8 @@ jobs:
- name: Commit cards
run: |
- git config user.name "github-actions"
- git config user.email "github-actions@users.noreply.github.com"
+ git config user.name "github-actions[bot]"
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add profile/*.svg
git commit -m "Update README cards" || exit 0
git push
diff --git a/scripts/generate-theme-doc.js b/scripts/generate-theme-doc.js
index e7500eeb..7ce5b405 100644
--- a/scripts/generate-theme-doc.js
+++ b/scripts/generate-theme-doc.js
@@ -42,10 +42,10 @@ ${REPO_CARD_LINKS_FLAG}
`;
const createRepoMdLink = (theme) => {
- return `\n[${theme}_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=${theme}`;
+ return `\n[${theme}_repo]: https://grs.rickstaa.dev/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=${theme}`;
};
const createStatMdLink = (theme) => {
- return `\n[${theme}]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=${theme}`;
+ return `\n[${theme}]: https://grs.rickstaa.dev/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=${theme}`;
};
const generateLinks = (fn) => {