Skip to content

Commit 84cccd6

Browse files
committed
fix: add support for 'reopened' PR action in GitHub SCM
- Add 'reopened' to supported PR actions alongside 'opened' and 'synchronize' - Resolves 'Pull Request Action reopened is not a supported type' error - GitHub Actions workflow already includes reopened trigger, now CLI supports it - Enables diff mode for reopened PRs instead of exiting
1 parent cb71bd2 commit 84cccd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socketsecurity/core/scm/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def check_event_type(self) -> str:
104104
return "main"
105105
return "diff"
106106
elif self.config.event_name.lower() == "pull_request":
107-
if self.config.event_action and self.config.event_action.lower() in ['opened', 'synchronize']:
107+
if self.config.event_action and self.config.event_action.lower() in ['opened', 'synchronize', 'reopened']:
108108
return "diff"
109109
log.info(f"Pull Request Action {self.config.event_action} is not a supported type")
110110
sys.exit(0)

0 commit comments

Comments
 (0)