harshith-21 commented on PR #63455:
URL: https://github.com/apache/airflow/pull/63455#issuecomment-4057267904

   hi @kaxil, ive added the prek hook which checks the anchors and references 
are valid. 
   I was able to do a quick test with fake conn anchor which failed as follows, 
   
   ```
   Validate connection doc labels match 
provider.yaml.............................................Failed
   - hook id: check-connection-doc-labels
   - exit code: 1
   
     ✗ ORPHAN LABEL: providers/pgvector/docs/connections.rst — 
'howto/connection:fake_conn_type' does not match any connection-type in 
provider.yaml
       ✗ MULTIPLE LABELS: providers/pgvector/docs/connections.rst — found 2 
top-level labels (pgvector, fake_conn_type), expected at most 1
   
     Connection doc label check failed with 2 error(s).
   ``` 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to