마누엘
5aa1237e26
routers/repo/release: Use correct branch reference ( #3330 )
When calculating the current behind commit count the calculation should
use the current release target to get the total commit count. Should the
release target not exist anymore the calculation will return zero for
the newest release on that target. Older releases on that target will then
use that calculated commit count as reference.
The only use case that is now somehow invalid is when the release target
was merged / deleted after a tag on that release target:
master 1 - - - - - - - 6
\ /
branch 2 - 3 - 4 - 5
When `4` is the last tag on branch `branch` and the branch `branch` is not
yet deleted the calculated numbers would be:
1 commits to branch since this release
Now if the branch `branch` gets deleted the calculation function will not
find the branch and use the commit count of the newest release (`4`) as
reference resulting in:
0 commit to branch since this release
This fixes #3326
9 years ago
Richard Mahn
15f2b16568
Added Full Name to CreateUser api call ( #3333 )
9 years ago
Unknwon
40e6437873
routers/repo/issue: remove redundant format string
9 years ago
Unknwon
d633b89ee9
#1601 support delete issue comment
9 years ago
Unknwon
027aebc72c
#1384 add pagination for repositories
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
9835377f9c
Use struct for UI settings
9 years ago
Unknwon
372a341e17
#2790 fix not detect diff style in pull request file changes
9 years ago
Unknwon
2397e0dae9
#3181 detect situation when base branch is deleted in pull request
9 years ago
Unknwon
872cb8bb62
api: fix panic if anonymous user request admin API
Add sign in check before check user account level
9 years ago
Unknwon
41c8e6c524
#3076 detect invalid tag name git error
9 years ago
lstahlman
b47159c4a4
Refresh repository mirror from database when the repository's name has changed. ( #3276 )
9 years ago
Unknwon
e5eff96d17
Update locales and .gopmfile
9 years ago
Unknwon
9bdf738b7e
models/webhook: restrict deletion to be explicitly with repo and org ID
9 years ago
Dennis Chen
561a7f55e4
api: delete repository webhooks ( #3275 )
Allows the deletion of a webhook from a repository at the
/:user/:repo/hooks/:id endpoint.
Solves drone/drone issue #1603 .
Signed-off-by: Dennis Chen <barracks510@gmail.com>
9 years ago
Unknwon
607de5e909
#2937 able to prohibit user login
9 years ago
Unknwon
cb5bfbcc5f
#3274 fix can't get webhook detail of organization
9 years ago
Unknwon
7b4e810eb5
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Unknwon
bc2448daaa
models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
9 years ago
lstahlman
ccdc54584e
Add timestamps to repository api response ( #3255 )
Additional properties: created_at, updated_at
9 years ago
Kim Carlbäcker
a60155f637
[Fix] Don't display way too large files #1513 ( #3253 )
* Add MaxDisplayFileSize setting
* Don't show files that are too large
* Localized FileTooLarge
* Change IsFileTooBig => IsFileTooLarge
9 years ago
lstahlman
ab5f52860a
Extend the API to include more repository properties ( #3249 )
Adds description, stars_count, forks_count, watchers_count and
open_issues_count.
9 years ago
Pablo Saavedra
5a99c23938
The pruning for the synchronized mirrors is a option now. Default value: enable_prune = true ( #3246 )
Executed go fmt
getEngine() not handles DB parameters (#2972 ) (#2974 )
Uses .AllCols() for Update in updateMirror()
Spanish traslation removed
Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
9 years ago
Unknwon
7270678853
#3057 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
9 years ago
Unknwon
126c84acc4
Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
9 years ago
Unknwon
abc82c3f25
#3058 #3059 support correct page size and link header
9 years ago
Unknwon
9877453b1c
Do not show filename not have suffifx .md
9 years ago
Andrey Nering
cdc7a8c613
Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff ( #3174 )
9 years ago
Franz Schmidt
602d1f4200
Fixes #3110 ( #3136 )
9 years ago
Unknwon
f28a20be20
Minor fix for #3194
- Update locale bindata
9 years ago
Sandro Santilli
dac2b841ef
Include repository owner name and description in html title ( #3194 )
Closes #3192
9 years ago
Unknwon
c602044c8e
repo/http: clean code
10 years ago
Unknwon
da5050d92f
#809 fix wrong closed issue count when create closed issue via API
Add start count corrector for Repository.NumClosedIssues
10 years ago
Unknwon
46e4d9f2da
#809 able to set issue state to closed when create
10 years ago
Kim Carlbäcker
346d734eff
PDF-Previews in file-lists now working ( #3000 )
10 years ago
Thomas Boerger
dd29e46802
Made the issue stats query more secure with parameterized placeholders ( #2895 )
10 years ago
Cosmin Stroe
561a81df44
Support alphanumeric issue style (ABC-1234) for external issue tracker ( #2992 )
10 years ago
Tamás Molnár
630c23b750
Set utf-8 charset for text files when serving raw content ( #2898 )
10 years ago
Unknwon
d497e31faa
api/admin: add/remove organization team repository
10 years ago
Unknwon
fd631bf9c0
Fix XORM IN condition table name parse
10 years ago
Unknwon
019cd8b3db
#2842 add quotes to attachment file name
10 years ago
Unknwon
8328452c5a
#1692 add admin APIs to add/remove a user from teams
10 years ago
Unknwon
d2f481e85f
Fix status code
10 years ago
Unknwon
11c481a053
Change list teams API to non-admin specific
10 years ago
Unknwon
0b2c7a6284
#1692 api: admin list and create team under organization
10 years ago
Unknwon
b77b57dec2
Add route for #2846
10 years ago
Unknwon
ab114927b3
#13 fix admin can't search private repos
- update glide info
10 years ago
Unknwon
b8e7c01d90
Merge pull request #2823 from zacheryph/feature/local-only-password-reset
Prevent `Forgot Password` for non local users
10 years ago
Zachery Hostens
c1b28d1394
ensure we don’t try changing LDAP passswords
10 years ago
Unknwon
5b25440502
#1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
10 years ago