Skip to contents

Tag a specific portion of code

Usage

create_tag(owner, repo, tag, message, object, type)

Arguments

owner

Name of the person or organization who owns the repository.

repo

Name of the repository.

tag

The tag's name. This is typically a version (e.g., "v0.0.1").

message

The tag message.

object

The SHA of the git object this is tagging.

type

The type of the object we're tagging. Normally this is a commit but it can also be a tree or a blob.

References

<https://developer.github.com/v3/git/tags/#create-a-tag-object>