Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from upstream #2

Merged
merged 160 commits into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
f8e32f9
ci: add e2e vercel test action (#2054)
rickstaa Oct 1, 2022
6b7e91a
ci: improve theme-preview actiot push (#2065)
rickstaa Oct 1, 2022
d5d8912
ci: improve theme preview action (#2088)
rickstaa Oct 2, 2022
aaf710c
ci: fix e2e test
rickstaa Oct 2, 2022
f86059f
chore: Update workflows to cache dependencies (#2083)
jongwooo Oct 2, 2022
0983310
ci(label-pr): upgrade actions/labeler to v4 (#2080)
oscard0m Oct 2, 2022
51e7887
ci: fix e2e test
rickstaa Oct 2, 2022
986070a
Merge branch 'master' of github.com:anuraghazra/github-readme-stats
rickstaa Oct 2, 2022
b8faef6
ci: add stale theme pull request closer action push (#2067)
rickstaa Oct 2, 2022
406dbc5
feat: add transparent theme
rickstaa Oct 2, 2022
510cf62
feat: remove border color from transparent theme
rickstaa Oct 2, 2022
3a07cb0
ci: fix e2e test
rickstaa Oct 2, 2022
f0daab1
feat: added default options to readme (#2051)
Jagrutiti Oct 2, 2022
6f8bd9f
ci: increase top-issues dashboard update frequency
rickstaa Oct 2, 2022
d56b294
style: improve code style
rickstaa Oct 2, 2022
84c9d35
docs(theme): Auto update theme readme (#2091)
anuraghazra Oct 2, 2022
822efbf
ci: fix small bugs in theme-preview action (#2093)
rickstaa Oct 2, 2022
5d42af5
ci: fix small bug in theme-preview action
rickstaa Oct 2, 2022
2faf9c5
docs: fix link to go India logo svg (#2085)
ibrouos Oct 2, 2022
c2c984a
docs: format readme
rickstaa Oct 2, 2022
c5bea57
docs: fix india care logo
rickstaa Oct 2, 2022
aa084f3
Added Contributors Badge (#2096)
Manan1612 Oct 3, 2022
9e1fc0b
update default values in readme (#2094)
Ayushi96 Oct 3, 2022
c03bb2f
fix: adding docstrings to the files where it was missing (#2101)
Jagrutiti Oct 3, 2022
7accd1a
feat: default values for wakatime and language (#2103)
adi-uchiha Oct 4, 2022
e6a6384
docs: improve readme syntax (#2106)
rickstaa Oct 4, 2022
388ba06
Update the Vercel deployement guide (#2102)
DecryptAG Oct 4, 2022
acbc03d
Fix card length during error (#2105)
nekiwo Oct 4, 2022
af97e57
fix: fetch all repos for for the stats card (#2100)
MatteoPierro Oct 4, 2022
94d0978
docs: fix readme logo alignment (#2112)
rickstaa Oct 4, 2022
aae83cb
fix: temporary disable multi page star fetch
rickstaa Oct 4, 2022
cea4a39
ci: improve theme preview action
rickstaa Oct 7, 2022
04595df
style: improve formatting
rickstaa Oct 7, 2022
bcb8ae9
style: improve small syntax error
rickstaa Oct 7, 2022
e8dfbde
Add format script to pre-commit hook (#2146)
HwangTaehyun Oct 7, 2022
15620a1
test: fix tests
rickstaa Oct 7, 2022
df243ef
docs: update readme
rickstaa Oct 7, 2022
1553359
docs: add admonition boxes
rickstaa Oct 7, 2022
5c514db
docs: improve admonition boxes
rickstaa Oct 7, 2022
d7451d8
docs: improve caching documentation
rickstaa Oct 7, 2022
343058c
fix: adding doc strings to files in src folder where it was missing (…
shivam1646 Oct 7, 2022
36a8c39
fix: improve graphql error handling
rickstaa Oct 7, 2022
06e3e05
ci: updated issue template (#2127)
Choromanski Oct 7, 2022
80e8233
style: improve templates formatting
rickstaa Oct 7, 2022
39535db
style: update formatting
rickstaa Oct 7, 2022
bd9865d
test: burst cache in e2e tests (#2154)
rickstaa Oct 7, 2022
6001270
test: increase stats card e2e timeout
rickstaa Oct 8, 2022
fcd0588
test: cleanup tests
rickstaa Oct 9, 2022
f77e34e
ci: add question template
rickstaa Oct 9, 2022
0a394a6
ci: add issues template config and remove question template
rickstaa Oct 9, 2022
4df8094
fix: prevent errors from being cached (#2160)
rickstaa Oct 9, 2022
f0f92c2
test: add cache on error test
rickstaa Oct 10, 2022
c4bfacb
docs: add fork update guide
rickstaa Oct 10, 2022
166972d
docs: improve syntax
rickstaa Oct 10, 2022
7eb85d3
refactor: add extra links to issues template
rickstaa Oct 11, 2022
32b8daa
refactor: improve issues template (#2180)
rickstaa Oct 11, 2022
8dd7092
refactor: improve issues template formatting
rickstaa Oct 11, 2022
6fdf73f
test: increase e2e test timeout
rickstaa Oct 11, 2022
dea583d
build: create npm package (#2151)
rickstaa Oct 13, 2022
f7a2b21
fix: fix I18n import error
rickstaa Oct 13, 2022
65424fa
fix: improve json import (#2190)
rickstaa Oct 13, 2022
54cc291
Revert "fix: improve json import (#2190)" (#2191)
rickstaa Oct 13, 2022
bb56e3b
fix: text overlapped on zh-tw locale (#2192)
kurt-liao Oct 15, 2022
1d10912
ci: fix stale closer action review sort bug (#2201)
rickstaa Oct 16, 2022
dcc4ccd
ci: increase invalid theme close time (#2210)
rickstaa Oct 18, 2022
98f9045
fix: improve error caching behavoir (#2211)
rickstaa Oct 18, 2022
8e31470
refactor: make issue templates required (#2226)
rickstaa Oct 24, 2022
199870a
refactor: fix GitHub capitalization (#2232)
friederbluemle Oct 26, 2022
45f434f
docs: document auto theme change #2074 (#2229)
lostgirljourney Oct 28, 2022
f993f21
Update readme.md
rickstaa Oct 28, 2022
c0d7493
Fix truncation of compact wakatime progress bar when langs_count is s…
raychanks Oct 28, 2022
f9e95b1
Corrections of Polish expressions in translations.js (#2240)
InfoTCube Oct 29, 2022
56aa307
ci: update theme stale close message
rickstaa Nov 18, 2022
1a4e5a6
ci: update theme stale close message
rickstaa Nov 18, 2022
26cde6b
Missing term in calculation of TOTAL_VALUES. (#2116)
fjosw Nov 18, 2022
0c829e9
Updates the brazilian readme (#2245)
ItaloSa Nov 18, 2022
9aa39df
feat: allow users to pass ring_color param (#2075)
Pranav2612000 Nov 19, 2022
0e02523
feat: added Date Night theme to index.js (#2264)
jesterb0206 Nov 19, 2022
b2e34ac
test: update snapshots
rickstaa Nov 20, 2022
4b656eb
refactor: migrate to using arrow functions (#2033)
rickstaa Nov 21, 2022
5df25a6
fix: improve boolean parse behaviour (#2029)
rickstaa Nov 21, 2022
42a4b6f
refactor: remove unused dotenv calls (#2059)
rickstaa Nov 21, 2022
f07cd13
fix: fix retry max-out bug (#2121)
rickstaa Nov 21, 2022
3cb205c
feat: improve card loading speed (#2124)
rickstaa Nov 21, 2022
ada9cf4
feat: add INCLUDE_ORGS env variable (#2275)
rickstaa Nov 21, 2022
0efb982
Revert "feat: add INCLUDE_ORGS env variable (#2275)" (#2276)
rickstaa Nov 21, 2022
ad3726e
fix: fix repoContrib confusion (#2269) (#2274)
rickstaa Nov 22, 2022
9eb0c3c
feat: fix 'include_all_commits' inner card margin (#2283)
rickstaa Nov 22, 2022
42fdff6
build(deps): bump json5 from 2.2.1 to 2.2.3 (#2373)
dependabot[bot] Jan 9, 2023
227711c
test: update snapshots
rickstaa Jan 10, 2023
77dcdab
Add loading Animation to Most used Language card (#2197)
RedHeadphone Jan 10, 2023
5ae959b
ci: fix theme readme generation action (#2271)
rickstaa Jan 10, 2023
0850a97
Revert "build(deps): bump json5 from 2.2.1 to 2.2.3 (#2373)" (#2393)
rickstaa Jan 12, 2023
70f0264
Revert "ci: fix theme readme generation action (#2271)" (#2394)
rickstaa Jan 12, 2023
4b8198f
Revert "Add loading Animation to Most used Language card (#2197)" (#2…
rickstaa Jan 12, 2023
0ff426d
fix: retryer fixed (#2400)
anuraghazra Jan 13, 2023
ab9c563
Revert "Revert "ci: fix theme readme generation action (#2271)" (#239…
rickstaa Jan 16, 2023
ad9db67
refactor: update code formatting
rickstaa Jan 16, 2023
06a2a78
Revert "Revert "Add loading Animation to Most used Language card (#21…
rickstaa Jan 16, 2023
8bc69e7
Update readme.md (#2442)
Zo-Bro-23 Jan 19, 2023
d5d1f44
test: fix e2e tests
rickstaa Jan 21, 2023
cfa8423
test: update snapshots
rickstaa Jan 21, 2023
eab1402
test: fix e2e test data
rickstaa Jan 21, 2023
fbb49e3
test: update e2e test data
rickstaa Jan 21, 2023
4ff2c2a
feat: fix e2e tests
rickstaa Jan 21, 2023
c1dc7b8
fix: fix e2e test data
rickstaa Jan 21, 2023
60fae29
feat: enable multi page star fetching for private vercel instances (#…
rickstaa Jan 21, 2023
8667ea9
Merge branch 'master' of https://github.com/anuraghazra/github-readme…
anuraghazra Jan 21, 2023
a17fa1c
chore: resolve conflict (#2453)
anuraghazra Jan 21, 2023
4b17300
Merge branch 'master' of https://github.com/anuraghazra/github-readme…
anuraghazra Jan 21, 2023
b2bf4fa
fix: change prod deployment branch to vercel branch to fix maxDuratio…
Zo-Bro-23 Jan 24, 2023
cd5cbcd
fix: fixes card overflow problem #2452 (#2460)
rickstaa Jan 24, 2023
99d9d3c
ci: prevent certain actions from running on forks (#2466)
rickstaa Jan 25, 2023
077d405
feat: add PAT monitoring functions (#2178)
rickstaa Jan 28, 2023
7aa502d
chore: minor changes in pat info (#2481)
anuraghazra Jan 28, 2023
1120006
ci: add update languages action (#2484)
rickstaa Jan 29, 2023
888663a
Add `rose` theme (#2480)
Meezzi Feb 14, 2023
ba7c2f8
Support hide_progress for top-langs feature (#2514)
amirhakimnejad Feb 16, 2023
5f20e6c
add holi_theme (#2539)
mohamedhassan279 Feb 25, 2023
a6ff0fa
Add one_dark_pro (#2507)
b3dyk Feb 25, 2023
f3f7a48
fix: fix JSON themes bug. (#2544)
catelinemnemosyne Feb 25, 2023
55a303b
Add auto-labelling for documentation updates (#2526)
Zo-Bro-23 Feb 25, 2023
91345ed
ci: fix unsafe directory bug (#2518)
rickstaa Feb 25, 2023
8898d01
Update readme.md (#2414)
raphaelricardo10 Feb 25, 2023
a3c6f87
test: update snapshots (#2519)
rickstaa Feb 25, 2023
2ab8b85
fix: for issue #2534 (#2536)
md-rehman Feb 25, 2023
1d528da
Add option to deploy using other services (#2525)
Zo-Bro-23 Feb 25, 2023
82224fa
ci: update e2e tests (#2548)
rickstaa Feb 25, 2023
d5fbfb4
ci: fix a bug in the theme preview action (#2549)
rickstaa Feb 25, 2023
252c2b4
refactor: format code (#2550)
rickstaa Feb 26, 2023
d60d53c
refactor: update languages JSON (#2554)
github-actions[bot] Mar 1, 2023
8849b5f
Preview theme workflow fix (#2557)
Zo-Bro-23 Mar 1, 2023
a1c3c6a
ci: preview theme workflow fix (#2559)
Zo-Bro-23 Mar 1, 2023
9ec2c83
refactor: fix code comments and change 'up' rate limit (#2560)
rickstaa Mar 2, 2023
7bc8f19
Preview action fix (#2561)
Zo-Bro-23 Mar 2, 2023
9767710
ci: fix theme preview action (#2563)
rickstaa Mar 3, 2023
1e61f9f
fix theme preview (#2564)
rickstaa Mar 3, 2023
ed18914
ci: fixes theme preview action (#2566)
rickstaa Mar 5, 2023
b93aee3
ci: improve theme preview action (#2572)
rickstaa Mar 6, 2023
c5063b9
Added "Shadow" set (Red, Green, Blue, transparent BG) (#2529)
Etanarvazac Mar 8, 2023
2bd9d45
ci: fix theme docs generate bug (#2573)
rickstaa Mar 9, 2023
3299829
update my theme (#2576)
eduardozaniboni Mar 14, 2023
b928f51
refactor: update languages JSON (#2596)
github-actions[bot] Mar 31, 2023
d8244a7
Add format stats option (#2155)
CaedenPH Apr 1, 2023
4d1d83d
add github_dark_dimmed theme (#2594)
fabianocouto Apr 1, 2023
879937c
feat(RankIcon): add rank_icon option (#2628)
fabianocouto Apr 24, 2023
aec73d2
Updated the custom error there was a Typo. (#2618)
LokeshXs Apr 24, 2023
be0d966
Fix typos inside wakatime test name (#2617)
qwerty541 Apr 24, 2023
da5f82f
removed redundant comparison (#957)
qwerty541 Apr 25, 2023
8aacec0
dev (#1782)
qwerty541 Apr 25, 2023
21a9ba4
fix path to powered by vercel image (#1792)
qwerty541 Apr 25, 2023
da46a50
Synchonize cache seconds min value inside docs translations with main…
qwerty541 Apr 25, 2023
5577bbf
New top language algorithm implementation (#1732)
kitswas Apr 25, 2023
f5f0a79
feat: improve CONTRIBUTING.md (#2609)
rickstaa Apr 28, 2023
fd64333
docs: update give logo (#2605)
rickstaa Apr 28, 2023
30a45d3
Fixed typo in word color inside README (#2652)
qwerty541 Apr 28, 2023
6eebfe3
Fixed docs typo inside src/common/utils.js (#2651)
qwerty541 Apr 28, 2023
a82a617
Fixed several typos inside preview theme script (#2650)
qwerty541 Apr 28, 2023
31d1ab4
Fixed todo inside stats card data fetcher (#2649)
qwerty541 Apr 28, 2023
3bd6519
docs: fix README language card usage order (#2659)
rickstaa Apr 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
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 behaviour
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).
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
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.
41 changes: 0 additions & 41 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
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.
1 change: 1 addition & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
themes: themes/index.js
doc-translation: docs/*
card-i18n: src/translations.js
documentation: readme.md
10 changes: 10 additions & 0 deletions .github/workflows/deploy-prep.py
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()
20 changes: 20 additions & 0 deletions .github/workflows/deploy-prep.yml
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@v3
- name: Deployment Prep
run: python ./.github/workflows/deploy-prep.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: vercel
create_branch: true
push_options: "--force"
34 changes: 34 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Deployment
on:
deployment_status:

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: [16.x]

steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
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 }}
2 changes: 2 additions & 0 deletions .github/workflows/empty-issues-closer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:

jobs:
closeEmptyIssuesAndTemplates:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Close empty issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # NOTE: Retrieve issue templates.

- name: Run empty issues closer action
uses: rickstaa/empty-issues-closer-action@v1
env:
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/generate-theme-doc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Generate Theme Readme

on:
push:
branches:
Expand All @@ -8,15 +7,25 @@ on:
- "themes/index.js"

jobs:
build:
generateThemeDoc:
runs-on: ubuntu-latest
name: Generate theme doc
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v1
- name: setup node
uses: actions/setup-node@v1
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: ${{ matrix.node-version }}
cache: npm

# Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches.
- name: Fix unsafe repo error
run: git config --global --add safe.directory ${{ github.workspace }}

- name: npm install, generate readme
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:

jobs:
triage:
if: github.repository == 'anuraghazra/github-readme-stats'
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
25 changes: 16 additions & 9 deletions .github/workflows/preview-theme.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
name: Theme preview

on:
pull_request_target:
types: [opened, synchronize, reopened]
types: [opened, edited, reopened, synchronize]
branches:
- master
- theme_preview_script
paths:
- "themes/index.js"
- "scripts/preview-theme.js"

jobs:
build:
runs-on: ubuntu-latest
previewTheme:
name: Install & Preview
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

- uses: bahmutov/npm-install@v1
with:
useLockFile: false

- run: npm run preview-theme
env:
CI: true
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/stale-theme-pr-closer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Close stale theme pull requests that have the 'invalid' label.
on:
schedule:
- cron: "0 0 */7 * *"

jobs:
closeOldThemePrs:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Close stale 'invalid' theme PRs
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

- uses: bahmutov/npm-install@v1
with:
useLockFile: false

- run: npm run close-stale-theme-prs
env:
STALE_DAYS: 20
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading