Skip to content

Commit 26b140a

Browse files
committed
Limit validate_config actions.
1 parent dbfa172 commit 26b140a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/handlers/validate_config.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
use crate::{
66
config::{ValidateConfig, CONFIG_FILE_NAME},
7+
github::IssuesAction,
78
handlers::{Context, IssuesEvent},
89
};
910
use tracing as log;
@@ -13,6 +14,12 @@ pub(super) async fn parse_input(
1314
event: &IssuesEvent,
1415
_config: Option<&ValidateConfig>,
1516
) -> Result<Option<()>, String> {
17+
if !matches!(
18+
event.action,
19+
IssuesAction::Opened | IssuesAction::Reopened | IssuesAction::Synchronize
20+
) {
21+
return Ok(None);
22+
}
1623
// All processing needs to be done in parse_input (instead of
1724
// handle_input) because we want this to *always* run. handle_input
1825
// requires the config to exist in triagebot.toml, but we want this to run

0 commit comments

Comments
 (0)