summaryrefslogtreecommitdiffstats
path: root/modules/repofiles/delete.go
Commit message (Collapse)AuthorAgeFilesLines
* enhancement: add signoff option in commit form (#14516)a10121127962021-01-291-2/+3
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Add configurable Trust Models (#11712)zeripath2020-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add configurable Trust Models Gitea's default signature verification model differs from GitHub. GitHub uses signatures to verify that the committer is who they say they are - meaning that when GitHub makes a signed commit it must be the committer. The GitHub model prevents re-publishing of commits after revocation of a key and prevents re-signing of other people's commits to create a completely trusted repository signed by one key or a set of trusted keys. The default behaviour of Gitea in contrast is to always display the avatar and information related to a signature. This allows signatures to be decoupled from the committer. That being said, allowing arbitary users to present other peoples commits as theirs is not necessarily desired therefore we have a trust model whereby signatures from collaborators are marked trusted, signatures matching the commit line are marked untrusted and signatures that match a user in the db but not the committer line are marked unmatched. The problem with this model is that this conflicts with Github therefore we need to provide an option to allow users to choose the Github model should they wish to. Signed-off-by: Andrew Thornton <art27@cantab.net> * Adjust locale strings Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @6543 Co-authored-by: 6543 <6543@obermui.de> * Update models/gpg_key.go * Add migration for repository Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Allow to set protected file patterns that can not be changed under no ↵Lauris BH2020-03-271-11/+21
| | | | | conditions (#10806) Co-Authored-By: zeripath <art27@cantab.net>
* Add require signed commit for protected branch (#9708)zeripath2020-01-151-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix #9752 (#9769)zeripath2020-01-141-1/+1
|
* Move newbranch to standalone package (#9627)Lunny Xiao2020-01-141-2/+3
| | | | | | | | | | | | * Move newbranch to standalone package * move branch functions to modules to avoid dependencies cycles * fix tests * fix lint * fix lint
* [API] Extend contents with dates (#9464)65432019-12-241-1/+7
| | | | | | | | | | | | | | | * extend CommitTree func * make sure Date NOT nil * spell corection Co-Authored-By: zeripath <art27@cantab.net> * add TEST Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* File Edit: Author/Committer interchanged [BugFix] (#9297)65432019-12-091-1/+1
| | | | | | | | | * simple fix * fix test too * repair more twists use same sequence: first Author, then Commiter
* Fix duplicate call of webhook (#7821)Antoine GIRARD2019-08-111-26/+0
|
* Be more strict with git arguments (#7715)zeripath2019-08-051-0/+6
| | | | | | * Be more strict with git arguments * fix-up commit test * use bindings for branch name
* Fixes #7152 - Allow create/update/delete message to be empty, use default ↵Richard Mahn2019-06-291-0/+5
| | | | | | | | | | message (#7324) * Fixes #7152 - Allow create/update/delete message to be empty, use default message * Linting fix * Fix to delete integration tests
* Add golangci (#6418)kolaente2019-06-121-6/+4
|
* Move PushUpdate dependency from models to repofiles (#6763)Lunny Xiao2019-06-101-3/+2
| | | | | | * remove push_update * move models.PushUpdate to repofiles.PushUpdate
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-111-1/+1
| | | | | | | | | | | | * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)Richard Mahn2019-04-171-0/+209