张梦金
220d85f162
fix#5252, double click to submit pull request will make 2 same pr.
7 years ago
张梦金
47aa553279
fix#5252, double click to submit pull request will make 2 same pr.
7 years ago
Unknwon
775919c129
mirror: show sync feeds on dashboard ( #2017 )
7 years ago
Unknwon
aff4208244
*: rename "gogits" to "gogs"
7 years ago
Wei He
73dbaefec5
routes/user/setting: fix avatar email update error ( #5245 )
7 years ago
Unknwon
05edcde6c9
routes/user/auth: improve coding style
7 years ago
Unknwon
01ccc2cc96
security: prevent same passcode from being reused
...
Reported by @cezar97 .
7 years ago
Lauris BH
eccc8109c1
security: fix path cleanup for repository init and editor ( #5207 )
...
Reported by Kacper Szurek https://security.szurek.pl/ .
7 years ago
Unknwon
f89d948c06
templates/repo/issue: rework escape delete branch link after merged pull request ( #4601 )
7 years ago
Unknwon
f2ecfdc96a
auth: support authentication source config file ( #3142 )
7 years ago
Unknwon
34bd04f925
MISC: fix typo and grammar
...
Reference: 932490d7f1 (commitcomment-28344918)
7 years ago
Unknwon
932490d7f1
conf: add option to rewrite authorized_keys file at start ( #4435 )
...
Added config option '[server] REWRITE_AUTHORIZED_KEYS_AT_START'.
7 years ago
Unknwon
a855abf8c0
models: rename RewriteAllPublicKeys -> RewriteAuthorizedKeys
7 years ago
William Hilton
6a185e94b9
repo/http: add CORS headers to allow clone/push from browser agents ( #4970 )
7 years ago
Unknwon
63eaac67a6
repo: improve error handling for PR #4803
7 years ago
Unknwon
1f7983059a
models: move ErrBranchNotExist to errors package
7 years ago
bayangan1991
51e087fd87
repo: disallow web ui to delete protected branch after PR merged ( #4803 )
...
* Disallow web ui to delete protected branch
* Fix for branches not yet protected
Had to change how error was handled. If a branch had not yet been protected the error would be generated.
Reworked to start as false and then use the protected if it was found.
7 years ago
Douglas Thrift
0bfce7aca4
repo/commit: fix file commit history pagination ( #4965 )
...
- The `commits_table.tmpl` pagination uses a `$.FileName` variable in
order to generate the next/previous URLs, but it seems like that
variable was no longer being populated in `renderCommits`.
7 years ago
Unknwon
0f14b92bce
MISC: minor fixes in webhook
7 years ago
Unknwon
3b8b8a2ee3
pull_request: able to ignore whitespace when check conflict ( #4834 )
7 years ago
Unknwon
e1e76d3f88
admin/config: add UI for [http] section ( #3987 )
7 years ago
Unknwon
34c2e52bd5
repo/pull: allow rebase before merging ( #4805 )
7 years ago
mharinder
5cd1fdeb9e
pull: add an option to use rebase for merging pull requests
...
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 ).
7 years ago
Anton Antonov
77c77fbd42
api: add endpoint /api/v1/user/orgs ( #4835 )
...
* Add API endpoint /api/v1/user/orgs
The difference between this endpoint and
/api/v1/admin/users/<username>/orgs,
is that here you're creating a repo with the `user`
that corresponds to the API token you're using.
* Extract duplicate API org creation
7 years ago
Unknwon
4258bf3d54
user/auth: fix page not redirect after login
7 years ago
Unknwon
ea313d0c1e
SECURITY: HTML injection in user search API
...
Reported by Tim Hawes.
7 years ago
Athurg Feng
52f3833811
Add Dingtalk webhook support ( #4773 )
...
* Add dingtalk webhook into html template
* Add Dingtalk's icon
* Insert dingtalk into repo's webhook page template
* Insert dingtalk into org's webhook page
* Add dingtalk into default webhook config
* Add locale string for add_dingtalk_hook_desc
* Update bindata
* Add dingtalk webhook form validator
* Add dingtalk hook task
* Add dingtalk hook create handler
* Add dingtalk hook edit handler
* Add dingtalk router
* Add dingtalk webhook task skeleton
* Add markdown link formatter
* Add Dingtalk ActionCard create wrapper
* Add support for dingtalk create event payload
* Add support for dingtalk delete event payload
* Add support for dingtalk fork event payload
* Add support for dingtalk push event payload
* Add support for dingtalk issue event payload
* Add support for dingtalk issue comment payload
* Add support for dingtalk pull event payload
* Add support for dingtalk release event payload
7 years ago
Unknwon
643c85e9c8
routes/home: minor code improve
8 years ago
Unknwon
e02fac4968
repo: fix panic on pull request submit ( #4572 )
8 years ago
Unknwon
8ed2330d6e
issue_comment: fix pg syntax ambiguous ( #4586 )
...
Also handle error related to time parsing.
8 years ago
Unknwon
11b1498a6e
api/repo: load attributes when listing user repositories ( #4565 )
8 years ago
Unknwon
ab2197bc75
random: some code simplify
8 years ago
Unknwon
4400d2fdd9
Refactoring: rename package routers -> routes
8 years ago