JGithubPackageDataTags
class JGithubPackageDataTags extends JGithubPackage
GitHub API Data Tags class for the Joomla Platform.
This tags API only deals with tag objects - so only annotated tags, not lightweight tags.
Methods
object
get(
string $owner,
string $repo,
string $sha)
Get a Tag.
object
create(
string $owner,
string $repo,
string $tag,
string $message,
string $object,
string $type,
string $tagger_name,
string $tagger_email,
string $tagger_date)
Create a Tag Object
Details
object
create(
string $owner,
string $repo,
string $tag,
string $message,
string $object,
string $type,
string $tagger_name,
string $tagger_email,
string $tagger_date)
Create a Tag Object
Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then create the refs/tags/[tag] reference. If you want to create a lightweight tag, you simply have to create the reference - this call would be unnecessary.