From 7ce47afa3b7f9129387a91443cef6936574309d8 Mon Sep 17 00:00:00 2001 From: Andriy Urbanas Date: Fri, 3 Feb 2023 11:37:28 +0100 Subject: [PATCH] chore: release stargazers query type + minor docs changes --- CHANGELOG.md | 21 +++++++++++++-------- README.md | 4 +++- package.json | 2 +- src/views/ConfigEditor.tsx | 20 ++++++++++++++++---- 4 files changed, 33 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5836f4cf..91db4deb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,28 +2,33 @@ ## Entries +## [1.4.0] - 2023-02-03 + +- **Feature** - Added stargazers query type +- **Chore** - Minor documentation updates + ## [1.3.3] - 2023-01-09 -- Chore - Remove angular dependency: migrate annotation editor +- **Chore** - Removed angular dependency: migrated annotation editor ## [1.3.2] - next -- Added a `$__toDay()` macro support +- **Feature** Added `$__toDay()` macro support ## [1.3.1] 2022-12-21 -- Chore - Updated go version to latest (1.19.4) -- Chore - Updated backend grafana dependencies -- Chore - Add spellcheck +- **Chore** - Updated go version to latest (1.19.4) +- **Chore** - Updated backend grafana dependencies +- **Chore** - Added spellcheck ## [1.3.0] 2022-11-3 -- Feature - Github projects - query items, user projects -- Chore - update build to use go 1.19.3 +- **Feature** - Github projects - query items, user projects +- **Chore** - Updated build to use go 1.19.3 ## [1.2.0] 2022-10-20 -- Feature - Github projects +- **Feature** - Github projects ## [1.1.0] - next diff --git a/README.md b/README.md index dab03b9d..dfb462b7 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,9 @@ To create a new Access Token, navigate to [Personal Access Tokens](https://githu ### Provisioning [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). + #### With the [prom-operator](https://github.com/prometheus-operator/prometheus-operator) + ```yaml promop: grafana: @@ -110,7 +112,7 @@ For all repositories: - `repo:status` - `repo_deployment` - `read:packages` -- `user:read` +- `read:user` - `user:email` For Github projects: diff --git a/package.json b/package.json index 40a04eb7..81b5eb87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grafana-github-datasource", - "version": "1.3.3", + "version": "1.4.0", "description": "loads data from github issues/Pr's to Grafana", "private": true, "scripts": { diff --git a/src/views/ConfigEditor.tsx b/src/views/ConfigEditor.tsx index 460098fc..0ad03701 100644 --- a/src/views/ConfigEditor.tsx +++ b/src/views/ConfigEditor.tsx @@ -1,11 +1,18 @@ import React, { PureComponent } from 'react'; import { onUpdateDatasourceJsonDataOption, DataSourcePluginOptionsEditorProps } from '@grafana/data'; import { Input, InlineFormLabel, LegacyForms, InfoBox, Icon } from '@grafana/ui'; +import { css } from '@emotion/css'; import { GithubDataSourceOptions, GithubSecureJsonData } from '../types'; import { selectors } from 'components/selectors'; export type ConfigEditorProps = DataSourcePluginOptionsEditorProps; +const styles = { + tokenScopesList: css` + list-style-type: none; + `, +}; + export class ConfigEditor extends PureComponent { onSettingReset = (prop: string) => (event: any) => { this.onSettingUpdate(prop, false)({ target: { value: undefined } }); @@ -46,20 +53,25 @@ export class ConfigEditor extends PureComponent {

Ensure that your token has the following permissions:

For all repositories:

-            
    +
    • public_repo
    • repo:status
    • repo_deployment
    • read:packages
    • -
    -
    • read:user
    • user:email
+

For Github projects:

+
+            
    +
  • read:org
  • +
  • read:project
  • +
+

An extra setting is required for private repositories:

-            
    +
    • repo (Full control of private repositories)