Skip to content

Commit d0dc169

Browse files
committed
Adds changelog item and bumps the version
1 parent 51ea7ad commit d0dc169

File tree

3 files changed

+8
-46
lines changed

3 files changed

+8
-46
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v6.0.3
2+
- Print new project information in post-receive
3+
14
v6.0.2
25
- Use grpc-go 1.9.1 (!184)
36
- Update gitaly-proto and gitaly libs (!185)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.2
1+
6.0.3

spec/gitlab_post_receive_spec.rb

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,7 @@
6262
end
6363

6464
context 'when redirected message available' do
65-
let(:message) do
66-
<<~MSG
67-
Project 'foo/bar' was moved to 'foo/baz'.
68-
69-
Please update your Git remote:
70-
71-
git remote set-url origin http://localhost:3000/foo/baz.git
72-
MSG
73-
end
74-
65+
let(:message) { "This is a redirected message" }
7566
let(:response) do
7667
{
7768
'reference_counter_decreased' => true,
@@ -86,20 +77,7 @@
8677
end
8778

8879
context 'when project created message is available' do
89-
let(:message) do
90-
<<~MSG
91-
92-
The private project foo/bar was successfully created.
93-
94-
To configure the remote, run:
95-
git remote add origin http://localhost:3000/foo/bar.git
96-
97-
To view the project, visit:
98-
http://localhost:3000/foo/bar
99-
100-
MSG
101-
end
102-
80+
let(:message) { "This is a created project message" }
10381
let(:response) do
10482
{
10583
'reference_counter_decreased' => true,
@@ -163,29 +141,10 @@ def assert_broadcast_message_printed(gitlab_post_receive)
163141
end
164142

165143
def assert_redirected_message_printed(gitlab_post_receive)
166-
message = <<~MSG
167-
Project 'foo/bar' was moved to 'foo/baz'.
168-
169-
Please update your Git remote:
170-
171-
git remote set-url origin http://localhost:3000/foo/baz.git
172-
MSG
173-
expect(gitlab_post_receive).to receive(:puts).with(message).ordered
144+
expect(gitlab_post_receive).to receive(:puts).with("This is a redirected message")
174145
end
175146

176147
def assert_project_created_message_printed(gitlab_post_receive)
177-
message = <<~MSG
178-
179-
The private project foo/bar was successfully created.
180-
181-
To configure the remote, run:
182-
git remote add origin http://localhost:3000/foo/bar.git
183-
184-
To view the project, visit:
185-
http://localhost:3000/foo/bar
186-
187-
MSG
188-
189-
expect(gitlab_post_receive).to receive(:puts).with(message).ordered
148+
expect(gitlab_post_receive).to receive(:puts).with("This is a created project message")
190149
end
191150
end

0 commit comments

Comments
 (0)