docs: update images (close #860) [skip ci]
This commit is contained in:
@@ -8,7 +8,8 @@ While *metrics* targets mainly user accounts, it's possible to render metrics fo
|
||||
|
||||
Setup is mostly the same as for user accounts. A personal access token from an user account is required excepted that `read:org` scope must be enabled, **whether you are member of the target organization or not**.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
`user` option will need to be set to organization name instead.
|
||||
|
||||
@@ -33,7 +34,8 @@ It is possible to host workflows in the `.github` repository of organizations, a
|
||||
By default, GitHub only display public memberships.
|
||||
Membership visibility canbe managed in the `People` tab of your organization.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
> ⚠️ Seeing your organization membership in your profile **does not** mean that it is visible from other users! You can check this by viewing your profile in an private browser window.
|
||||
|
||||
|
||||
@@ -6,11 +6,13 @@ Setup a GitHub Action which runs periodically and pushes generated images to a r
|
||||
|
||||
Create a repository with the same name as your GitHub login (if it doesn't exist).
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Its `README.md` will be displayed on your user profile:
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## 1️ Create a GitHub personal token
|
||||
|
||||
@@ -27,11 +29,13 @@ A a general rule, the following scopes may be required:
|
||||
|
||||
> 💡 For security reasons, it is advised to always use the least amount of scopes. It is possible to prevent security issues by [forking this repository](https://github.com/lowlighter/metrics/fork) and using it in your workflow instead (more information available in step 3)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
A scope-less token can still display private contributions by enabling `Include private contributions on my profile` in account settings:
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
When a plugin has not enough scopes to operate (and `plugins_errors_fatal` is disabled), an error will be reported in the rendering like below:
|
||||
|
||||
@@ -41,7 +45,8 @@ When a plugin has not enough scopes to operate (and `plugins_errors_fatal` is di
|
||||
|
||||
Go to the `Settings` of your repository and to create a new secret and paste your freshly generated GitHub token there.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## 3️ Setup GitHub Action workflow
|
||||
|
||||
@@ -67,7 +72,8 @@ jobs:
|
||||
|
||||
Rendered metrics will be committed to repository on each run.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
### 3️.1️ Choosing between `@latest`, `@master`/`@main`, a fork or a pinned version
|
||||
|
||||
|
||||
@@ -6,11 +6,13 @@ For convenience, a free shared instance is available at [metrics.lecoq.io](https
|
||||
|
||||
Create a repository with the same name as your GitHub login (if it doesn't exist).
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Its `README.md` will be displayed on your user profile:
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## 2️ Configure *metrics*
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@ No additional scopes are required.
|
||||
|
||||
> 💡 For security reasons, it is advised to use a scope-less token for web instances.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## 2️ Configure *metrics*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user