0

I created a tag in repository using git lib in python. this code works fine and creates a new tag:

repo = Repo(repo_path)
repo.create_tag('some tag..')

now I'm trying to make this tag into a Release and yet found a solution.

thanks

  • When you say “make into a release”, what do you mean? – evolutionxbox Nov 20 '18 at 09:21
  • Do you mean to create a `release` branch? Have a look [here](https://producingoss.com/en/release-branches.html) and [here](https://nvie.com/posts/a-successful-git-branching-model/) to understand the concept of release in software engineering. – clamentjohn Nov 20 '18 at 09:51
  • I mean that when I create new tag in GitHub you have "Publish release" button at the end of the page, and then you can see this tag under Releases, I'm trying to find out if there's a flag in create_tag() that I could set..? – danielle machpud Nov 20 '18 at 09:57

1 Answers1

0

You do not attach anything, the create_tag creates a tag that points to the current build in git hub, when you do repo.create_tag('some tag..') git creates a tag and links that snapshot of your project.

So all you need to do is create_tag and commit & push, thats it.

user1
  • 599
  • 1
  • 3
  • 20