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

Commit fad6a35

Browse files
committed
more explicit error message for archive
1 parent d8f9ba7 commit fad6a35

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
@@ -331,7 +331,7 @@ def check_references(custom_branch=nil)
331331
def deposit(dry_run, custom_branch=nil)
332332
if review_issue?
333333
if !archive_doi?
334-
respond "No archive DOI set. Exiting..."
334+
respond "No archive DOI set, provide the Zenodo DOI of the repository. Exiting..."
335335
return
336336
end
337337

0 commit comments

Comments
 (0)