Add preAgentStop hook to allow validation before the agent finishes
#3010
close-invalid.yml
on: issues
close-on-adding-invalid-label