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

Commit

Permalink
Merge pull request #142 from matbesancon/more-explicit
Browse files Browse the repository at this point in the history
more explicit error message for archive
  • Loading branch information
xuanxu authored Apr 9, 2024
2 parents 190fce1 + fad6a35 commit a96ceb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/whedon_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
context 'when accepting a paper as an editor without an archive DOI' do
before do
allow(Octokit::Client).to receive(:new).once.and_return(github_client)
expect(github_client).to receive(:add_comment).once.with(anything, anything, /No archive DOI set. Exiting.../)
expect(github_client).to receive(:add_comment).once.with(anything, anything, /No archive DOI set, provide the Zenodo DOI of the repository. Exiting.../)
post '/dispatch', whedon_accept_no_doi, {'CONTENT_TYPE' => 'application/json'}
end

Expand Down
2 changes: 1 addition & 1 deletion whedon_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def check_references(custom_branch=nil)
def deposit(dry_run, custom_branch=nil)
if review_issue?
if !archive_doi?
respond "No archive DOI set. Exiting..."
respond "No archive DOI set, provide the Zenodo DOI of the repository. Exiting..."
return
end

Expand Down

0 comments on commit a96ceb9

Please sign in to comment.