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
The tool uses the GitHub token to authorize user's call to API.
6
+
The token can be stored in the `~/.elastic/github.token` file or passed via the `GITHUB_TOKEN` environment variable.
7
+
8
+
Here are the instructions on how to create your own personal access token (PAT): [GitHub docs - Creating a personal access token][1].
9
+
10
+
Make sure you have enabled the following scopes:
11
+
*`public_repo` — to open pull requests on GitHub repositories.
12
+
*`read:user` and `user:email` — to read your user profile information from GitHub.
13
+
14
+
**NOTE**: Elastic GitHub organization uses SAML authentication, due to this PAT cannot be used for Elastic related repositories **unless authorized**.
15
+
After creating or modifying your personal access token, authorize the token for use of the Elastic organization: [GitHub docs - Authorizing a personal access token for use with SAML single sign-on][2].
Copy file name to clipboardExpand all lines: docs/usage.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,8 @@ The fragment is created from the template available in [`../internal/changelog/f
33
33
34
34
### Previewing the changelog
35
35
36
+
These steps require [GitHub Authentication](./github-authentication.md).
37
+
36
38
From the repository root folder build the consolidated changelog with:
37
39
38
40
```
@@ -61,13 +63,17 @@ You may also be interested in viewing the changelog for unreleased changes.
61
63
62
64
### Ensuring Changelog Fragment presence in PRs
63
65
66
+
These steps require [GitHub Authentication](./github-authentication.md).
67
+
64
68
`elastic-agent-chagelog-tool` has a dedicated command for this: `pr-has-fragment`.
65
69
Given a PR number this command checks for presence of an added Changelog Fragment.
66
70
67
71
For futrher details look at command usage: `elastic-agent-changelog-tool pr-has-fragment --help`
68
72
69
73
### Previewing the changelog
70
74
75
+
These steps require [GitHub Authentication](./github-authentication.md).
76
+
71
77
From the repository root folder build the consolidated changelog with:
72
78
73
79
```
@@ -84,6 +90,8 @@ An example is [`../changelog/0.1.0.yaml`](../changelog/0.1.0.yaml).
84
90
85
91
### Including the changelog in a pre-release version
86
92
93
+
These steps require [GitHub Authentication](./github-authentication.md).
94
+
87
95
Pre-release versions are development releases, it's worth including the changelog but as they are not stable releases, you should not remove the fragments.
88
96
The side effect is that the changelog will include all entries from latest stable release up to current pre-release, but in the end this correctly reflects the content of the provided pre-release.
89
97
@@ -101,6 +109,8 @@ The side effect is that the changelog will include all entries from latest stabl
101
109
102
110
### Preparing the changelog
103
111
112
+
These steps require [GitHub Authentication](./github-authentication.md).
113
+
104
114
* Wait for the last BC of the release. If another BC is generated after that or a patch version for a previous minor is released, you might need to restart the process.
0 commit comments