The hasCodePattern built-in allows you to query the code contained in the diff to understand if, for example, particular function calls were changed or sensitive data (such as passwords or access tokens) are being explicitly added to the code.
description: Critical code
# color is the hexadecimal color code for the label, without the leading #.
- name: callsQuicksort
description: Patch contains the keyword quicksort
- name: critical
description: Modifications of critical code require careful review
- rule: callsQuicksort