Updated
On this page
Yank command: deprecate a past release by marking it pre-release with a notice (soft) or deleting the GitHub release entirely (hard).
#rlsbl.commands.yank
#rlsbl.commands.yank
Yank command that marks a past release as deprecated, either soft (flag as pre-release and prepend a deprecation notice) or hard (delete the GitHub release while preserving the git tag).
#run_cmd
python
def run_cmd(args, flags)Yank a past GitHub Release.
Default (soft): mark as pre-release and prepend a deprecation notice. With --hard: delete the GitHub Release (git tag is preserved).
#_hard_yank
python
def _hard_yank(tag, dry_run)Delete the GitHub Release and its assets. The git tag stays.
#_soft_yank
python
def _soft_yank(tag, reason, use, dry_run)Mark as pre-release and prepend a deprecation notice to the release body.
#_build_notice
python
def _build_notice(reason, use)Build the deprecation notice string from optional reason and use fields.