summaryrefslogtreecommitdiff
path: root/app/services/commits
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-271-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-302-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-211-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-111-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-161-2/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-221-1/+18
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-032-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-142-4/+14
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Add start_sha to commits APIMarkus Koller2019-07-181-1/+17
| | | | | | | | | | When passing start_branch on committing from the WebIDE, it's possible that the branch has changed since editing started, which results in the change being applied on top of the latest commit in the branch and overwriting the new changes. By passing the start_sha instead we can make sure that the change is applied on top of the commit which the user started editing from.
* Accept force option on commit via APIPatrick Bajao2019-03-061-2/+7
| | | | | | | | When `force` is set to `true` and `start_branch` is set, the branch will be ovewritten with the new commit based on the `HEAD` of the `start_branch`. This commit includes changes to update the `gitaly-proto` gem.
* Fix misspellings in app/spec executable linesTakuya Noguchi2019-02-271-2/+2
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* Add releases APIAlessio Caiazza2018-12-311-2/+1
| | | | | | | | | | | This commit introduces Releases API under /api/v4/projects/:id/releases * We are introducing release policies at project level. * We are deprecating releases changes from tags, both api and web interface. * Tags::CreateService no longer create a release This feature is controlled by :releases_page feature flag
* Eliminate duplicated wordsTakuya Noguchi2018-11-221-1/+1
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* Correct error message returned by ChangeServiceRobert Speicher2018-11-081-2/+6
| | | | | | | Previously the string was spanning multiple lines and included a needless `\n` character in the resulting error message. This change also reduces duplication by assigning two variables.
* Apply patches when creating MR via emailBob Van Landuyt2018-11-072-1/+67
| | | | | | | | | | | | | | | This allows users to add patches as attachments to merge request created via email. When an email to create a merge request is sent, all the attachments ending in `.patch` will be applied to the branch specified in the subject of the email. If the branch did not exist, it will be created from the HEAD of the repository. When the patches could not be applied, the error message will be replied to the user. The patches can have a maximum combined size of 2MB for now.
* Let Commits::TagService return a result hashPeter Leitzen2018-08-101-3/+7
|
* Remove "TODO authorize"Peter Leitzen2018-08-101-1/+0
| | | | Authorisation is done in to Tags::CreateService
* Rename Commits::UpdateService to Commits::TagServicePeter Leitzen2018-08-101-7/+1
|
* Create a system note after tagging a commitPeter Leitzen2018-08-101-1/+2
|
* Tag a commit via `/tag 1.2.3 message`Peter Leitzen2018-08-101-1/+20
|
* Create empty Commits::UpdateService and wire it upPeter Leitzen2018-08-101-0/+9
|
* Enable frozen string in apps/services/**/*.rbrepo-forks/gitlab-ce-frozen-string-enable-apps-services-innergfyoung2018-07-164-0/+8
| | | | | | For directories application_settings --> labels. Partially addresses #47424.
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-2/+0
|
* Don't use Gitlab::Utils.nlbr in Gitlab::GitJacob Vosmaer (GitLab)2018-06-111-1/+1
|
* Prepare cherry-pick and revert for migration to GitalyJacob Vosmaer (GitLab)2017-09-191-1/+5
|
* Move GitOperationService to Gitlab::Gitmove-git-operation-serviceJacob Vosmaer2017-09-011-1/+1
|
* Move GitHooksService to Gitlab::GitJacob Vosmaer2017-08-231-1/+1
|
* Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-141-0/+1
| | | | | An upcoming update to rubocop-gitlab-security added additional violations.
* Refactor changing files in web UIDouwe Maan2017-04-204-49/+81
|
* Remove useless assignmentdm-fix-cherry-pickDouwe Maan2017-03-031-1/+1
|
* Use separate error class for cherry-pick and revert tree errorsDouwe Maan2017-03-021-9/+5
|
* Fix cherry-picking or reverting through an MRDouwe Maan2017-03-021-30/+22
|
* Enable and autocorrect the CustomErrorClass copSean McGivern2017-03-011-2/+2
|
* Rename from base to start because base could mean merge baseLin Jen-Shin2017-01-061-5/+5
|
* Rename source to base to avoid confusion from MRLin Jen-Shin2017-01-061-5/+5
|
* Prefer leading dots over trailing dotsLin Jen-Shin2017-01-061-2/+2
|
* Fix for initial commit and remove unneeded argsLin Jen-Shin2017-01-061-2/+9
|
* Just trust set_commit_variables to set everything!Lin Jen-Shin2017-01-061-1/+2
| | | | | | | | Removing those weird setup in assign_change_commit_vars fixed all the failures in the tests. I still cannot say why but clearly we need to have better names. It's so confusing right now. We should seriously stop fiddling those instance variables.
* Merge branch 'master' into fix-git-hooks-when-creating-fileLin Jen-Shin2017-01-041-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (1031 commits) Add changelog entry for renaming API param [ci skip] Add missing milestone parameter Refactor issues filter in API Fix project hooks params Gitlab::LDAP::Person uses LDAP attributes configuration Don't delete files from spec/fixtures Copy, don't move uploaded avatar files Minor improvements to changelog docs Rename logo, apply for Slack too Fix Gemfile.lock for the octokit update Fix cross-project references copy to include the project reference Add logo in public files Use stable icon for Mattermost integration rewrite the item.respond_to?(:x?) && item.x? to item.try(:x?) API: extern_uid is a string Increases pipeline graph drowdown width in order to prevent strange position on chrome on ubuntu Removed bottom padding from merge manually from CLI because of repositioning award emoji's Make haml_lint happy Improve spec Add feature tests for Cycle Analytics ...
| * fix awkward verb conjugation in cherry-pick and revert errorsMike Greiling2016-12-101-1/+1
| |
* | Fix source_project and also pass source_projectLin Jen-Shin2016-12-141-0/+1
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_19747556
* | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2016-12-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-hooks-when-creating-file * upstream/master: (60 commits) Refactor SSH keys docs Improvements to setting up ssh Do not reload diff for merge request made from fork when target branch in fork is updated Add 8.12.10, 8.12.11, and 8.12.12 CHANGELOG.md items Changes after review Fix broken test Adds CHANGELOG entry Adds tests Uniformize props name format Replace commit icon svg logic Replace play icon svg logic Update docs to reflect new defaults on omnibus Merge branch 'jej-23867-use-mr-finder-instead-of-access-check' into 'security' Merge branch 'html-safe-diff-line-content' into 'security' Merge branch 'rs-filter-authentication_token' into 'security' Merge branch 'destroy-session' into 'security' remove unnecessary issues event filter on comments tab Updating reference to database password Add CHANGELOG entry Displays milestone remaining days only when it's present ...
| * Merge branch 'jej-23867-use-mr-finder-instead-of-access-check' into 'security'Douwe Maan2016-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace MR access checks with use of MergeRequestsFinder Split from !2024 to partially solve https://gitlab.com/gitlab-org/gitlab-ce/issues/23867 :warning: - Potentially untested :bomb: - No test coverage :traffic_light: - Test coverage of some sort exists (a test failed when error raised) :vertical_traffic_light: - Test coverage of return value (a test failed when nil used) :white_check_mark: - Permissions check tested - [x] :bomb: app/finders/notes_finder.rb:17 - [x] :warning: app/views/layouts/nav/_project.html.haml:80 [`.count`] - [x] :bomb: app/controllers/concerns/creates_commit.rb:84 - [x] :traffic_light: app/controllers/projects/commits_controller.rb:24 - [x] :traffic_light: app/controllers/projects/compare_controller.rb:56 - [x] :vertical_traffic_light: app/controllers/projects/discussions_controller.rb:29 - [x] :white_check_mark: app/controllers/projects/todos_controller.rb:27 - [x] :vertical_traffic_light: app/models/commit.rb:268 - [x] :white_check_mark: lib/gitlab/search_results.rb:71 - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#d1c10892daedb4d4dd3d4b12b6d071091eea83df_267_266 Memoize ` merged_merge_request(current_user)` - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#d1c10892daedb4d4dd3d4b12b6d071091eea83df_248_247 Expected side effect for `merged_merge_request!`, consider `skip_authorization: true`. - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#d1c10892daedb4d4dd3d4b12b6d071091eea83df_269_269 Scary use of unchecked `merged_merge_request?` See merge request !2033
* | Cleanup parameters, easier to understand andLin Jen-Shin2016-12-081-1/+1
| | | | | | | | more consistent across different methodst
* | Pass source_branch properly for cherry-pick/revertLin Jen-Shin2016-12-071-1/+8
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237/diffs#note_19210818
* | Add `source_branch` option for various git operationsLin Jen-Shin2016-11-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | If `source_branch` option is passed, and target branch cannot be found, `Repository#update_branch_with_hooks` would try to create a new branch from `source_branch`. This way, we could make changes in the new branch while only firing the hooks once for the changes. Previously, we can only create a new branch first then make changes to the new branch, firing hooks twice. This behaviour is bad for CI. Fixes #7237
* | Revert "Don't execute git hooks if you create branch as part of other change"Lin Jen-Shin2016-11-151-1/+1
| | | | | | | | This reverts commit a431ca0f8b7f8967e89a35caddf1e41e53eee290.
* | Don't execute git hooks if you create branch as part of other changeKamil Trzcinski2016-11-021-1/+1
|/ | | | | | | | | | | Currently, our procedure for adding a commit requires us to execute `CreateBranchService` before file creation. It's OK, but also we do execute `git hooks` (the `PostReceive` sidekiq job) as part of this process. However, this hook is execute before the file is actually committed, so the ref is updated. Secondly, we do execute a `git hooks` after committing file and updating ref. This results in duplicate `PostReceive` jobs, where the first one is completely invalid. This change makes the branch creation, something that is intermediate step of bigger process (file creation or update, commit cherry pick or revert) to not execute git hooks.