zeripath
4bcf449eb8
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 >
2020-01-15 09:32:57 +01:00
GiteaBot
21e672fd6c
[skip ci] Updated translations via Crowdin
2020-01-15 04:34:53 +00:00
GiteaBot
3e5b62be14
[skip ci] Updated translations via Crowdin
2020-01-15 03:55:40 +00:00
GiteaBot
63b1c6cce7
[skip ci] Updated translations via Crowdin
2020-01-15 00:08:04 +00:00
GiteaBot
aafd7d76e8
[skip ci] Updated translations via Crowdin
2020-01-14 12:54:26 +00:00
GiteaBot
fc9a72f616
[skip ci] Updated translations via Crowdin
2020-01-14 10:31:54 +00:00
GiteaBot
c1b56cffa8
[skip ci] Updated translations via Crowdin
2020-01-14 00:08:14 +00:00
Manush Dodunekov
a159b9c780
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 >
2020-01-13 18:33:46 +01:00
GiteaBot
e517e4b921
[skip ci] Updated translations via Crowdin
2020-01-13 14:10:01 +00:00
GiteaBot
51211de3e0
[skip ci] Updated translations via Crowdin
2020-01-13 10:42:46 +00:00
GiteaBot
d55906f968
[skip ci] Updated translations via Crowdin
2020-01-12 16:34:48 +00:00
GiteaBot
7070b515c5
[skip ci] Updated translations via Crowdin
2020-01-12 12:12:40 +00:00
GiteaBot
dac66292c2
[skip ci] Updated translations via Crowdin
2020-01-11 10:51:31 +00:00
David Svantesson
c9fae0d690
Allow repo admin to merge PR regardless of review status ( #9611 )
...
* Allow repo admin to merge even if review is not ok.
2020-01-11 02:29:34 -05:00
GiteaBot
25c14b6f14
[skip ci] Updated translations via Crowdin
2020-01-09 16:43:29 +00:00
GiteaBot
899f8cffdd
[skip ci] Updated translations via Crowdin
2020-01-09 11:58:47 +00:00
David Svantesson
cda1de64b5
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
2020-01-09 01:47:45 +00:00
GiteaBot
7df6c965b2
[skip ci] Updated translations via Crowdin
2020-01-08 12:45:05 +00:00
GiteaBot
5e4c4bf6de
[skip ci] Updated translations via Crowdin
2020-01-07 14:32:33 +00:00
GiteaBot
f25e2e0777
[skip ci] Updated translations via Crowdin
2020-01-07 11:24:19 +00:00
zeripath
3262b5788c
Graceful Queues: Issue Indexing and Tasks ( #9363 )
...
* Queue: Add generic graceful queues with settings
* Queue & Setting: Add worker pool implementation
* Queue: Add worker settings
* Queue: Make resizing worker pools
* Queue: Add name variable to queues
* Queue: Add monitoring
* Queue: Improve logging
* Issues: Gracefulise the issues indexer
Remove the old now unused specific queues
* Task: Move to generic queue and gracefulise
* Issues: Standardise the issues indexer queue settings
* Fix test
* Queue: Allow Redis to connect to unix
* Prevent deadlock during early shutdown of issue indexer
* Add MaxWorker settings to queues
* Merge branch 'master' into graceful-queues
* Update modules/indexer/issues/indexer.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
* Update modules/indexer/issues/indexer.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
* Update modules/queue/queue_channel.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
* Update modules/queue/queue_disk.go
* Update modules/queue/queue_disk_channel.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
* Rename queue.Description to queue.ManagedQueue as per @guillep2k
* Cancel pool workers when removed
* Remove dependency on queue from setting
* Update modules/queue/queue_redis.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
* As per @guillep2k add mutex locks on shutdown/terminate
* move unlocking out of setInternal
* Add warning if number of workers < 0
* Small changes as per @guillep2k
* No redis host specified not found
* Clean up documentation for queues
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
* Update modules/indexer/issues/indexer_test.go
* Ensure that persistable channel queue is added to manager
* Rename QUEUE_NAME REDIS_QUEUE_NAME
* Revert "Rename QUEUE_NAME REDIS_QUEUE_NAME"
This reverts commit 1f83b4fc9b9dabda186257b38c265fe7012f90df.
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-01-07 12:23:09 +01:00
GiteaBot
6aa6835fef
[skip ci] Updated translations via Crowdin
2020-01-07 07:40:50 +00:00
GiteaBot
a9b384bad3
[skip ci] Updated translations via Crowdin
2020-01-06 16:52:05 +00:00
GiteaBot
7daaf9c915
[skip ci] Updated translations via Crowdin
2020-01-05 14:30:20 +00:00
GiteaBot
024bad0637
[skip ci] Updated translations via Crowdin
2020-01-04 22:21:24 +00:00
GiteaBot
18896704c3
[skip ci] Updated translations via Crowdin
2020-01-04 20:29:45 +00:00
Lauris BH
e2abc541b7
Add translatable Powered by Gitea text in footer ( #9600 )
2020-01-04 20:27:19 +00:00
GiteaBot
d98b052f69
[skip ci] Updated translations via Crowdin
2020-01-03 18:44:08 +00:00
David Svantesson
2ddb718531
Add branch protection option to block merge on requested changes. ( #9592 )
...
* Add branch protection option to block merge on requested changes.
* Add migration step
* Fix check to correct negation
* Apply suggestions from code review
Language improvement.
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com >
* Copyright year.
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com >
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-01-03 19:47:09 +02:00
GiteaBot
86d98c2af7
[skip ci] Updated translations via Crowdin
2020-01-02 12:18:28 +00:00
GiteaBot
fc2da53bf3
[skip ci] Updated translations via Crowdin
2019-12-30 17:14:49 +00:00
GiteaBot
8be113ae05
[skip ci] Updated translations via Crowdin
2019-12-29 12:34:39 +00:00
GiteaBot
048827d966
[skip ci] Updated translations via Crowdin
2019-12-28 23:35:29 +00:00
techknowlogick
ab8ecb295c
Delete conflicting file ( #9526 )
...
Case collision with other jboss file
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2019-12-28 10:43:03 +00:00
6543
7f0a771e9e
[API] Extend times API ( #9200 )
...
Extensively extend the times API.
close #8833 ; close #8513 ; close #8559
2019-12-27 20:30:58 +00:00
John Olheiser
d9b209b3e9
Delete extra Matlab ignore file ( #9479 )
2019-12-23 23:31:36 +00:00
John Olheiser
8a8591bfdf
Update matlab gitignore? ( #9478 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2019-12-23 20:45:43 +00:00
GiteaBot
68e68a4d8a
[skip ci] Updated translations via Crowdin
2019-12-23 12:34:47 +00:00
mrsdizzie
5513787f59
Add ActionCommentPull action ( #9456 )
...
* Add ActionCommentPull action
Adds ActionCommentPull action to distinguish between a comment on an
issue and on a pull request
* Update modules/notification/action/action.go
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2019-12-22 08:29:26 +00:00
GiteaBot
469cd67efa
[skip ci] Updated translations via Crowdin
2019-12-20 17:10:13 +00:00
Antoine GIRARD
b417f0c8c1
chore: update license list ( #9436 )
...
go run scripts/generate-licenses.go
Co-authored-by: zeripath <art27@cantab.net >
2019-12-20 08:17:25 +08:00
Antoine GIRARD
64e5d2cbc5
chore: update gitignore list ( #9437 )
...
Updated the gitignore list with the command : `go run scripts/generate-gitignores.go`
2019-12-19 23:04:12 +00:00
GiteaBot
ca754ce31a
[skip ci] Updated translations via Crowdin
2019-12-19 21:50:14 +00:00
GiteaBot
36e0167226
[skip ci] Updated translations via Crowdin
2019-12-18 12:33:32 +00:00
GiteaBot
2159921005
[skip ci] Updated translations via Crowdin
2019-12-18 10:02:07 +00:00
GiteaBot
041893240a
[skip ci] Updated translations via Crowdin
2019-12-18 04:02:12 +00:00
GiteaBot
1e307931c6
[skip ci] Updated translations via Crowdin
2019-12-16 15:57:59 +00:00
Mario Lubenka
75cfe5e7de
Change target branch for pull request ( #6488 )
...
* Adds functionality to change target branch of created pull requests
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Use const instead of var in JavaScript additions
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Check if branches are equal and if PR already exists before changing target branch
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Make sure to check all commits
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Print error messages for user as error flash message
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Disallow changing target branch of closed or merged pull requests
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Resolve conflicts after merge of upstream/master
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Change order of branch select fields
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Removes duplicate check
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Use ctx.Tr for translations
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Recompile JS
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Use correct translation namespace
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Remove redundant if condition
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Moves most change branch logic into pull service
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Completes comment
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Add Ref to ChangesPayload for logging changed target branches
instead of creating a new struct
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Revert changes to go.mod
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Directly use createComment method
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Return 404 if pull request is not found. Move written check up
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Remove variable declaration
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Return client errors on change pull request target errors
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Return error in commit.HasPreviousCommit
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Adds blank line
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Test patch before persisting new target branch
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Update patch before testing (not working)
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Removes patch calls when changeing pull request target
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Removes unneeded check for base name
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Moves ChangeTargetBranch completely to pull service. Update patch status.
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Set webhook mode after errors were validated
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Update PR in one transaction
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Move logic for check if head is equal with branch to pull model
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Adds missing comment and simplify return
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
* Adjust CreateComment method call
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com >
2019-12-16 14:20:25 +08:00
Brad Albright
62d92fb197
Add /milestones endpoint ( #8733 )
...
Create a /milestones endpoint which basically serves as a dashboard view for milestones, very similar to the /issues or /pulls page.
Closes #8232
2019-12-15 14:20:08 +00:00
GiteaBot
5eaa79518b
[skip ci] Updated translations via Crowdin
2019-12-14 17:32:24 +00:00