diff --git a/.github/readme/partials/documentation/organizations.md b/.github/readme/partials/documentation/organizations.md index a480d02b..6d8a8591 100644 --- a/.github/readme/partials/documentation/organizations.md +++ b/.github/readme/partials/documentation/organizations.md @@ -26,7 +26,6 @@ To support private repositories, add full `repo` scope to your personal token. with: # ... other options token: ${{ secrets.METRICS_TOKEN }} # A personal token from an user account with read:org scope - committer_token: ${{ secrets.GITHUB_TOKEN }} # GitHub auto-generated token user: organization-name # Organization name ``` diff --git a/.github/readme/partials/setup/action.md b/.github/readme/partials/setup/action.md index 552647aa..bff5f779 100644 --- a/.github/readme/partials/setup/action.md +++ b/.github/readme/partials/setup/action.md @@ -60,8 +60,8 @@ on: # Schedule updates (each hour) schedule: [{cron: "0 * * * *"}] # Lines below let you run workflow manually and on each commit (optional) - push: {branches: ["master", "main"]} workflow_dispatch: + push: {branches: ["master", "main"]} jobs: github-metrics: runs-on: ubuntu-latest @@ -71,8 +71,6 @@ jobs: with: # Your GitHub token token: ${{ secrets.METRICS_TOKEN }} - # GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it - committer_token: ${{ secrets.GITHUB_TOKEN }} ``` See all supported options in [action.yml](action.yml). diff --git a/package-lock.json b/package-lock.json index f0bc22cf..90b81427 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "metrics", - "version": "3.5.0-beta", + "version": "3.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "metrics", - "version": "3.5.0-beta", + "version": "3.5.0", "license": "MIT", "dependencies": { "@actions/core": "^1.2.6", diff --git a/package.json b/package.json index 667e0ac0..68f2b52e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metrics", - "version": "3.5.0-beta", + "version": "3.5.0", "description": "An image generator with 20+ metrics about your GitHub account such as activity, community, repositories, coding habits, website performances, music played, starred topics, etc. that you can put on your profile or elsewhere !", "main": "index.mjs", "scripts": { diff --git a/source/app/web/statics/app.js b/source/app/web/statics/app.js index df2740f8..4a3dc498 100644 --- a/source/app/web/statics/app.js +++ b/source/app/web/statics/app.js @@ -144,8 +144,8 @@ ` # Schedule updates (each hour)`, ` schedule: [{cron: "0 * * * *"}]`, ` # Lines below let you run workflow manually and on each commit`, - ` push: {branches: ["master", "main"]}`, ` workflow_dispatch:`, + ` push: {branches: ["master", "main"]}`, `jobs:`, ` github-metrics:`, ` runs-on: ubuntu-latest`, @@ -154,8 +154,6 @@ ` with:`, ` # Your GitHub token`, ` token: ${"$"}{{ secrets.METRICS_TOKEN }}`, - ` # GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it`, - ` committer_token: ${"$"}{{ secrets.GITHUB_TOKEN }}`, ``, ` # Options`, ` user: ${this.user }`, diff --git a/source/plugins/licenses/README.md b/source/plugins/licenses/README.md index bfc99a83..737d8ec3 100644 --- a/source/plugins/licenses/README.md +++ b/source/plugins/licenses/README.md @@ -29,7 +29,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l # ... other options template: repository user: repository-owner - query: '{"repo":"repository-name"}' + repo: repository-name plugin_licenses: yes plugin_licenses_setup: npm ci # Command to setup target repository plugin_licenses_ratio: yes # Display used licenses ratio diff --git a/source/plugins/licenses/tests.yml b/source/plugins/licenses/tests.yml index 07afc84d..6b97a4e5 100644 --- a/source/plugins/licenses/tests.yml +++ b/source/plugins/licenses/tests.yml @@ -3,7 +3,7 @@ with: token: MOCKED_TOKEN template: repository - query: '{"repo":"metrics"}' + repo: metrics plugin_licenses: yes plugin_licenses_setup: npm ci plugin_licenses_ratio: yes diff --git a/source/templates/repository/README.md b/source/templates/repository/README.md index 8adbafba..e8bf2b3d 100644 --- a/source/templates/repository/README.md +++ b/source/templates/repository/README.md @@ -16,6 +16,6 @@ Template crafted for repositories, mimicking GitHub visual identity. with: # ... other options template: classic - user: repository-owner # Optional if you're the owner of target repository - query: '{"repo":"repository-name"}' # Use a JSON encoded object to pass your repository name in "repo" key + user: repository-owner # Optional if you're the owner of target repository and you're using your own personal token + repo: repository-name # Repository name ```