Skip to content

Commit

Permalink
Make "date" on tagger obj for create_tag optional
Browse files Browse the repository at this point in the history
  • Loading branch information
marknet15 committed Oct 31, 2021
1 parent 99a65b2 commit f51abc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github3/repos/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ def create_tag(
'blob'
:param dict tagger:
(required), containing the name, email of the
tagger and the date it was tagged
tagger and optionally the date it was tagged
:param bool lightweight:
(optional), if False, create an annotated
tag, otherwise create a lightweight tag (a Reference).
Expand All @@ -1341,7 +1341,7 @@ def create_tag(
return self.create_ref("refs/tags/" + tag, sha)

json = None
if tag and message and sha and obj_type and len(tagger) == 3:
if tag and message and sha and obj_type and len(tagger) >= 2:
data = {
"tag": tag,
"message": message,
Expand Down

0 comments on commit f51abc4

Please sign in to comment.