Skip to content

Commit

Permalink
Log if there are no changes to a repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Oct 22, 2023
1 parent 102b06e commit 3451259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ v0.2.0 (in development)
apart, as recommended by GitHub
- Retry (with exponential backoff) requests that fail with 5xx errors or due to
rate limiting
- Log a message if no changes are made to a given repository

v0.1.0 (2023-10-19)
-------------------
Expand Down
4 changes: 4 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ impl<'a, R: rand::Rng> LabelMaker<'a, R> {
for s in profile.specs() {
res.extend(self.labels.resolve(s)?);
}
if res.is_empty() {
log::info!("No changes to {}", self.repo.repo);
return Ok(());
}
for r in res {
match r {
LabelResolution::Operation(op) => {
Expand Down

0 comments on commit 3451259

Please sign in to comment.