1. 10 May, 2022 1 commit
    • silverwind's avatar
      Update go tool dependencies (#19676) · 318f3602
      silverwind authored
      * Update go tool dependencies
      
      Updated all tool dependencies to latest tags, hoping CI will like it.
      
      * fix new lint errors
      
      * handle more strings.Title cases
      
      * remove lint skip
      318f3602
  2. 01 Apr, 2022 1 commit
    • wxiaoguang's avatar
      Refactor legacy `unknwon/com` package, improve golangci lint (#19284) · 65f17bfc
      wxiaoguang authored
      The main purpose is to refactor the legacy `unknwon/com` package.
      1. Remove most imports of `unknwon/com`, only `util/legacy.go` imports the legacy `unknwon/com`
      2. Use golangci's depguard to process denied packages
      3. Fix some incorrect values in golangci.yml, eg, the version should be quoted string `"1.18"`
      4. Use correctly escaped content for `go-import` and `go-source` meta tags
      5. Refactor `com.Expand` to our stable (and the same fast) `vars.Expand`, our `vars.Expand` can still return partially rendered content even if the template is not good (eg: key mistach).
      65f17bfc
  3. 21 Mar, 2022 1 commit
  4. 16 Mar, 2022 2 commits
  5. 12 Feb, 2022 1 commit
  6. 20 Jan, 2022 1 commit
    • 6543's avatar
      format with gofumpt (#18184) · 54e9ee37
      6543 authored
      * gofumpt -w -l .
      
      * gofumpt -w -l -extra .
      
      * Add linter
      
      * manual fix
      
      * change make fmt
      54e9ee37
  7. 02 Jan, 2022 1 commit
  8. 18 Nov, 2021 1 commit
  9. 17 Nov, 2021 2 commits
  10. 11 Nov, 2021 1 commit
  11. 24 Sep, 2021 1 commit
    • Lunny Xiao's avatar
      Move login related structs and functions to models/login (#17093) · 5842a55b
      Lunny Xiao authored
      * Move login related structs and functions to models/login
      
      * Fix test
      
      * Fix lint
      
      * Fix lint
      
      * Fix lint of windows
      
      * Fix lint
      
      * Fix test
      
      * Fix test
      
      * Only load necessary fixtures when preparing unit tests envs
      
      * Fix lint
      
      * Fix test
      
      * Fix test
      
      * Fix error log
      
      * Fix error log
      
      * Fix error log
      
      * remove unnecessary change
      
      * fix error log
      
      * merge main branch
      5842a55b
  12. 08 Jun, 2021 1 commit
  13. 07 May, 2021 1 commit
  14. 09 Mar, 2021 1 commit
  15. 26 Jan, 2021 1 commit
  16. 08 Dec, 2020 1 commit
  17. 13 Nov, 2020 1 commit
  18. 11 Oct, 2020 1 commit
  19. 29 Sep, 2020 1 commit
  20. 02 Feb, 2020 1 commit
  21. 02 Nov, 2019 1 commit
    • 6543's avatar
      Add API for Issue set Subscription (#8729) · 5a187f4b
      6543 authored
      
      * add issue subscriber API
      
      * subscribers return []user.APIFormat
      
      * add comments
      
      * more meaningfull description
      
      * without "reqToken()" api works ...
       * should be still secure beause ctx.user has to be there or nothing will hapen
      
      * FIX: getIssueWatchers() get only aktive suscriber
      
      * add return avter error on right position
      
      * Revert "FIX: getIssueWatchers() get only aktive suscriber"
      
      This reverts commit 5eca9291858a821981992b0aaa38cef610d84bca.
      
      * Update routers/api/v1/repo/issue.go
      Co-Authored-By: default avatarguillep2k <18600385+guillep2k@users.noreply.github.com>
      
      * test go linter again
      
      * update swagger
      
      * GetIssueWatchers -> GetIssueSubscribers
      
      part one
      Co-Authored-By: default avatarguillep2k <18600385+guillep2k@users.noreply.github.com>
      
      * GetIssueWatchers -> GetIssueSubscribers
      part two
      
      * Revert "test go linter again"
      
      This reverts commit bab12356227e44334de113b76f12099de0b8aaa6.
      
      * change description for unsubscribe too
      
      * golangci-lint timeout avter 5min
      
      * move issueSubscription to seperate file
      
      * dont create black entitys
      
      * use IsWatching until refactoring
      
      * Update License Info
      
      * better swagger description
      
      * Update .golangci.yml
      
      because functions moved from issue.go to issue_subscription.go
      
      * add IssueWatchList type
      
      * batch tasks
      
      * use e Engien
      
      * add error handling
      
      * error should be the last type when returning multiple items
      
      * short version
      
      * reurn empy UserList instead of nil
      5a187f4b
  22. 08 Oct, 2019 1 commit
  23. 23 Aug, 2019 1 commit
  24. 14 Aug, 2019 1 commit
  25. 12 Jun, 2019 1 commit