Lauris BH
5ae6016fd9
Merge branch 'master' into feature/restricted-users
6 years ago
David Svantesson
32fb813133
Allow repo admin to merge PR regardless of review status ( #9611 )
...
* Allow repo admin to merge even if review is not ok.
6 years ago
Lunny Xiao
4d06d10dba
Move tracked time api convert to convert package ( #9665 )
6 years ago
guillep2k
705b1e49a8
Don't attempt to close issue if already closed ( #9696 )
...
Co-authored-by: Lauris BH <lauris@nix.lv>
6 years ago
Manush Dodunekov
d775c3b22b
fix yet another thinko
6 years ago
Ryan
438e159d04
Remove deprecation comment for CreateOrgRepo ( #9670 )
...
Remove mistakenly added `deprecated: true` swagger comment from the `/orgs/{orgr}/repos` handler
6 years ago
John Olheiser
480ef9d410
Load milestone in API PR list ( #9671 )
...
* Load milestone for Issue API format
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move further down
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
6 years ago
Antoine GIRARD
e90e435f04
Remove un-needed script import since #9554 ( #9694 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6 years ago
Manush Dodunekov
57744b54c4
merge upstream & fix conflicts
6 years ago
Lunny Xiao
7a3a90aca3
Fix wrong original git service type on a migrated repository ( #9693 )
6 years ago
silverwind
3143bb10da
update js dependencies ( #9676 )
...
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6 years ago
Lunny Xiao
99d869fa63
Move push commits from models to modules/repository ( #9370 )
...
* Move push commits from models to modules/repository
* fix test
* fix test
* fix test
* fix test
* fix test
Co-authored-by: zeripath <art27@cantab.net>
6 years ago
Lunny Xiao
384c2b342e
Move pull request api convert to convert package ( #9664 )
...
* Move pull request api convert to convert package
* Rename ToPullRequest to ToAPIPullRequest
6 years ago
Lunny Xiao
8878cfa4a1
Fix lint ( #9688 )
6 years ago
zeripath
17b844a3ec
Move Errored PRs out of StatusChecking ( #9675 )
...
* Set Errored PRs out of StatusChecking
* Ensure that api status is correctly set too
* Update models/pull.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
6 years ago
zeripath
6c46a56360
Prevent redirect to Host ( #9678 )
6 years ago
techknowlogick
8f31c2fc76
remove google font call ( #9668 )
6 years ago
silverwind
b3722114ce
eliminate horizontal scroll caused by footer ( #9669 )
6 years ago
GiteaBot
a311ace354
[skip ci] Updated translations via Crowdin
6 years ago
6543
e8ea0695b0
[API] creat org repo call same as github ( #9186 )
...
* deprecate /api/v1/org/{org}/repos in favour of /api/v1/orgs/{org}/repos + cleanup api repository routes a bit
* remove redundant code
* use upstream function for api cal
* make generate-swagger
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
6 years ago
Bo-Yi Wu
07520431ae
chore(PR): Add Reviewed-on in commit message ( #9623 )
6 years ago
6543
1080c768d3
[API] orgEditTeam make Fields optional ( #9556 )
...
* API: orgEditTeam make Fields optional
* add TestCase
* Update integrations/api_team_test.go
* suggestions from lafriks
use len() to check if string is empty
Co-Authored-By: Lauris BH <lauris@nix.lv>
* change ...
* use Where not ID to get mssql
* add return and code format
* fix test
* fix test ... null pointer exept
* update specific colums
* only specific colums too
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6 years ago
GiteaBot
71fe018977
[skip ci] Updated translations via Crowdin
6 years ago
6543
6baa5d7588
[API] Add notification endpoint ( #9488 )
...
* [API] Add notification endpoints
* add func GetNotifications(opts FindNotificationOptions)
* add func (n *Notification) APIFormat()
* add func (nl NotificationList) APIFormat()
* add func (n *Notification) APIURL()
* add func (nl NotificationList) APIFormat()
* add LoadAttributes functions (loadRepo, loadIssue, loadComment, loadUser)
* add func (c *Comment) APIURL()
* add func (issue *Issue) GetLastComment()
* add endpoint GET /notifications
* add endpoint PUT /notifications
* add endpoint GET /repos/{owner}/{repo}/notifications
* add endpoint PUT /repos/{owner}/{repo}/notifications
* add endpoint GET /notifications/threads/{id}
* add endpoint PATCH /notifications/threads/{id}
* Add TEST
* code format
* code format
6 years ago
Manush Dodunekov
eeecdab5db
Use an array of `VisibleType` for filtering
6 years ago
Manush Dodunekov
ee2f31f32b
Don't assume block only applies to orgs
6 years ago
Manush Dodunekov
b788ef32ff
Don't disclose limited orgs to unauthenticated users
6 years ago
Manush Dodunekov
3459547fca
merge upstream, resolve migration conflicts
6 years ago
John Olheiser
ee9ce0cfa9
Fix nil reference in repo generation ( #9660 )
...
* Fix nil reference
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Tighten
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
David Svantesson
25531c71a7
Mark PR reviews as stale at push and allow to dismiss stale approvals ( #9532 )
...
Fix #5997 .
If a push causes the patch/diff of a PR towards target branch to change, all existing reviews for the PR will be set and shown as stale.
New branch protection option to dismiss stale approvals are added.
To show that a review is not based on the latest PR changes, an hourglass is shown
6 years ago
Manush Dodunekov
7d74b8596c
Avoid extra loop
6 years ago
Manush Dodunekov
7d17aad805
even tighter
6 years ago
Manush Dodunekov
10de9b6b89
updateUserAccess(): use tighter syntax as suggested by lafriks
6 years ago
John Olheiser
5b2d9333f1
Add HTML URL to API Issues ( #9654 )
...
* Add HTML URL to API Issues
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
6 years ago
Manush Dodunekov
06ad61aad3
or even better: `map[int64]*userAccess`
6 years ago
6543
14a9687444
times Add filters ( #9373 )
...
(extend #9200 )
* add query param for GET functions (created Bevore & after)
* add test
* generalize func GetQueryBeforeSince
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6 years ago
Manush Dodunekov
124f056e19
Revert to an `int64` keyed `accessMap`
...
* Add type `userAccess`
* Add convenience func updateUserAccess()
* Turn accessMap into a `map[int64]userAccess`
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
6 years ago
Manush Dodunekov
5b652427c0
Remove unnecessary `org.IsOrganization()` call
...
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
6 years ago
John Olheiser
f8dcc5f9f8
Add PR review webhook to Telegram ( #9653 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
6 years ago
Bagas Sanjaya
b822518e39
[Docs] Linux Service Edit ( #9633 )
...
* Rename h3 title
* Add intro
Should work on Ubuntu Xenial, but should work on any Linux distros.
* Indirect edit files
Instead of providing `sudo vim`, invite to edit files.
* enable now instead of enable and start
* Re-add systemctl enable && systemctl start
* Revert service enablement back to status quo
* Add enable now counterpart for systemd > v220
* Apply suggestions from @sapk
Strip `vim` from editor usage
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
6 years ago
6543
c779ac12c9
fix #9648 | use filepath.IsAbs instead of path.IsAbs ( #9651 )
...
* fix #9648
* found next
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
6 years ago
Manush Dodunekov
4501f22d98
Revert unnecessary change `.isUserPartOfOrg` -> `.IsUserPartOfOrg`
...
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
6 years ago
Manush Dodunekov
dc7e423afc
Mention restricted users in the faq
...
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
6 years ago
GiteaBot
98772d376c
[skip ci] Updated translations via Crowdin
6 years ago
Shashvat Kedia
632fb5badc
Fix #9552 : Merge commits generated by pull request capture pull request details ( #9635 )
6 years ago
Antoine GIRARD
1f7b0fc4f4
Merge branch 'master' into feature/restricted-users
6 years ago
Bagas Sanjaya
74d6ec6807
[Docs] Grammar Edit on Enabling HTTPS Using Reverse Proxy ( #9649 )
...
* Use infinitives for accept and pass
* Close parentheeses for proxy exposed
6 years ago
6543
e88d67b774
[API] add comments endpoint for single comment ( #9494 )
...
* add GET /repos/{owner}/{repo}/issues/comments/{id}
and complete error list for swagger in other func
* add repo check
6 years ago
techknowlogick
c884735740
Plural form for changelog ( #9645 )
...
Fix: https://gitea.com/gitea/changelog/issues/16
6 years ago
techknowlogick
8e132cd16a
Update date for new year ( #9644 )
6 years ago