Skip to content

Commit

Permalink
Merge pull request #362 from RasaHQ/tweak-handling-alphas-rcs
Browse files Browse the repository at this point in the history
Skip publishing changelog for alphas or RCs
  • Loading branch information
mprazz authored Dec 4, 2020
2 parents fcd0bd3 + d621402 commit 70d9d3b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/publish_gh_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

# if this needs any more dependencies, they need to be installed on github deploy stage
import github3
from pep440_version_utils import Version

def create_github_release(slug: Text, token: Text, tag_name: Text, body: Text):
"""Create a github release."""
Expand Down Expand Up @@ -75,7 +76,11 @@ def main():
print("GITHUB_REPO_SLUG not set", file=sys.stderr)
return 1

md_body = parse_changelog(tag_name)
version = Version(tag_name)
if version.pre:
md_body = "_Pre-release version_"
else:
md_body = parse_changelog(tag_name)

if not md_body:
print("Failed to extract changelog entries for version from changelog.")
Expand Down

0 comments on commit 70d9d3b

Please sign in to comment.