Skip to content

Commit 5a4db9d

Browse files
authored
Merge pull request #87 from jwodder/no-retry-4xx
Don't retry on 4xx responses other than 403
2 parents ca8094a + a6bb8cd commit 5a4db9d

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v0.6.1 (in development)
2+
-----------------------
3+
- **Bugfix:** Don't retry on 4xx statuses other than 403
4+
15
v0.6.0 (2024-12-20)
26
-------------------
37
- `apply`: The argument to `--repo-file` can now be `-` to read from standard

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "labelmaker"
3-
version = "0.6.0"
3+
version = "0.6.1-dev"
44
edition = "2021"
55
rust-version = "1.81"
66
description = "Create & enforce sets of labels in GitHub repositories"

src/client/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ impl Retrier {
103103
}
104104
}
105105
Err(ureq::Error::Status(code, _)) if code >= 500 => backoff,
106+
Err(ureq::Error::Status(_, _)) => return self.finalize(resp),
106107
Err(_) => backoff,
107108
Ok(_) => return self.finalize(resp),
108109
};

0 commit comments

Comments
 (0)