Skip to content

Commit 98a1eb2

Browse files
authored
chore: release stargazers query type + minor docs changes (#206)
1 parent b885ec6 commit 98a1eb2

File tree

4 files changed

+33
-14
lines changed

4 files changed

+33
-14
lines changed

CHANGELOG.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,33 @@
22

33
## Entries
44

5+
## [1.4.0] - 2023-02-03
6+
7+
- **Feature** - Added stargazers query type
8+
- **Chore** - Minor documentation updates
9+
510
## [1.3.3] - 2023-01-09
611

7-
- Chore - Remove angular dependency: migrate annotation editor
12+
- **Chore** - Removed angular dependency: migrated annotation editor
813

914
## [1.3.2] - next
1015

11-
- Added a `$__toDay()` macro support
16+
- **Feature** Added `$__toDay()` macro support
1217

1318
## [1.3.1] 2022-12-21
1419

15-
- Chore - Updated go version to latest (1.19.4)
16-
- Chore - Updated backend grafana dependencies
17-
- Chore - Add spellcheck
20+
- **Chore** - Updated go version to latest (1.19.4)
21+
- **Chore** - Updated backend grafana dependencies
22+
- **Chore** - Added spellcheck
1823

1924
## [1.3.0] 2022-11-3
2025

21-
- Feature - Github projects - query items, user projects
22-
- Chore - update build to use go 1.19.3
26+
- **Feature** - Github projects - query items, user projects
27+
- **Chore** - Updated build to use go 1.19.3
2328

2429
## [1.2.0] 2022-10-20
2530

26-
- Feature - Github projects
31+
- **Feature** - Github projects
2732

2833
## [1.1.0] - next
2934

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ To create a new Access Token, navigate to [Personal Access Tokens](https://githu
4848
### Provisioning
4949

5050
[It’s possible to configure data sources using config files with Grafana’s provisioning system](https://grafana.com/docs/grafana/latest/administration/provisioning/#data-sources).
51+
5152
#### With the [prom-operator](https://github.com/prometheus-operator/prometheus-operator)
53+
5254
```yaml
5355
promop:
5456
grafana:
@@ -110,7 +112,7 @@ For all repositories:
110112
- `repo:status`
111113
- `repo_deployment`
112114
- `read:packages`
113-
- `user:read`
115+
- `read:user`
114116
- `user:email`
115117

116118
For Github projects:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "grafana-github-datasource",
3-
"version": "1.3.3",
3+
"version": "1.4.0",
44
"description": "loads data from github issues/Pr's to Grafana",
55
"private": true,
66
"scripts": {

src/views/ConfigEditor.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
import React, { PureComponent } from 'react';
22
import { onUpdateDatasourceJsonDataOption, DataSourcePluginOptionsEditorProps } from '@grafana/data';
33
import { Input, InlineFormLabel, LegacyForms, InfoBox, Icon } from '@grafana/ui';
4+
import { css } from '@emotion/css';
45
import { GithubDataSourceOptions, GithubSecureJsonData } from '../types';
56
import { selectors } from 'components/selectors';
67

78
export type ConfigEditorProps = DataSourcePluginOptionsEditorProps<GithubDataSourceOptions, GithubSecureJsonData>;
89

10+
const styles = {
11+
tokenScopesList: css`
12+
list-style-type: none;
13+
`,
14+
};
15+
916
export class ConfigEditor extends PureComponent<ConfigEditorProps> {
1017
onSettingReset = (prop: string) => (event: any) => {
1118
this.onSettingUpdate(prop, false)({ target: { value: undefined } });
@@ -46,20 +53,25 @@ export class ConfigEditor extends PureComponent<ConfigEditorProps> {
4653
<p>Ensure that your token has the following permissions:</p>
4754
<h4>For all repositories:</h4>
4855
<pre>
49-
<ul>
56+
<ul className={styles.tokenScopesList}>
5057
<li>public_repo</li>
5158
<li>repo:status</li>
5259
<li>repo_deployment</li>
5360
<li>read:packages</li>
54-
</ul>
55-
<ul>
5661
<li>read:user</li>
5762
<li>user:email</li>
5863
</ul>
5964
</pre>
65+
<h4>For Github projects:</h4>
66+
<pre>
67+
<ul className={styles.tokenScopesList}>
68+
<li>read:org</li>
69+
<li>read:project</li>
70+
</ul>
71+
</pre>
6072
<h4>An extra setting is required for private repositories:</h4>
6173
<pre>
62-
<ul>
74+
<ul className={styles.tokenScopesList}>
6375
<li>repo (Full control of private repositories)</li>
6476
</ul>
6577
</pre>

0 commit comments

Comments
 (0)