Skip to content

Commit

Permalink
not so trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
jzyinq committed Jan 20, 2025
1 parent b5fb42f commit 86fa9a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Just remember to urldecode it. Save it and you should ready to go!
## [Changelog](./CHANGELOG.md)

## Todo list
- [ ] Color legend for calendar
- [ ] Fetch holidays for other years than current
- [ ] Refactor ShowError focus return
- [ ] Open issue in modal if it's the only result?
- [ ] Prompt `are you sure want to exit` on escape key
Expand Down
2 changes: 1 addition & 1 deletion gojira/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func PrepareConfig() {
JiraLogin: GetEnv("GOJIRA_JIRA_LOGIN"),
JiraToken: GetEnv("GOJIRA_JIRA_TOKEN"),
JiraAccountId: GetEnv("GOJIRA_JIRA_ACCOUNT_ID"),
TempoUrl: "https://api.tempo.io/core/3",
TempoUrl: "https://api.tempo.io/4",
TempoToken: GetEnv("GOJIRA_TEMPO_TOKEN"),
UpdateExistingWorklog: true,
}
Expand Down
2 changes: 1 addition & 1 deletion gojira/tempo.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type WorklogUpdateRequest struct {

func (tc *TempoClient) GetWorklogs(fromDate, toDate time.Time) (WorklogsResponse, error) {
// tempo is required only because of fetching worklogs by date range
requestUrl := fmt.Sprintf("%s/worklogs/user/%s?from=%s&to=%s&limit=1000",
requestUrl := fmt.Sprintf("%s/worklogs/account/%s?from=%s&to=%s&limit=1000",
tc.Url, tc.JiraAccountId, fromDate.Format(dateLayout), toDate.Format(dateLayout))
headers := map[string]string{
"Authorization": fmt.Sprintf("Bearer %s", tc.Token),
Expand Down

0 comments on commit 86fa9a0

Please sign in to comment.