aboutsummaryrefslogtreecommitdiff
path: root/models/repo.go
Commit message (Collapse)AuthorAge
* internal: move packages under this directory (#5836)Unknwon2019-10-24
| | | | | | | | | | | | | | | | | | * Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version
* Enable Go modules (#5835)Unknwon2019-10-23
| | | | | | | | | | | | | | | | * Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
* models/repo: idiomatic English (#5678)Tekaoh2019-04-11
| | | | | | | | * Idiomatic English * Even better English
* models: rename Id to IDUnknwon2018-08-16
|
* repo: fix issue of fork repository no check the limit of users' repository ↵GeekComb2018-07-18
| | | | (#5346)
* repo: add changes to repository avatar feature (#5221)Unknwon2018-06-17
|
* repo: support avatars (#5221)Sergey Dryabzhinsky2018-06-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First code for repository avatars * Last code for repository avatars - add new option for repo avatars location on filesystem - add route catch in web - add new fields to repo model - add migration - update settings handlers - update repo header template * Update locale messages * Add repo avatars to home page * Add repo avatars to organization right panel * Show repo avatars in repo list * Remove AvatarEamil field, remove Gravatar support, use generic locale messages * Fix migration * Fix seed and not used tool * Revert public css changes, add them to less files * Latest lessc (2.6.0) don't put result into file but output to stdout So redirect output to file * Simplify things: - migration don't needed, and table changes too - just upload file to repo avatar storage - or generate random image * Fix repo image seed - name not unique * Get rid of not needed model fields * Class value is enough, remove height attribute * Don't generate random avatar for repository - use html and semantic ui icons if no avatar found * Update styles and templates for repo - use repo icon as default avatar - use globe icon for public repos - add micro style for repo avatars at dashboard * Remvoe redundant empty line * Fix nl2br filter - must return string * Fix css style for micro-repo-avatar in dashboard list * Remove `|len`, works fine w/o it. * Update after review 2: - use static route for repository avatar - format images settings block in settings * Update after review 2: - no random avatar for repo * Update after review 2: - no random avatar for repo 2 - update imports - update UploadAvatar* functions * Update after review 2: - update templates * Fix trace call * Remove unused immport since we use static route for repo avatars.
* modes/repo: syntax fix for PR #5234Unknwon2018-06-16
|
* repo: show in search if any part is public (#5234)James2018-06-16
| | | if repo is private but wiki and/or issue are public show repo in search
* repo: clean up webhook and hook_task when delete repository (#5239)奶爸2018-06-11
|
* repo: update repository description field to contain more than 256 symbols ↵Sergey Dryabzhinsky2018-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#5219) * Update repository description field to contain more than 256 symbols - update repository model - description field now is `TEXT` and limited by 4000 symbols - new migration - add description to html forms - repo creation and repo settings - add translation for description * Update for description field, new features - add autosize (height) for description textarea, new plugin - set max description length to 512 symbols - update locales * Fix migration - typo in var * Update repo description behaviour - add textarea autosize for /repo/create - add symbols counter under description testarea (create/edit) * Fix function definition - it a var * Revert ru-RU locale * Update by review - Use type `varchar(512)` in migration - Remove unused files from autosize plugin * Fix migration - new project paths * Fixes after review 2 - copyright year - format includes - use switch instead of multi-if * Remove unused `default:` option.
* models: skip JSON for fields skipped by XORMUnknwon2018-06-09
| | | | Reduce output JSON size by backup command
* mirror: show sync feeds on dashboard (#2017)Unknwon2018-05-30
|
* *: rename "gogits" to "gogs"Unknwon2018-05-27
|
* security: fix path cleanup for repository init and editor (#5207)Lauris BH2018-05-08
| | | Reported by Kacper Szurek https://security.szurek.pl/.
* api: fix nil pointer dereference on repo/forks (#4633)Dennis Chen2018-03-12
| | | | | | | | | Sets BaseRepo value for each resulting fork in GetForks(). Finds correct permissions for parent repository in APIFormat(). The output JSON is a little redundant, perhaps we should offer a different view of the api.Repository without the Parent attribute? Signed-off-by: Dennis Chen <barracks510@gmail.com>
* pull_request: able to ignore whitespace when check conflict (#4834)Unknwon2017-11-16
|
* repo/pull: allow rebase before merging (#4805)Unknwon2017-11-15
|
* pull: add an option to use rebase for merging pull requestsmharinder2017-11-15
| | | | | | | | | | | | | | | | For DVCS, either merge or rebase works for getting new code in a pull request in the main branch. The rebase workflow produces a linear history which is cleaner, and more bisect-able. This commit adds a repo-level option to enable the rebase workflow. Once enabled, "Merge Pull Request" will be replaced by "Rebase and Merge Pull Request" which does exactly what the user wants. It's unlikely a project wants a mixed-use of both rebase and merge workflows, therefore the feature is not implemented as a drop-down button like what GitHub does (https://github.com/blog/2243-rebase-and-merge-pull-requests).
* routes/home: minor code improveUnknwon2017-07-18
|
* explore: fix total repository number and page number do not match (#4441)Unknwon2017-07-18
| | | | | Because in the final repository list we use Distinct to remove duplicates, but didn't do so when count total number of repositories.
* repo: fix cannot fork repository (#4572)Unknwon2017-07-18
| | | | Should not load attributes if repository not found in HasForkedRepo.
* repo: fix panic on pull request submit (#4572)Unknwon2017-07-14
|
* api/repo: load attributes when listing user repositories (#4565)Unknwon2017-06-21
|
* Refactoring: remove sessionRelease()Unknwon2017-06-11
| | | | XORM supports automatic roll back in session Close() already.
* random: some code simplifyUnknwon2017-06-11
|
* repo: change action visibility when repository visibility changed (#4414)Unknwon2017-06-11
|
* repo: load base repository for loadAttributesUnknwon2017-06-08
|
* models/repo: modify keyword search to include description for #4287 (#4548)Simon Dann2017-06-06
| | | | | | * Modified repository keyword search to include description for #4287 * Replacing Where with And for #4548
* repo: expose more fields to API format (#4484)Unknwon2017-06-02
|
* models: remove redundant tags for primary keysUnknwon2017-05-21
|
* api/repo: add Mirror field (#4392)Unknwon2017-04-07
|
* api/repo: improve migration error handlingUnknwon2017-04-07
|
* pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}Unknwon2017-04-06
|
* Refactoring: rename modules -> pkgUnknwon2017-04-04
| | | | | | | | Reasons to change: 1. Shorter than 'modules' 2. More generally used by other Go projects 3. Corresponds to the naming of '$GOPATH/pkg' directory
* vendor: update github.com/gogits/git-moduleUnknwon2017-04-03
|
* repo: handle git.ErrUnsupportedVersion error typeUnknwon2017-04-01
|
* modules: rename markdown -> markupUnknwon2017-03-31
| | | | | | | To further support more markup languages (e.g. Org-mode, AsciiDoc, reStructuredText), the name 'markdown' is inappropriate. This is the first step towards more markup language support.
* models/repo: avoid duplicated results in SearchRepositoryByName (#4344)Pablo Saavedra2017-03-26
|
* repo: cleanup some codeUnknwon2017-03-24
|
* repo: allow private repository to have public wiki or issuesUnknwon2017-03-24
| | | | Relates to #649 and #2157
* repo: update size after fork, migrate and mirror sync (#4336)Unknwon2017-03-24
|
* repo: remove legacy sanitizer for repository descriptionUnknwon2017-03-23
| | | | Related to #4329.
* repo: fix unable to propose pull request from secondary fork (#4324)Unknwon2017-03-23
|
* user/settings: complete repositories panel (#4312)Unknwon2017-03-23
|
* error: move ErrRepoNotExist -> errors.RepoNotExistUnknwon2017-03-23
|
* explore: able list and search for private but accessible repositories (#3088)Unknwon2017-03-17
|
* repo: allow issues and wiki for bare repository (#4104)Unknwon2017-03-16
|
* repo/commit: able to config default commits page size (#4230)Unknwon2017-03-16
| | | | Added config option '[ui.user] COMMITS_PAGING_NUM'.
* models/repo: minor code style and comment fix (#4273)Unknwon2017-03-13
|