Skip to content

Commit

Permalink
Merge pull request #1735 from ehuss/rr-no-config
Browse files Browse the repository at this point in the history
Review requested: don't error if not configured
  • Loading branch information
Mark-Simulacrum authored Oct 22, 2023
2 parents 75f6785 + 74f2ee1 commit d3eb488
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/handlers/review_requested.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ pub(crate) struct ReviewRequestedInput {}
pub(crate) async fn parse_input(
_ctx: &Context,
event: &IssuesEvent,
_config: Option<&ReviewRequestedConfig>,
config: Option<&ReviewRequestedConfig>,
) -> Result<Option<ReviewRequestedInput>, String> {
// PR author requests a review from one of the assignees

if config.is_none() {
return Ok(None);
}

let IssuesAction::ReviewRequested { requested_reviewer } = &event.action else {
return Ok(None);
};
Expand Down

0 comments on commit d3eb488

Please sign in to comment.