Commit Graph

75 Commits

Author SHA1 Message Date
GitLab Bot 5e9a171716 Add latest changes from gitlab-org/gitlab@master 2023-12-15 06:13:20 +00:00
GitLab Bot b52aefb599 Add latest changes from gitlab-org/gitlab@master 2023-08-22 15:10:52 +00:00
GitLab Bot d56569ff3e Add latest changes from gitlab-org/gitlab@master 2023-08-09 15:11:41 +00:00
GitLab Bot 1064597e1c Add latest changes from gitlab-org/gitlab@master 2023-06-22 06:08:19 +00:00
GitLab Bot ba55ca9bc4 Add latest changes from gitlab-org/gitlab@master 2023-05-19 12:07:15 +00:00
GitLab Bot fb5d3cceb8 Add latest changes from gitlab-org/gitlab@master 2023-05-04 12:17:18 +00:00
GitLab Bot fa7c331b76 Add latest changes from gitlab-org/gitlab@master 2023-02-15 15:07:42 +00:00
GitLab Bot 95a6825e19 Add latest changes from gitlab-org/gitlab@master 2023-02-07 06:08:04 +00:00
GitLab Bot bc0f141f2f Add latest changes from gitlab-org/gitlab@master 2022-11-23 15:07:42 +00:00
GitLab Bot 0552020767 Add latest changes from gitlab-org/gitlab@master 2022-11-16 15:10:52 +00:00
GitLab Bot 0851e2f024 Add latest changes from gitlab-org/gitlab@master 2022-11-13 21:07:55 +00:00
GitLab Bot b333706699 Add latest changes from gitlab-org/gitlab@master 2022-09-06 15:13:23 +00:00
GitLab Bot e01e71a98f Add latest changes from gitlab-org/gitlab@master 2022-08-23 15:09:40 +00:00
GitLab Bot 8ec882085e Add latest changes from gitlab-org/gitlab@master 2022-08-05 15:12:12 +00:00
GitLab Bot fd1c75caeb Add latest changes from gitlab-org/gitlab@master 2022-08-02 03:09:33 +00:00
GitLab Bot 4b41b57abf Add latest changes from gitlab-org/gitlab@master 2022-07-15 06:09:57 +00:00
GitLab Bot f167d24074 Add latest changes from gitlab-org/gitlab@master 2022-06-29 12:09:26 +00:00
GitLab Bot cdd5eba514 Add latest changes from gitlab-org/gitlab@master 2022-06-13 12:08:29 +00:00
GitLab Bot a67ba1bbfa Add latest changes from gitlab-org/gitlab@master 2022-05-24 03:08:48 +00:00
GitLab Bot 9558f52fd8 Add latest changes from gitlab-org/gitlab@master 2022-05-20 06:08:54 +00:00
GitLab Bot b27cd9649f Add latest changes from gitlab-org/gitlab@master 2022-03-16 06:07:59 +00:00
GitLab Bot 587c487202 Add latest changes from gitlab-org/gitlab@master 2022-03-09 12:07:06 +00:00
GitLab Bot bbfe48cb82 Add latest changes from gitlab-org/gitlab@master 2022-03-09 09:08:34 +00:00
GitLab Bot d1b3784799 Add latest changes from gitlab-org/gitlab@master 2022-01-27 00:14:15 +00:00
GitLab Bot 91e8c3a6ef Add latest changes from gitlab-org/gitlab@master 2021-10-12 09:09:35 +00:00
GitLab Bot 2cdb1c566d Add latest changes from gitlab-org/gitlab@master 2021-09-22 15:12:06 +00:00
GitLab Bot be4b3134a2 Add latest changes from gitlab-org/gitlab@master 2021-05-04 15:10:36 +00:00
GitLab Bot 1769b59b9f Add latest changes from gitlab-org/gitlab@master 2021-04-01 18:13:56 +00:00
GitLab Bot 9f5ac379c7 Add latest changes from gitlab-org/gitlab@master 2021-02-11 12:08:52 +00:00
GitLab Bot 3775eba7c1 Add latest changes from gitlab-org/gitlab@master 2020-10-16 12:09:33 +00:00
GitLab Bot 16515bdfcb Add latest changes from gitlab-org/gitlab@master 2020-10-13 15:08:53 +00:00
GitLab Bot 8bb9ee8769 Add latest changes from gitlab-org/gitlab@master 2020-07-31 21:10:12 +00:00
GitLab Bot 1b26aaa633 Add latest changes from gitlab-org/gitlab@master 2020-07-30 18:09:39 +00:00
GitLab Bot 840d5ecdbb Add latest changes from gitlab-org/gitlab@master 2020-07-02 15:09:08 +00:00
GitLab Bot 9345f69894 Add latest changes from gitlab-org/gitlab@master 2020-03-17 03:09:27 +00:00
GitLab Bot bd497e352e Add latest changes from gitlab-org/gitlab@master 2020-02-12 12:09:01 +00:00
GitLab Bot 727b1a890c Add latest changes from gitlab-org/gitlab@master 2020-01-16 21:08:24 +00:00
GitLab Bot 29c01c6c91 Add latest changes from gitlab-org/gitlab@master 2019-11-14 03:06:25 +00:00
GitLab Bot 81f7adf08b Add latest changes from gitlab-org/gitlab@master 2019-09-19 18:06:18 +00:00
Markus Koller f8cecafb07
Add start_sha to commits API
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.
2019-07-18 09:19:18 +02:00
Shinya Maeda 48307fac1e Extend MergeToRefService for creating merge ref from the other ref
Currently, MergeToRefService is specifically designed for
createing merge commits from source branch and target branch of
merge reqeusts. We extend this behavior to source branch and any
target ref paths.
2019-07-05 17:15:10 +07:00
Oswaldo Ferreira 8d7fb292d2 Avoid encoding errors for MergeToRefService 2019-06-10 15:46:39 -03:00
Luke Duncalfe 49cb4b3dfc Add support for two-step Gitaly Rebase RPC
The new two-step Gitaly `Rebase` RPC yields the rebase commit SHA to the
client before proceeding with the rebase.

This avoids an issue where the rebase commit SHA was returned when the
RPC had fully completed, and in some cases this would be after the Rails
`post_receive` worker services had already run. In these situations,
the merge request did not yet have its rebase_commit_sha attribute set
introducing the possibility for bugs (such as previous approvals being
reset).

https://gitlab.com/gitlab-org/gitlab-ee/issues/5966
2019-05-02 17:30:07 +00:00
Bob Van Landuyt 8c5b3d0302 Allow streaming io objects into Gitaly
This allows us to set the encoding of an IO passed without reading it
into memory.

This is useful if we want to stream files into Gitaly. Like we do when
uploading a new file to the repository.
2019-04-01 20:17:40 +02:00
Andrew Newdigate 3288e1a874 Adds the Rubocop ReturnNil cop
This style change enforces `return if ...` instead of
`return nil if ...` to save maintainers a few minor review points
2019-03-06 17:51:56 +02:00
Patrick Bajao de5aef3bbd Accept force option on commit via API
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.
2019-03-06 10:44:59 +00:00
Oswaldo Ferreira 1ad699677f Support merge to ref for merge-commit and squash
Adds the ground work for writing into
the merge ref refs/merge-requests/:iid/merge the
merge result between source and target branches of
a MR, without further side-effects such as
mailing, MR updates and target branch changes.
2019-02-25 10:40:58 -03:00
Nick Thomas 14076062df
Commits API: Preserve file content in move operations if unspecified 2018-11-28 11:50:05 +00:00
gfyoung ebf98f27c4 Enable even more frozen string in lib/gitlab
Enables frozen string for the following:

* lib/gitlab/fogbugz_import/**/*.rb
* lib/gitlab/gfm/**/*.rb
* lib/gitlab/git/**/*.rb
* lib/gitlab/gitaly_client/**/*.rb
* lib/gitlab/gitlab_import/**/*.rb
* lib/gitlab/google_code_import/**/*.rb
* lib/gitlab/gpg/**/*.rb
* lib/gitlab/grape_logging/**/*.rb
* lib/gitlab/graphql/**/*.rb
* lib/gitlab/graphs/**/*.rb
* lib/gitlab/hashed_storage/**/*.rb
* lib/gitlab/health_checks/**/*.rb

Partially address gitlab-org/gitlab-ce#47424.
2018-11-13 11:42:15 -08:00
Bob Van Landuyt 6fbdc5ed52 Apply patches when creating MR via email
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.
2018-11-07 16:27:55 +01:00