]>
source.dussan.org Git - gitea.git/log
Damien Cassou [Thu, 16 Jan 2020 08:27:41 +0000 (09:27 +0100)]
Update go-org to 0.1.9 (#9782)
* Update go-org to 0.1.9
What I did to generate this commit:
$ go get github.com/niklasfasching/go-org
* make vendor
6543 [Thu, 16 Jan 2020 06:43:02 +0000 (07:43 +0100)]
[Docs] Update Feature 'Reject unsigned commits' (#9793)
* update docs
* add link to feature
John Olheiser [Thu, 16 Jan 2020 02:40:13 +0000 (20:40 -0600)]
Fix push-to-create (#9772)
* Fix push-to-create
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Check URL path and service
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Send dummy payload on receive-pack GET
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* The space was actually a NUL byte
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use real bare repo instead of manufactured payload
Signed-off-by: jolheiser <john.olheiser@gmail.com>
silverwind [Thu, 16 Jan 2020 00:28:03 +0000 (01:28 +0100)]
update supported browsers and add a few more (#9734)
Now includes Firefox ESR, Opera and a few more browser with usages
between 0.5% and 1%. defaults resolves to > 0.5%, last 2 versions, Firefox ESR, not dead.
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6543 [Wed, 15 Jan 2020 22:55:25 +0000 (23:55 +0100)]
Fix signing info on PR view if not signed in (#9788)
zeripath [Wed, 15 Jan 2020 21:58:33 +0000 (21:58 +0000)]
Fix missing unlock in uniquequeue (#9790)
Lunny Xiao [Wed, 15 Jan 2020 18:38:44 +0000 (02:38 +0800)]
Fix missing msteam webhook on organization (#9781)
David Svantesson [Wed, 15 Jan 2020 13:18:02 +0000 (14:18 +0100)]
Fix #9662 (#9767)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot [Wed, 15 Jan 2020 11:16:35 +0000 (11:16 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Wed, 15 Jan 2020 11:14:07 +0000 (19:14 +0800)]
Migrate reactions when migrating repository from github (#9599)
* Migrate reactions when migrating repository from github
* fix missed sleep
* fix tests
* update reactions when external user binding
* Fix test
* fix tests
* change the copy head
* fix test
* fix migrator add/delete reaction
GiteaBot [Wed, 15 Jan 2020 09:56:33 +0000 (09:56 +0000)]
[skip ci] Updated translations via Crowdin
Bagas Sanjaya [Wed, 15 Jan 2020 09:53:30 +0000 (16:53 +0700)]
err_admin_name_pattern_not_allowed String Clarification (#9731)
* err_admin_name_pattern_not_allowed clarification edit
* Apply suggestion from @zeripath
Context: username that provided as admin
Co-Authored-By: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
zeripath [Wed, 15 Jan 2020 08:32:57 +0000 (08:32 +0000)]
Add require signed commit for protected branch (#9708)
* Add require signed commit for protected branch
* Fix fmt
* Make editor show if they will be signed
* bugfix
* Add basic merge check and better information for CRUD
* linting comment
* Add descriptors to merge signing
* Slight refactor
* Slight improvement to appearances
* Handle Merge API
* manage CRUD API
* Move error to error.go
* Remove fix to delete.go
* prep for merge
* need to tolerate \r\n in message
* check protected branch before trying to load it
* Apply suggestions from code review
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix commit-reader
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
techknowlogick [Wed, 15 Jan 2020 05:59:13 +0000 (00:59 -0500)]
use arm drone agent for docs (#9776)
GiteaBot [Wed, 15 Jan 2020 04:34:53 +0000 (04:34 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Wed, 15 Jan 2020 04:33:54 +0000 (05:33 +0100)]
ci: move some integration tests on arm64 (#9747)
GiteaBot [Wed, 15 Jan 2020 03:55:40 +0000 (03:55 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Wed, 15 Jan 2020 03:14:50 +0000 (11:14 +0800)]
Move RepoWorkingPool to services/repository package (#9754)
* Move RepoWorkingPool to services/repository package
* Make repoWorkingPool private
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Antoine GIRARD [Wed, 15 Jan 2020 02:14:21 +0000 (03:14 +0100)]
ci: run notify on arm64 (#9762)
* ci: run notify on arm64
Free one jobs on amrd64
* Update .drone.yml
* Update .drone.yml
* Update .drone.yml
Based on: https://github.com/appleboy/drone-discord/blob/master/.drone.yml#L339
* improve trigger
Co-authored-by: techknowlogick <matti@mdranta.net>
GiteaBot [Wed, 15 Jan 2020 00:08:04 +0000 (00:08 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Tue, 14 Jan 2020 23:11:08 +0000 (23:11 +0000)]
Fix #9752 (#9769)
John Olheiser [Tue, 14 Jan 2020 21:57:13 +0000 (15:57 -0600)]
Fix milestones page (#9770)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
John Olheiser [Tue, 14 Jan 2020 20:47:38 +0000 (14:47 -0600)]
Fix SimpleMDE quote reply (#9757)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
silverwind [Tue, 14 Jan 2020 18:02:08 +0000 (19:02 +0100)]
move swagger-ui to webpack/npm (#9714)
Created a second webpack output file for swagger-ui which is loaded on
the /api/swagger route. One notable difference is the absence of the
swagger favicon that was previously used which is now the gitea icon. I
see no easy way to restore that favicon, so I decided to not keep it.
6543 [Tue, 14 Jan 2020 15:37:19 +0000 (16:37 +0100)]
[API] add endpoint to check notifications [Extend #9488] (#9595)
* introduce GET /notifications/new
* add TEST
* use Sprintf instead of path.Join
* Error more verbose
* return number of notifications if unreaded exist
* 200 http status for available notifications
Bagas Sanjaya [Tue, 14 Jan 2020 13:34:40 +0000 (20:34 +0700)]
Add Privacy Policy and Terms of Service Page (#9513)
* Add privacy policy page and link
* Add TOS page and link
* Add update date
* [Docs] Add customizing PP and TOS
* Separate h2 user-generated content with its paragraph
* Reimplement Privacy Policy
The document is inspired from GitHub.
* Refactor to contrib
* [Docs] Mention how to add legal pages
* Reimplement Terms of Service
Adapted from GitHub
* Update revision date
* Rename to mark as sample file
* Apply suggestion from @sapk
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* Apply suggestion from @sapk
Use absolute link instead
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* Apply suggestion from @zeripath
Change `Last Updated` element to `<h4>`
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Close this `<li>` element instance
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Intentionally grammar fix
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Information grammar
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Cannot guarantee absolute security...
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Use `<h4>` element for last updated date
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Remove trailing `</p>` at the end of API clause
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Migrate privacy email domain to Your Gitea Instance
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath
Remove `<p>` container for `<ol>` definitions
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath
Remove `<p>` container that contain `<ol>` user-generated content
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath
Remove `<p>` container for private repositories `<ol>` listing
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestions from @zeripath
Migrate remaining email domains to Your Gitea Instance
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Offer support
Co-Authored-By: zeripath <art27@cantab.net>
* Apply suggestion from @zeripath
Change "Your Gitea Instance" references to match your situation and Gitea project disclaimer
Co-Authored-By: zeripath <art27@cantab.net>
* Reword transmission data to reflect hosting on third-party provider
* Reword Analytics clause to reflects that not all Gitea instances deploy analytics OOTB
* Remove `<p>` container from account terms
* Migrate support email on tos to your-gitea-instance
* Reword Tracking and Analytics clause for OOTB case
* [Docs] Append privacy.html to cp destination
* Apply suggestion from @6543
Create or append to footer template
Co-Authored-By: 6543 <6543@obermui.de>
* Apply suggestion from myself
@6543 suggest replacing this `cp` line (which assumed that Gitea sources are available) with `wget` to GitHub raw link. At the time of writing this, this returned 404, but when this PR has been merged, this should get the actual page.
* Apply suggestions from @6543
1. Add gpg key to profile information
2. Add Git repos to list of User Personal Information
3. Comment out responsibility for sensitive information
Co-Authored-By: 6543 <6543@obermui.de>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
GiteaBot [Tue, 14 Jan 2020 12:54:26 +0000 (12:54 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Tue, 14 Jan 2020 12:06:49 +0000 (13:06 +0100)]
ci: use new mssql image (#9720)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot [Tue, 14 Jan 2020 10:31:54 +0000 (10:31 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Tue, 14 Jan 2020 10:29:22 +0000 (18:29 +0800)]
Fix missing updated time on migrated issues and comments (#9744)
* Fix missing updated time on migrated issues and comments
* Fix testing and missing updated on migrating pullrequest
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Lunny Xiao [Tue, 14 Jan 2020 03:38:04 +0000 (11:38 +0800)]
Move newbranch to standalone package (#9627)
* Move newbranch to standalone package
* move branch functions to modules to avoid dependencies cycles
* fix tests
* fix lint
* fix lint
GiteaBot [Tue, 14 Jan 2020 00:08:14 +0000 (00:08 +0000)]
[skip ci] Updated translations via Crowdin
guillep2k [Tue, 14 Jan 2020 00:06:54 +0000 (21:06 -0300)]
Add test for git + git lfs (#9753)
Manush Dodunekov [Mon, 13 Jan 2020 17:33:46 +0000 (19:33 +0200)]
Restricted users (#6274)
* Restricted users (#4334): initial implementation
* Add User.IsRestricted & UI to edit it
* Pass user object instead of user id to places where IsRestricted flag matters
* Restricted users: maintain access rows for all referenced repos (incl public)
* Take logged in user & IsRestricted flag into account in org/repo listings, searches and accesses
* Add basic repo access tests for restricted users
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
* Mention restricted users in the faq
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
* Revert unnecessary change `.isUserPartOfOrg` -> `.IsUserPartOfOrg`
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
* Remove unnecessary `org.IsOrganization()` call
Signed-off-by: Manush Dodunekov <manush@stendahls.se>
* 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>
* or even better: `map[int64]*userAccess`
* updateUserAccess(): use tighter syntax as suggested by lafriks
* even tighter
* Avoid extra loop
* Don't disclose limited orgs to unauthenticated users
* Don't assume block only applies to orgs
* Use an array of `VisibleType` for filtering
* fix yet another thinko
* Ok - no need for u
* Revert "Ok - no need for u"
This reverts commit
5c3e886aabd5acd997a3b35687d322439732c200 .
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
6543 [Mon, 13 Jan 2020 16:02:24 +0000 (17:02 +0100)]
[API] Add "before" query to ListIssueComments and ListRepoIssue… (#9685)
* add "before" query to ListIssueComments and ListRepoIssueComments
* Add TEST
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
GiteaBot [Mon, 13 Jan 2020 14:10:01 +0000 (14:10 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Mon, 13 Jan 2020 14:06:49 +0000 (15:06 +0100)]
ci: go back to golangci-lint 1.20.0 (#9742)
Revert https://github.com/go-gitea/gitea/pull/9711
GiteaBot [Mon, 13 Jan 2020 10:42:46 +0000 (10:42 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Mon, 13 Jan 2020 10:40:10 +0000 (11:40 +0100)]
ci: re-ordering Drone CI for optimizing time (#9719)
* ci: try re-ordering for optimizing time
* ci: try re-ordering for optimizing time
* ci: try re-ordering for optimizing time
* ci: try re-ordering for optimizing time
* ci: try re-ordering for optimizing time
* ci: try re-ordering for optimizing time
* ci: try offloading mysql8 to arm64
* Revert "ci: try offloading mysql8 to arm64"
This reverts commit
c60de5db1cf8b5984c3014a57da6490f06c8d980 .
* ci: try offloading pgsql to arm64
* ci: activate ldap on arm64
* ci: test mysql8 in place pgsql arm64
* chore: clean un-needed move
* typo
* ci: revert runnning mysql on arm64
* ci: run compliance on arm
* chore: limit change
* chore: readd maybe need for release fetch-tags
* ci: remove docker-linux-amd64-dry-run
* ci: remove docker-linux-amd64-dry-run
* Revert "ci: remove docker-linux-amd64-dry-run"
This reverts commit
0715f65b11c37869359aaaa5d22901da512e8184 .
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind [Sun, 12 Jan 2020 23:11:43 +0000 (00:11 +0100)]
add package-lock=true in .npmrc (#9736)
Some users (like me) have this option disabled in their global npm
config which can lead to package-lock.json not being updated. This
explicitely enables the option for this repo, so that the file is
always updated when adding/removing dependencies.
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Antoine GIRARD [Sun, 12 Jan 2020 21:26:13 +0000 (22:26 +0100)]
ci: use docker image for golangci-lint (#9737)
silverwind [Sun, 12 Jan 2020 20:53:12 +0000 (21:53 +0100)]
fix webpack polyfills (#9735)
webpack polyfills did not work because useBuiltIns: 'entry' expects a
explicit core-js import. Changed it to 'usage' which does not require
these explicit imports and polyfills based on browserslist.
As a result, the built index.js now went from 128kB to 192kB.
Ref: https://babeljs.io/docs/en/babel-preset-env#usebuiltins
Co-authored-by: zeripath <art27@cantab.net>
silverwind [Sun, 12 Jan 2020 17:22:26 +0000 (18:22 +0100)]
remove deprecated targets from Makefile (#9729)
- remove deprecated targets
- ensure 1 empty line between targets
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
GiteaBot [Sun, 12 Jan 2020 16:34:48 +0000 (16:34 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Sun, 12 Jan 2020 15:43:44 +0000 (16:43 +0100)]
[API] add GET /orgs endpoint (#9560)
* introduce `GET /orgs`
* add TEST
* show also other VisibleType's
* update description
* refactor a lot
* SearchUserOptions by default return only public
GiteaBot [Sun, 12 Jan 2020 12:12:40 +0000 (12:12 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Sun, 12 Jan 2020 12:11:17 +0000 (20:11 +0800)]
Move create/fork repository from models to modules/repository (#9489)
* Move create/fork repository from models to modules/repository
* fix wrong reference
* fix test
* fix test
* fix lint
* Fix DBContext
* remove duplicated TestMain
* fix lint
* fix conflicts
Lunny Xiao [Sun, 12 Jan 2020 09:36:21 +0000 (17:36 +0800)]
Add owner_name column for table repository for maintaince reason (#9717)
* Add owner_name column for table repository for maintaince reason
* refactor
* Fix tests
* fix test
* fix bug when fork repository
Co-authored-by: zeripath <art27@cantab.net>
zeripath [Sun, 12 Jan 2020 08:46:03 +0000 (08:46 +0000)]
Make hook status printing configurable with delay (#9641)
* Delay printing hook statuses until after 1 second
* Move to a 5s delay, wrapped writer structure and add config
* Update cmd/hook.go
* Apply suggestions from code review
* Update cmd/hook.go
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
6543 [Sun, 12 Jan 2020 06:35:11 +0000 (07:35 +0100)]
[BugFix] [API] /repos/issues/search (#9698)
* fix
* fix options
* add TEST
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
silverwind [Sun, 12 Jan 2020 02:57:32 +0000 (03:57 +0100)]
silence fomantic error regarding tabs (#9713)
Fomantic expects all tabs to have a target element with content as
defined by the data-tab attribute. All our usage of the tab module seems
to use <a> element tabs that link to new pages so these content elements
are never present and fomantic complains about that in the console with
an "Activated tab cannot be found" error. This silences that error.
techknowlogick [Sat, 11 Jan 2020 20:33:40 +0000 (15:33 -0500)]
golangci-lint 1.22.2 (#9711)
zeripath [Sat, 11 Jan 2020 19:06:35 +0000 (19:06 +0000)]
Remove unused lock (#9709)
zeripath [Sat, 11 Jan 2020 17:05:07 +0000 (17:05 +0000)]
Missed q.lock.Unlock() will cause panic (#9705)
Lunny Xiao [Sat, 11 Jan 2020 14:24:57 +0000 (22:24 +0800)]
Add a new command doctor to check if some wrong configurations on gitea instance (#9095)
* add doctor
* Add a new command doctor to check if some wrong configurations on gitea instance
* fix import
* use regex match authorized_keys on doctor
* Add documentation
GiteaBot [Sat, 11 Jan 2020 10:51:31 +0000 (10:51 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Sat, 11 Jan 2020 10:50:05 +0000 (10:50 +0000)]
Restore IsPasswordSet previous value (#9682)
David Svantesson [Sat, 11 Jan 2020 07:29:34 +0000 (08:29 +0100)]
Allow repo admin to merge PR regardless of review status (#9611)
* Allow repo admin to merge even if review is not ok.
Lunny Xiao [Sat, 11 Jan 2020 02:59:41 +0000 (10:59 +0800)]
Move tracked time api convert to convert package (#9665)
guillep2k [Sat, 11 Jan 2020 01:20:11 +0000 (22:20 -0300)]
Don't attempt to close issue if already closed (#9696)
Co-authored-by: Lauris BH <lauris@nix.lv>
Ryan [Fri, 10 Jan 2020 21:54:46 +0000 (21:54 +0000)]
Remove deprecation comment for CreateOrgRepo (#9670)
Remove mistakenly added `deprecated: true` swagger comment from the `/orgs/{orgr}/repos` handler
John Olheiser [Fri, 10 Jan 2020 21:17:56 +0000 (15:17 -0600)]
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>
Antoine GIRARD [Fri, 10 Jan 2020 20:36:32 +0000 (21:36 +0100)]
Remove un-needed script import since #9554 (#9694)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lunny Xiao [Fri, 10 Jan 2020 15:35:17 +0000 (23:35 +0800)]
Fix wrong original git service type on a migrated repository (#9693)
silverwind [Fri, 10 Jan 2020 12:39:01 +0000 (13:39 +0100)]
update js dependencies (#9676)
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lunny Xiao [Fri, 10 Jan 2020 09:34:21 +0000 (17:34 +0800)]
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>
Lunny Xiao [Fri, 10 Jan 2020 07:53:53 +0000 (15:53 +0800)]
Move pull request api convert to convert package (#9664)
* Move pull request api convert to convert package
* Rename ToPullRequest to ToAPIPullRequest
Lunny Xiao [Fri, 10 Jan 2020 05:50:23 +0000 (13:50 +0800)]
Fix lint (#9688)
zeripath [Fri, 10 Jan 2020 00:14:14 +0000 (00:14 +0000)]
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>
zeripath [Thu, 9 Jan 2020 21:34:25 +0000 (21:34 +0000)]
Prevent redirect to Host (#9678)
techknowlogick [Thu, 9 Jan 2020 20:48:47 +0000 (15:48 -0500)]
remove google font call (#9668)
silverwind [Thu, 9 Jan 2020 19:33:39 +0000 (20:33 +0100)]
eliminate horizontal scroll caused by footer (#9669)
GiteaBot [Thu, 9 Jan 2020 16:43:29 +0000 (16:43 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Thu, 9 Jan 2020 16:40:01 +0000 (17:40 +0100)]
[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>
Bo-Yi Wu [Thu, 9 Jan 2020 14:31:09 +0000 (22:31 +0800)]
chore(PR): Add Reviewed-on in commit message (#9623)
6543 [Thu, 9 Jan 2020 13:15:14 +0000 (14:15 +0100)]
[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>
GiteaBot [Thu, 9 Jan 2020 11:58:47 +0000 (11:58 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Thu, 9 Jan 2020 11:56:32 +0000 (12:56 +0100)]
[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
John Olheiser [Thu, 9 Jan 2020 06:22:37 +0000 (00:22 -0600)]
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>
David Svantesson [Thu, 9 Jan 2020 01:47:45 +0000 (02:47 +0100)]
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
John Olheiser [Wed, 8 Jan 2020 23:10:34 +0000 (17:10 -0600)]
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>
6543 [Wed, 8 Jan 2020 21:14:00 +0000 (22:14 +0100)]
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>
John Olheiser [Wed, 8 Jan 2020 17:45:24 +0000 (11:45 -0600)]
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>
Bagas Sanjaya [Wed, 8 Jan 2020 16:33:13 +0000 (23:33 +0700)]
[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>
6543 [Wed, 8 Jan 2020 14:30:58 +0000 (15:30 +0100)]
fix #9648 | use filepath.IsAbs instead of path.IsAbs (#9651)
* fix #9648
* found next
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
GiteaBot [Wed, 8 Jan 2020 12:45:05 +0000 (12:45 +0000)]
[skip ci] Updated translations via Crowdin
Shashvat Kedia [Wed, 8 Jan 2020 11:53:07 +0000 (17:23 +0530)]
Fix #9552: Merge commits generated by pull request capture pull request details (#9635)
Bagas Sanjaya [Wed, 8 Jan 2020 09:20:15 +0000 (16:20 +0700)]
[Docs] Grammar Edit on Enabling HTTPS Using Reverse Proxy (#9649)
* Use infinitives for accept and pass
* Close parentheeses for proxy exposed
6543 [Wed, 8 Jan 2020 07:00:59 +0000 (08:00 +0100)]
[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
techknowlogick [Wed, 8 Jan 2020 05:08:49 +0000 (00:08 -0500)]
Plural form for changelog (#9645)
Fix: https://gitea.com/gitea/changelog/issues/16
techknowlogick [Wed, 8 Jan 2020 04:06:45 +0000 (23:06 -0500)]
Update date for new year (#9644)
Matti R [Wed, 8 Jan 2020 03:56:59 +0000 (22:56 -0500)]
empty commit to start 1.12-dev
6543 [Wed, 8 Jan 2020 02:57:44 +0000 (03:57 +0100)]
Changelog for 1.11.0-RC1 (#9636)
* generated Changelog
* cormat, sort, fix
* teamwork :)
Co-Authored-By: techknowlogick <matti@mdranta.net>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* next()
* Next()
* add last change
* as @jolheiser suggested
* Apply suggestions from code review
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Apply suggestions from code review
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update CHANGELOG.md
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* add bugfix + topic is plural
* rest
* Apply suggestions from code review
* Apply suggestions from code review
Co-Authored-By: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
David Svantesson [Wed, 8 Jan 2020 00:36:39 +0000 (01:36 +0100)]
Repository teams - disable remove button when have access to all (#9640)
Co-authored-by: zeripath <art27@cantab.net>
Shashvat Kedia [Tue, 7 Jan 2020 23:41:16 +0000 (05:11 +0530)]
Fix #9530: admin auth list make readable and admin auth delete bug fix (#9628)
Lunny Xiao [Tue, 7 Jan 2020 18:27:36 +0000 (02:27 +0800)]
Move wiki related funtions from models to services/wiki (#9355)
* Move wiki related funtions from models to services/wiki
zeripath [Tue, 7 Jan 2020 17:06:14 +0000 (17:06 +0000)]
Branches not at ref commit ID should not be listed as Merged (#9614)
Once a branch has been merged if the commit ID no longer equals that of
the pulls ref commit id don't offer to delete the branch on the pull screen
and don't list it as merged on branches.
Fix #9201
When looking at the pull page we should also get the commits from the refs/pulls/x/head
Fix #9158
6543 [Tue, 7 Jan 2020 15:41:35 +0000 (16:41 +0100)]
Fix Issue Unsubscription (#9634)
GiteaBot [Tue, 7 Jan 2020 14:32:33 +0000 (14:32 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Tue, 7 Jan 2020 14:30:03 +0000 (14:30 +0000)]
Remove stray printf (#9631)