Skip to content

Commit 61cab62

Browse files
authored
Fix: workflow runs time filter (#444)
The time filter for workflow runs was limited to day. The date format didn't include time. Can now see fine grained results by time: ![image](https://github.com/user-attachments/assets/c8716600-4d5d-43e6-9f61-91042a9413a3)
1 parent 4714656 commit 61cab62

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

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

3+
## [2.1.4]
4+
5+
- **Fix** - Workflow runs - date filter now filters by time
6+
37
## [2.1.3]
48

59
- **Fix** - Add mutex protection to prevent data races in datasource cache

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.3",
3+
"version": "2.1.4",
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func (client *Client) getWorkflowRuns(ctx context.Context, owner, repo, workflow
308308

309309
workflowRuns := []*googlegithub.WorkflowRun{}
310310

311-
format := "2006-01-02"
311+
format := time.RFC3339
312312
created := fmt.Sprintf("%s..%s", timeRange.From.Format(format), timeRange.To.Format(format))
313313

314314
var (

0 commit comments

Comments
 (0)