You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,36 @@ You can choose to *remove* some types of PRs from your changelog by passing the
80
80
left-most column above.
81
81
```
82
82
83
-
### Using a GitHub API token
83
+
##Use a GitHub API token
84
84
85
85
`github-activity` uses the GitHub API to pull information about a repository's activity.
86
-
You will quickly hit your API limit unless you use a personal access token. Here are
87
-
instructions to generate and use a GitHub access token for use with `github-activity`.
86
+
You will quickly hit your API limit unless you use a personal access token.
87
+
There are two ways that you can generate your own access token for use with `github-activity`, each is described below:
88
+
89
+
### Create a token using the GitHub CLI
90
+
91
+
You can use [the GitHub command line interface](https://cli.github.com/manual/) to authenticate your account and store an access token in your local environment.
92
+
To do so, download the GitHub CLI, and run the following command:
93
+
94
+
```bash
95
+
# Authenticate with GitHub via the web interface
96
+
gh auth login --web
97
+
```
98
+
99
+
This will open a web interface for you to authenticate.
100
+
When finished, it will store an access token locally, which you can print with:
101
+
102
+
```bash
103
+
# Print an access token if it is stored
104
+
gh auth status -t
105
+
```
106
+
107
+
This token will automatically be used by `github-activity` if it exists.
108
+
109
+
### Manually create your own API token
110
+
111
+
Alternativelly, you can create your own GitHub access token and store it yourself.
112
+
To do so, follow these steps:
88
113
89
114
- Create your own access token. Go to the [new GitHub access token page](https://github.com/settings/tokens/new)
90
115
and follow the instructions. Note that while working with a public repository,
@@ -101,7 +126,7 @@ instructions to generate and use a GitHub access token for use with `github-acti
101
126
for an environment variable called `GITHUB_ACCESS_TOKEN`. If it finds this variable,
102
127
it will use this in the API calls to GitHub.
103
128
104
-
## How does this tool define contributions in the reports?
129
+
## How we define contributors in the reports
105
130
106
131
GitHub Activity tries to automatically determine the unique list of contributors within
107
132
a given window of time. There are many ways to define this, and there isn't necessarily a
0 commit comments