class Github::GitData::Tags
def create(user_name, repo_name, params={})
}
"date" => "2011-06-17T14:53:3"
"email" => "schacon@gmail.com",
"name" => "Scott Chacon",
"tagger" => {
"object": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c",
"type": "commit",
"message" => "initial version\n",
"tag" => "v0.0.1",
github.git_data.tags.create 'user-name', 'repo-name',
github = Github.new
= Examples
* tagger.date:: Timestamp of when this object was tagged
* tagger.email:: String of the email of the author of the tag
* tagger.name:: String of the name of the author of the tag
* :type - String of the type of the object we're tagging. Normally this is a commit but it can also be a tree or a blob
* :object - String of the SHA of the git object this is tagging
* :message - String of the tag message
* :tag - String of the tag
= Parameters
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.
you have to do this call to create the tag object, and then create
makes a tag in Git. If you want to create an annotated tag in Git,
Note that creating a tag object does not create the reference that
Create a tag object
def create(user_name, repo_name, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? normalize! params filter! VALID_TAG_PARAM_NAMES, params assert_valid_values(VALID_TAG_PARAM_VALUES, params) post_request("/repos/#{user}/#{repo}/git/tags", params) end
def get(user_name, repo_name, sha, params={})
github.git_data.tags.get 'user-name', 'repo-name', 'sha'
github = Github.new
= Examples
Get a tag
def get(user_name, repo_name, sha, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of sha normalize! params get_request("/repos/#{user}/#{repo}/git/tags/#{sha}", params) end
def initialize(options = {})
def initialize(options = {}) super(options) end