Skip to content

Commit b826584

Browse files
zoltanbedilehmanju
andauthored
Fix: Enterprise url in app auth and release 2.1.1 (#430)
This is a fix created by @lehmanju. Thank you fixes #426 --------- Co-authored-by: Julius Lehmann <[email protected]>
1 parent 99eafd2 commit b826584

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [2.1.1]
4+
5+
- **Fix** - GitHub enterprise url wrong with app authentication
6+
- **Chore** - Bump github.com/grafana/grafana-plugin-sdk-go to 0.268.1
7+
38
## [2.1.0]
49

510
- **Feature** - Add a new query to retrieve Workflow runs

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": "2.1.0",
3+
"version": "2.1.1",
44
"private": true,
55
"description": "The GitHub data source plugin for Grafana lets you to query the GitHub API in Grafana so you can visualize your GitHub repositories and projects.",
66
"repository": "github:grafana/github-datasource",

pkg/github/client/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ func createAppClient(settings models.Settings) (*Client, error) {
8888
}, nil
8989
}
9090

91+
itr.BaseURL = settings.GitHubURL
92+
9193
return useGitHubEnterprise(httpClient, settings)
9294
}
9395

0 commit comments

Comments
 (0)