Skip to content

Commit 45acc2b

Browse files
authored
Merge pull request #294 from llucax/rm-shadow-cat
Remove special media type for pull request drafts
2 parents cb93f7b + 21da7bd commit 45acc2b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

git-hub

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,14 +1556,8 @@ class PullCmd (IssueCmd):
15561556
force=args.force_push)
15571557
infof("Creating pull request from branch {} to {}:{}",
15581558
remote_head, config.upstream, base)
1559-
if args.draft:
1560-
# The draft feature is only available in a custom media type
1561-
media_type = "application/vnd.github.shadow-cat-preview+json"
1562-
pull = req.post(cls.url(), media_type, head=gh_head, base=base,
1563-
title=title, body=body, draft=args.draft)
1564-
else:
1565-
pull = req.post(cls.url(), head=gh_head, base=base,
1566-
title=title, body=body)
1559+
pull = req.post(cls.url(), head=gh_head, base=base, title=title,
1560+
body=body, draft=args.draft)
15671561
IssueCmd.UpdateCmd._do_update(pull['number'], args.labels,
15681562
args.assignee, args.milestone)
15691563
cls.print_issue_summary(pull)

0 commit comments

Comments
 (0)