Fix updating an existing draft release

Don't just return the release without doing anything else, notably this
didn't allow updating an existing draft release body.

This change required refactoring the code to use a new helper
find_existing_release() function, but the only effective change is that
the main release() function doesn't return early any more if a draft
release already exists.

This commit is best viewed ignoring whitespace-only changes and using
git --color-moved option.
This commit is contained in:
Vadim Zeitlin 2022-09-04 15:59:04 +02:00
parent 9414f126fb
commit 4c1f6af6e1
2 changed files with 83 additions and 67 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long