Skip to content

Commit 7428ee1

Browse files
committed
fix #220: github: contributions: GitHub changed a way to provide data
1 parent 54fa48f commit 7428ee1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

internal/model/github/contribution/helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestYearRange(t *testing.T) {
5555

5656
min, max := YearRange(doc)
5757
assert.Equal(t, 2011, min)
58-
assert.Equal(t, 2023, max)
58+
assert.Equal(t, 2024, max)
5959
}
6060

6161
func load(t testing.TB, name string) *goquery.Document {

internal/pkg/http/header/set.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ func (s Setter) NoCache() Setter {
1919
h.Add(header.CacheControl, "must-revalidate")
2020
h.Set("Pragma", "no-cache")
2121
h.Set("Expires", "0")
22+
h.Set("X-Requested-With", "XMLHttpRequest")
2223
return s
2324
}

internal/service/github/contribution.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"go.octolab.org/toolset/maintainer/internal/pkg/url"
1818
)
1919

20-
var overview = url.MustParse("https://github.com?tab=overview")
20+
var overview = url.MustParse("https://github.com?controller=profiles&action=show&tab=contributions")
2121

2222
func (srv *Service) ContributionHeatMap(
2323
ctx context.Context,

0 commit comments

Comments
 (0)