From 8aa921c93ae824cb02015ee91ef476e0acee7b38 Mon Sep 17 00:00:00 2001 From: Oscar Chevalier Date: Mon, 29 Sep 2025 16:34:41 +0200 Subject: [PATCH 1/3] allow drafting --- CHANGES.md | 3 +++ lib_data/github.atd | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 3deca768..09024fda 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +## dev +- Allow to make drafts (@oscar-chevalier #280) + ## 4.5.0 (2025-08-23) - Add ping a repository and org webhook. (@tmcgilchrist #263) - Handle "Bot" user type (@zoggy #270) diff --git a/lib_data/github.atd b/lib_data/github.atd index d8d64243..788ee999 100644 --- a/lib_data/github.atd +++ b/lib_data/github.atd @@ -535,6 +535,7 @@ type new_pull = { ?body: string option; base: string; head: string; + draft: bool; } type new_pull_issue = { From b04274d014de5395d7c87392b8d8ec524c27dc9e Mon Sep 17 00:00:00 2001 From: Oscar Chevalier Date: Mon, 29 Sep 2025 20:56:48 +0200 Subject: [PATCH 2/3] add other optional parameters --- lib_data/github.atd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib_data/github.atd b/lib_data/github.atd index 788ee999..a678ffdc 100644 --- a/lib_data/github.atd +++ b/lib_data/github.atd @@ -535,7 +535,9 @@ type new_pull = { ?body: string option; base: string; head: string; - draft: bool; + ~head_repo: string; + ~draft: bool; + ~maintainer_can_modify : bool; } type new_pull_issue = { From a6c5a5ae2caa5c16f728e7515f4f3ab6736cab0f Mon Sep 17 00:00:00 2001 From: Oscar Chevalier Date: Mon, 29 Sep 2025 21:15:02 +0200 Subject: [PATCH 3/3] modify head_repo --- lib_data/github.atd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_data/github.atd b/lib_data/github.atd index a678ffdc..12880552 100644 --- a/lib_data/github.atd +++ b/lib_data/github.atd @@ -535,7 +535,7 @@ type new_pull = { ?body: string option; base: string; head: string; - ~head_repo: string; + ?head_repo: string option; ~draft: bool; ~maintainer_can_modify : bool; }