Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
26d8d0ee
Commit
26d8d0ee
authored
Aug 09, 2017
by
Jacob Schatz
Committed by
Eric Eastwood
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uses path.
parent
3837311b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
app/assets/javascripts/repo/components/repo_commit_section.vue
...ssets/javascripts/repo/components/repo_commit_section.vue
+8
-6
No files found.
app/assets/javascripts/repo/components/repo_commit_section.vue
View file @
26d8d0ee
...
@@ -13,7 +13,7 @@ const RepoCommitSection = {
...
@@ -13,7 +13,7 @@ const RepoCommitSection = {
computed
:
{
computed
:
{
branchPaths
()
{
branchPaths
()
{
const
branch
=
this
.
currentBranch
;
const
branch
=
this
.
currentBranch
;
return
this
.
changedFiles
.
map
(
f
=>
Helper
.
getFilePathFromFullPath
(
f
.
url
,
branch
)
);
return
this
.
changedFiles
.
map
(
f
=>
f
.
path
);
},
},
cantCommitYet
()
{
cantCommitYet
()
{
...
@@ -30,11 +30,13 @@ const RepoCommitSection = {
...
@@ -30,11 +30,13 @@ const RepoCommitSection = {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const
branch
=
Store
.
currentBranch
;
const
branch
=
Store
.
currentBranch
;
const
commitMessage
=
this
.
commitMessage
;
const
commitMessage
=
this
.
commitMessage
;
const
actions
=
this
.
changedFiles
.
map
(
f
=>
({
const
actions
=
this
.
changedFiles
.
map
(
f
=>
{
action
:
'
update
'
,
return
{
file_path
:
Helper
.
getFilePathFromFullPath
(
f
.
url
,
branch
),
action
:
'
update
'
,
content
:
f
.
newContent
,
file_path
:
f
.
path
,
}));
content
:
f
.
newContent
,
};
});
const
payload
=
{
const
payload
=
{
branch
:
Store
.
targetBranch
,
branch
:
Store
.
targetBranch
,
commit_message
:
commitMessage
,
commit_message
:
commitMessage
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment