Skip to content

Commit

Permalink
exclude versions from community review
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell authored May 7, 2024
1 parent 1e02d04 commit d245d70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iga/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,8 @@ def cli(ctx, url_or_tag, all_assets=False, community=None, draft=False,

if draft:
_inform(f'The draft record is available at {record.draft_url}')
elif community:
elif community and not parent_id:
# Record versions (when we have a parent_id) do not go through review workflow
invenio_community_send(record, community)
_inform(f'The record has been submitted to community "{community}"'
f' and the draft is available at {record.draft_url}')
Expand Down

0 comments on commit d245d70

Please sign in to comment.