Skip to content

Commit c45599b

Browse files
committed
wip
1 parent 72a99d0 commit c45599b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/github.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl GitHubClient {
168168
self.config.api_base, repo.owner, repo.repo, pr_number
169169
);
170170

171-
let response = ureq::get(&url)
171+
let mut response = ureq::get(&url)
172172
.header("Authorization", &format!("Bearer {}", self.config.token))
173173
.header("Accept", "application/vnd.github.v3+json")
174174
.header("User-Agent", "git-stack")
@@ -192,7 +192,7 @@ impl GitHubClient {
192192
self.config.api_base, repo.owner, repo.repo, repo.owner, branch
193193
);
194194

195-
let response = ureq::get(&url)
195+
let mut response = ureq::get(&url)
196196
.header("Authorization", &format!("Bearer {}", self.config.token))
197197
.header("Accept", "application/vnd.github.v3+json")
198198
.header("User-Agent", "git-stack")
@@ -218,7 +218,7 @@ impl GitHubClient {
218218
self.config.api_base, repo.owner, repo.repo
219219
);
220220

221-
let response = ureq::post(&url)
221+
let mut response = ureq::post(&url)
222222
.header("Authorization", &format!("Bearer {}", self.config.token))
223223
.header("Accept", "application/vnd.github.v3+json")
224224
.header("User-Agent", "git-stack")
@@ -243,7 +243,7 @@ impl GitHubClient {
243243
self.config.api_base, repo.owner, repo.repo, pr_number
244244
);
245245

246-
let response = ureq::patch(&url)
246+
let mut response = ureq::patch(&url)
247247
.header("Authorization", &format!("Bearer {}", self.config.token))
248248
.header("Accept", "application/vnd.github.v3+json")
249249
.header("User-Agent", "git-stack")

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ enum PrAction {
137137
#[arg(long, short)]
138138
title: Option<String>,
139139
/// PR body/description
140-
#[arg(long, short = 'b')]
140+
#[arg(long, short = 'm')]
141141
body: Option<String>,
142142
/// Create as draft PR
143-
#[arg(long, short)]
143+
#[arg(long)]
144144
draft: bool,
145145
/// Open PR in browser after creation
146146
#[arg(long)]

0 commit comments

Comments
 (0)