Skip to content

Commit d139983

Browse files
committed
ffcp_auto_{close,postpone} -> should_ffcp_auto_close_{close,postpone}.
1 parent ada4220 commit d139983

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/github/nag.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,11 @@ fn evaluate_nags() -> DashResult<()> {
465465
}
466466

467467
fn can_ffcp_close(issue: &Issue) -> bool {
468-
SETUP.ffcp_auto_close(&issue.repository)
468+
SETUP.should_ffcp_auto_close(&issue.repository)
469469
}
470470

471471
fn can_ffcp_postpone(issue: &Issue) -> bool {
472-
SETUP.ffcp_auto_postpone(&issue.repository)
472+
SETUP.should_ffcp_auto_postpone(&issue.repository)
473473
}
474474

475475
fn execute_ffcp_actions(issue: &Issue, disposition: FcpDisposition) {

src/teams.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ impl RfcbotConfig {
3636
}
3737

3838
/// Are we allowed to auto-close issues after F-FCP in this repo?
39-
pub fn ffcp_auto_close(&self, repo: &str) -> bool {
39+
pub fn should_ffcp_auto_close(&self, repo: &str) -> bool {
4040
self.fcp_behaviors.get(repo).map(|fcp| fcp.close).unwrap_or_default()
4141
}
4242

4343
/// Are we allowed to auto-postpone issues after F-FCP in this repo?
44-
pub fn ffcp_auto_postpone(&self, repo: &str) -> bool {
44+
pub fn should_ffcp_auto_postpone(&self, repo: &str) -> bool {
4545
self.fcp_behaviors.get(repo).map(|fcp| fcp.postpone).unwrap_or_default()
4646
}
4747
}
@@ -211,16 +211,16 @@ members = [
211211
assert!(map.get("random").is_none());
212212

213213
// FFCP behavior correct:
214-
assert!(cfg.ffcp_auto_close("rust-lang/alpha"));
215-
assert!(cfg.ffcp_auto_postpone("rust-lang/alpha"));
216-
assert!(!cfg.ffcp_auto_close("foobar/beta"));
217-
assert!(!cfg.ffcp_auto_postpone("foobar/beta"));
218-
assert!(!cfg.ffcp_auto_close("bazquux/gamma"));
219-
assert!(!cfg.ffcp_auto_postpone("bazquux/gamma"));
220-
assert!(!cfg.ffcp_auto_close("wibble/epsilon"));
221-
assert!(!cfg.ffcp_auto_postpone("wibble/epsilon"));
222-
assert!(!cfg.ffcp_auto_close("random"));
223-
assert!(!cfg.ffcp_auto_postpone("random"));
214+
assert!(cfg.should_ffcp_auto_close("rust-lang/alpha"));
215+
assert!(cfg.should_ffcp_auto_postpone("rust-lang/alpha"));
216+
assert!(!cfg.should_ffcp_auto_close("foobar/beta"));
217+
assert!(!cfg.should_ffcp_auto_postpone("foobar/beta"));
218+
assert!(!cfg.should_ffcp_auto_close("bazquux/gamma"));
219+
assert!(!cfg.should_ffcp_auto_postpone("bazquux/gamma"));
220+
assert!(!cfg.should_ffcp_auto_close("wibble/epsilon"));
221+
assert!(!cfg.should_ffcp_auto_postpone("wibble/epsilon"));
222+
assert!(!cfg.should_ffcp_auto_close("random"));
223+
assert!(!cfg.should_ffcp_auto_postpone("random"));
224224
}
225225

226226
#[test]

0 commit comments

Comments
 (0)