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
e147b44a
Commit
e147b44a
authored
Jan 16, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
93e6eb3c
906c24e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
bin/changelog
bin/changelog
+9
-1
No files found.
bin/changelog
View file @
e147b44a
...
@@ -148,7 +148,7 @@ class ChangelogEntry
...
@@ -148,7 +148,7 @@ class ChangelogEntry
def
execute
def
execute
assert_feature_branch!
assert_feature_branch!
assert_title!
assert_title!
unless
editor
assert_new_file!
assert_new_file!
# Read type from $stdin unless is already set
# Read type from $stdin unless is already set
...
@@ -162,6 +162,10 @@ class ChangelogEntry
...
@@ -162,6 +162,10 @@ class ChangelogEntry
write
write
amend_commit
if
options
.
amend
amend_commit
if
options
.
amend
end
end
if
editor
system
(
"
#{
editor
}
'
#{
file_path
}
'"
)
end
end
end
private
private
...
@@ -180,6 +184,10 @@ class ChangelogEntry
...
@@ -180,6 +184,10 @@ class ChangelogEntry
File
.
write
(
file_path
,
contents
)
File
.
write
(
file_path
,
contents
)
end
end
def
editor
ENV
[
'EDITOR'
]
end
def
amend_commit
def
amend_commit
fail_with
"git add failed"
unless
system
(
*
%W[git add
#{
file_path
}
]
)
fail_with
"git add failed"
unless
system
(
*
%W[git add
#{
file_path
}
]
)
...
...
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