Commit Graph

241 Commits (251fb935ff39520482a5436b19bc04352ea25db7)

Author SHA1 Message Date
Sandro Santilli 447c9b428f Send notifications to partecipants in issue comments ()
* Send notifications to partecipants in issue comments

Closes 

Includes test (still failing)

* Do not include "labelers" to participants

Fix test to expect what GetParticipants return
Ethan Koenig 09fe4a2ae9 Batch updates for issues ()
Ethan Koenig 021904e4e6 Fix typos in models/ and modules/ ()
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
Bo-Yi Wu d76d67de23 feat: expose url field on issue api. ()
* Add api url func.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix: Add unit testing.

* fix: conflicts

* fix: remove trim

* fix: revert test function name.
Ethan Koenig 22f7aa6e9c LableIDs -> LabelIDs ()
Ethan Koenig cf80e19157 Optimize and unit test Issue_ReplaceLabels ()
Lunny Xiao 1f7837d6d6 Refactor for issues loadattributes of a repository ()
* refactor for issues loadattributes of a repository

* refactors
Lunny Xiao 847527fd6d Fix all the bugs in issues and pulls on dashboard ()
* fix all the bugs in issues and pulls on dashboard

* small fix and refactor

* add method getRepoIDs for IssueList
Lunny Xiao 7a9a5c8a69 Fix assigned issues dashboard ()
* Fix assigned/created issues in dashboard. ()

* Fix assigned/created issues in dashboard.

* Use GetUserIssueStats for getting all Dashboard stats.

* Use gofmt to format the file properly.

* Replace &Issue{} with new(Issue).

* Check if user has access to given repository.

* Remove unnecessary filtering of issues.

* Return 404 error if invalid repository is given.

* Use correct number of issues in paginater.

* fix issues on dashboard
Ethan Koenig 076f940f1f Fix logging bug
Error logged everytime an assignee was removed
Lunny Xiao cf0f451c37 Add delete branch track on pull request comments ()
* add delete branch track on pull request comments

* don't change vendor
Lunny Xiao b6dd6210ea bug fixed for issue count ()
Ethan Koenig a6751cec04 Unit tests for issue_milestone ()
Ethan Koenig e6b4448ba3 Fix bug in Issue.GetIsRead ()
Lunny Xiao f35b20b042 track issue title changes ()
Ethan Koenig d0960b8035 Move IssueUser code to separate file ()
Also add unit tests
Lunny Xiao 3e0525b47d Track assignee for issue ()
* track assignee for issue

* fix lint

* use getUserByID instead Get
Ethan Koenig 68bdaf0a6b Drop redundant columns from issue_user table ()
Lunny Xiao 081485ecfd add milestone changed traker on issue view ()
Ethan Koenig 10644d6dd7 Bug fixes and unit tests for models/issue_label ()
Lunny Xiao f94869d2d1 Track labels changed on issue view & resolved ()
* track labels changed on issue view & resolved 

* add missing head comment & sort & fix refresh
Andrey Nering 5348e8b71a Fix color: closed PR was showing as purple instead of red
Lunny Xiao 8c2381103a bug fixed issues 500 resolved ()
Ethan Koenig 833f8b94c2 Search bar for issues/pulls ()
Philip Couling 1610b9f547 Spun attachments into seperate go file ()
Moved attachments into seperate go file
Andrey Nering 769e0a3ea6 Notifications: mark as read/unread and pin ()
* Use relative URLs

* Notifications - Mark as read/unread

* Feature of pinning a notification

* On view issue, do not mark as read a pinned notification
Andrey Nering 03b45284e1 Merge pull request from ethantkoenig/tests/pull
Unit tests for models/pull.go
Andrey Nering 84b7d29d34 Create missing database indexes ()
Ethan Koenig 72bfabfada Unit tests for models/pull.go
Bo-Yi Wu 6510e57758 fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Andrey Nering 42904cb98a Notification - Step 1 ()
* Notification - Step 1

* Add copyright headers

* Cache issue and repository on notification model
Bwko a345a03d99 Added sorting to the labels & milestones page ()
Ethan Koenig d0932ef147 Bug fixes for Issues filters ()
Correctly handle simultaneous assignee/poster filters, and conflicting assignee filters
Lunny Xiao 0c5c34d7dd UpdateIssueUsersByMentions was calling database write operations while ()
a transaction session was in progress. MailParticipants was failing
silently because of the SQLITE_LOCKED error. Make sure failures in
MailParticipants enter the log, and pass on the transaction context.

issue: let caller pass in database context, and use it
issue_comment: obtain database context to pass to UpdateIssueMentions
issue_comment: log any error from call to MailParticipants
issue_mail: pass on database context to UpdateIssueMentions
Ethan Koenig 4c89a9c33c Bug fixes and tests for modules/base ()
Also address other TODOs
Lunny Xiao 7c46667e71 fixed vulnerabilities labels ()
Ethan Koenig 04b9a7e7a2 Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
Kim "BKC" Carlbäcker 0f05470cb8 [API] Pull Requests ()
Kim "BKC" Carlbäcker 42ec5ce740 Fix breakage from vendor-update
Thomas Boerger e9c6053b86 Merge pull request from Bwko/fix/typo
Fix typos
Sandro Santilli 8aa960f129 Actually document the missing bits
Sandro Santilli 4dd1eb57bd Lint issue.go
Bwko 2a449bd4b1 Fix typos
Lunny Xiao 3dedc027ac Bug fixed for issues ()
Lunny Xiao 30a37311f8 use in instead string join ()
Thibault Meyer ddee4c8b58
Normalize files with gofmt
Sandro Santilli a1c5f02444 Fix import path of go-sdk ()
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
Thibault Meyer b0ddced2b5
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
#	models/git_diff.go
#	models/issue.go
#	models/org.go
#	models/pull.go
#	models/repo.go
Thibault Meyer a4454f5d0f
Rewrite XORM queries