Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit a96ceb9

Browse files
authored
Merge pull request #142 from matbesancon/more-explicit
more explicit error message for archive
2 parents 190fce1 + fad6a35 commit a96ceb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/whedon_api_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
context 'when accepting a paper as an editor without an archive DOI' do
258258
before do
259259
allow(Octokit::Client).to receive(:new).once.and_return(github_client)
260-
expect(github_client).to receive(:add_comment).once.with(anything, anything, /No archive DOI set. Exiting.../)
260+
expect(github_client).to receive(:add_comment).once.with(anything, anything, /No archive DOI set, provide the Zenodo DOI of the repository. Exiting.../)
261261
post '/dispatch', whedon_accept_no_doi, {'CONTENT_TYPE' => 'application/json'}
262262
end
263263

whedon_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def check_references(custom_branch=nil)
332332
def deposit(dry_run, custom_branch=nil)
333333
if review_issue?
334334
if !archive_doi?
335-
respond "No archive DOI set. Exiting..."
335+
respond "No archive DOI set, provide the Zenodo DOI of the repository. Exiting..."
336336
return
337337
end
338338

0 commit comments

Comments
 (0)