Repository-Level Graph Representation Learning for Enhanced Security Patch Detection