| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
| |
Fix #6271
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Replace linkRegex with xurls library
Rather than maintaining a complicated regex to match URLs for
autolinking, gitea can use this existing go library that takes care of
the matching with very little code change to gitea itself. After
spending a while trying to find the perfect regex for all cases this library
still works better as it is more flexible than a single regex ever will be.
This will also fix the following issues: #5844 #3095 #3381
This passes all our current tests and I've added new ones mentioned in
those issues as well.
* Use xurls.StrictMatchingScheme instead of xurls.Strict
This is much faster and we only care about https? links to preserve
existing behavior.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The visitLinksForShortLinks feature would look inside of an <a> tag and
run shortLinkProcessorFull on any text, which attempts to create links
out of potential 'short links' like [[test]] [[link|example]] etc...
This makes no sense because you can't have nested links within an <a>
tag. Specifically, the html5 standard says <a> tags can't include
interactive content if they contain the href attribute:
http://w3c.github.io/html/single-page.html#the-a-element
And also defines an <a> element with a href attribute as interactive:
http://w3c.github.io/html/single-page.html#interactive-content
Therefore you can't really put a link inside of another link. In
practice none of this works anyways since browsers won't render it, it
would probably be broken if they tried, and it is causing a bug
(#4946). No current tests rely on this behavior either.
This removes the feature and also explicitly excludes the
current visitNodeForShortLinks from looking in <a> tags.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Fix #6234 : Check organization visibility before everything else
* Ensure that Owner is available in the Repo
|
|
|
| |
Signed-off-by: Steve Traugott <stevegt@t7a.org>
|
|
|
| |
* Fix #5580
|
| |
|
| |
|
|
|
|
|
| |
update vendor and add tests
fix swagger
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In #6211, we started creating repo_redirects for ownership transfers,
however that opens an edge case where a user might perform the
following sequence:
rename org1/repo1 -> org1/repo2 (creates org1/repo1 redirect)
transfer org2/repo1 -> org1/repo1 (org1/repo1 redirect continues to exist)
rename org1/repo1 -> org1/repo3 (fails due to existing org1/repo1 redirect)
This change ensures that each time we rename or transfer a repo,
we delete any existing redirects at the target location. This
already happens when a new repo is created. By doing this we ensure
that we'll never have both a repo and a redirect at the same location.
Signed-off-by: James E. Blair <jeblair@redhat.com>
|
|
|
|
|
|
| |
* add service desk to comparison
* add link to issue
|
| |
|
|
|
|
|
|
| |
* Update to docs README
* Update Hugo link
|
|
|
|
|
|
|
|
|
|
| |
Fix #6191
* fix issue update race condition
* fix similar race same race when clearing assignee
* always load promise polyfill
* replace es6-promise with promise-polyfill
* move promise-polyfill to <head>
|
|
|
|
|
| |
Modify the current linkRegex to require http|https which appears to be
the intended behavior based on the comments. Right now, it also matches
anything starting with www as well. Also add testing for linkRegex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Doc updates and changing default sqlite DB path
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update customizing locales and THEMES
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add link to templates directory
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add portion for final step of running Gitea
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add recommended to service file usage
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Removed DB path change, moving to another PR
Updated doc sentence structure
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert change to template wording
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move recommended run-type to top
|
| |
|
|
|
|
|
|
| |
* fix display dashboard even if require to change password
* fix comments
|
|
|
|
|
|
|
| |
When transferring ownership of a repo to a different user/org,
create a repo redirect that points to the new location in the same
way that is done when a repo is renamed.
Signed-off-by: James E. Blair <jeblair@redhat.com>
|
| |
|
| |
|
|
|
| |
Signed-off-by: jolheiser <john.olheiser@gmail.com>
|
|
|
|
| |
- Prevent jump in layout when selecting the first issue
- Remove useless padding on top of first issue
|
| |
|
| |
|
| |
|
|
|
| |
Blocked until 1.12 docker images are released
|
|
|
|
|
|
|
|
| |
* fix bug when migrate repository 500 when repo is existed
* use 409 but not 422 for error status code when not exist
* translation fix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Increase Username and Orgname MaxSize 35 -> 40
Signed-off-by: Segev Finer <segev@codeocean.com>
* Dep update code.gitea.io/sdk
Signed-off-by: Segev Finer <segev@codeocean.com>
* Run generate-swagger
Signed-off-by: Segev Finer <segev@codeocean.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* UI: Make document body a flexbox
Fixes: https://github.com/go-gitea/gitea/issues/6118
* ie11 fixes
* increase padding to 80px
* add flex-grow
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* feat(docker): speed up docker build.
* feat: add docker dryrun
* fix: remove docker username and password if dryrun
|
|
|
|
| |
enabled. (#6156)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix display of >1Kb LFS text files
* Make LFS stored Readme files viewable
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Slight restructure
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Slight restructure
Signed-off-by: Andrew Thornton <art27@cantab.net>
* catch errors and restructure LFS sections
|
|
|
|
|
| |
listAllOrgs) (#6143)
Non-admins will default to 10 page size
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
from database (#6144)
* add more tests and docs for issue indexer, add db indexer type for searching from database
* fix typo
* fix typo
* fix lint
* improve docs
|
|
|
|
|
|
|
|
| |
* refactor issue indexer, add some testing and fix a bug
* fix error copyright year on comment header
* issues indexer package import keep consistent
|
|
|
|
|
|
|
|
| |
* Added Go Path and node_modules to PATH
* Uses npx now for generate-stylesheets
* Uses `go env GOPATH` to calculate adding GOPATH/bin to PATH
* Added note about installing Node 8.0+ to generate stylesheets
* Added preferred Node version to CONTRIBUTING.md
|