summaryrefslogtreecommitdiffstats
path: root/models/issue_label.go
Commit message (Collapse)AuthorAgeFilesLines
* extract some inline functions related with create comment (#8931)Lunny Xiao2019-11-151-2/+15
|
* Allow cross-repository dependencies on issues (#7901)Brad Albright2019-10-311-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * in progress changes for #7405, added ability to add cross-repo dependencies * removed unused repolink var * fixed query that was breaking ci tests; fixed check in issue dependency add so that the id of the issue and dependency is checked rather than the indexes * reverted removal of string in local files becasue these are done via crowdin, not updated manually * removed 'Select("issue.*")' from getBlockedByDependencies and getBlockingDependencies based on comments in PR review * changed getBlockedByDependencies and getBlockingDependencies to use a more xorm-like query, also updated the sidebar as a result * simplified the getBlockingDependencies and getBlockedByDependencies methods; changed the sidebar to show the dependencies in a different format where you can see the name of the repository * made some changes to the issue view in the dependencies (issue name on top, repo full name on separate line). Change view of issue in the dependency search results (also showing the full repo name on separate line) * replace call to FindUserAccessibleRepoIDs with SearchRepositoryByName. The former was hardcoded to use isPrivate = false on the repo search, but this code needed it to be true. The SearchRepositoryByName method is used more in the code including on the user's dashboard * some more tweaks to the layout of the issues when showing dependencies and in the search box when you add new dependencies * added Name to the RepositoryMeta struct * updated swagger doc * fixed total count for link header on SearchIssues * fixed indentation * fixed aligment of remove icon on dependencies in issue sidebar * removed unnecessary nil check (unnecessary because issue.loadRepo is called prior to this block) * reverting .css change, somehow missed or forgot that less is used * updated less file and generated css; updated sidebar template with styles to line up delete and issue index * added ordering to the blocked by/depends on queries * fixed sorting in issue dependency search and the depends on/blocks views to show issues from the current repo first, then by created date descending; added a "all cross repository dependencies" setting to allow this feature to be turned off, if turned off, the issue dependency search will work the way it did before (restricted to the current repository) * re-applied my swagger changes after merge * fixed split string condition in issue search * changed ALLOW_CROSS_REPOSITORY_DEPENDENCIES description to sound more global than just the issue dependency search; returning 400 in the cross repo issue search api method if not enabled; fixed bug where the issue count did not respect the state parameter * when adding a dependency to an issue, added a check to make sure the issue and dependency are in the same repo if cross repo dependencies is not enabled * updated sortIssuesSession call in PullRequests, another commit moved this method from pull.go to pull_list.go so I had to re-apply my change here * fixed incorrect setting of user id parameter in search repos call
* Add 'Alt + click' feature to exclude labels (#8199)jaqra2019-10-231-1/+5
| | | | Add 'Alt + click' and 'Alt +enter' feature to exclude particular labels on searching for issues.
* Fix extra columns from `label` table (#8633)guillep2k2019-10-231-4/+4
| | | | | | | | | | * Fix extra fields from database * Add migration to drop unneeded columns * Fix lint * Make sure the columns exist
* Upgrade xorm to v0.8.0 (#8536)Lunny Xiao2019-10-171-1/+1
|
* Fix label count (#8267)Lunny Xiao2019-09-241-9/+15
| | | | | | | | | | | | | | * fix label count * fix vendor * fix import order * update xorm to fix bug * fix tests * fix mssql bug
* Add option to initialize repository with labels (#6061)John Olheiser2019-09-081-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add optional label sets on repo creation * Fix CRLF * Instead of hardcoding default, make it the helper * Move label set init out of repo init Add a new error for the router Combine router label init with repo creation label init Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add issue labels to Swagger for repo creation Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update models/issue_label.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Update models/issue_label.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Use gitea forked macaron (#7933)Tamal Saha2019-08-231-2/+2
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Add missing description of label on API (#7159)Lunny Xiao2019-06-161-3/+4
| | | | | | | | * add missing description of label on API * fix comment head * fix swagger
* Add golangci (#6418)kolaente2019-06-121-8/+0
|
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-111-1/+1
| | | | | | | | | | | | * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Add label names as filter in issue search api (#5946)Lanre Adelowo2019-02-041-1/+14
|
* Add the ability to use multiple labels as filters(#5786)Lauris BH2019-01-221-0/+21
|
* Remove check for negative length (#5120)Oleg Kovalov2018-10-201-1/+1
|
* Add label descriptions (#3662)Lauris BH2018-03-131-5/+14
| | | | | | * Add label descriptions * Add default descriptions to label template
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-2/+2
|
* Load label ID in NewLabels (#2045)Ethan Koenig2017-06-251-3/+22
|
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-4/+4
|
* small optimization for get issue labelsLunny Xiao2017-02-121-17/+4
|
* Bug fixed for deleted label in issue comment (#904)Lunny Xiao2017-02-111-0/+5
| | | | | | * bug fixed for deleted label in issue comment * fix indent
* Bug fixes and unit tests for models/issue_label (#802)Ethan Koenig2017-02-011-11/+8
|
* Track labels changed on issue view & resolved #542 (#788)Lunny Xiao2017-01-301-10/+26
| | | | | | * track labels changed on issue view & resolved #542 * add missing head comment & sort & fix refresh
* Fix typos in models/ (#576)Ethan Koenig2017-01-051-1/+1
|
* Added sorting to the labels & milestones page (#199)Bwko2016-12-241-5/+15
|
* LintingKim "BKC" Carlbäcker2016-12-021-1/+1
|
* GitHub API Compliance (& linting)Kim "BKC" Carlbäcker2016-12-021-1/+27
|
* Lint/issue &mail (#243)Bwko2016-11-251-3/+4
| | | | | | * Lint models/release.go * Lint models/ issue_label, issue_mail & mail.go
* use in instead string join (#155)Lunny Xiao2016-11-121-4/+2
|
* Fix import path of go-sdk (#141)Sandro Santilli2016-11-111-1/+1
| | | | From code.gitea.io/go-sdk/gitea To code.gitea.io/sdk/gitea
* Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queriesThibault Meyer2016-11-101-2/+2
|\ | | | | | | | | | | | | | | | | # Conflicts: # models/git_diff.go # models/issue.go # models/org.go # models/pull.go # models/repo.go
| * Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | | | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* | Rewrite XORM queriesThibault Meyer2016-11-101-5/+21
|/
* Replaced go-gogs-client with go-sdk importsThomas Boerger2016-11-071-1/+1
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-1/+1
|
* #3459 code quality improvementUnknwon2016-08-291-3/+38
|
* label: adjust forecolor boundaryUnknwon2016-08-271-1/+1
|
* Fix #3189: Sort labels by name (#3446)Thibault Meyer2016-08-251-3/+3
| | | | | | * Fix #3189 #3445: Order labels by name * Order labels by name on Issues view
* #2246 fully support of webhooks for pull requestUnknwon2016-08-141-2/+12
|
* #3290 better code structure and batch minor improvementsUnknwon2016-08-031-20/+73
|
* Minor fix for #2710Unknwon2016-02-271-0/+234