Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 2.37 KB

README.md

File metadata and controls

27 lines (16 loc) · 2.37 KB

GitHub scripts

See Maintain code snippets in Azure docs for more information on how to use these scripts.

Scripts in this folder are used to help us maintain our code references.

Open in GitHub Codespaces

If running locally instead of Codespaces, make sure you have pyGithub installed (pip install pyGithub) to run these scripts

  • find-snippets.py

  • pr-report.py - Use this to evaluate whether a PR in azureml-examples will cause problems in our docs build. If you're using it for the first time in a while, first run find-sippets.py to get the most recent version of code snippets referenced by azure-docs.

  • pr-check.py - shortened version of pr-report.py. Checks for files that are in azureml-examples repo CODEOWNERS to see if they have been deleted, or if ids/names in a file have been removed. Alerts if there is a problem. Could be adapted for use in a GitHub action to check PRs before they are merged. (Does not use any local files, only the CODEOWNERS file from the azureml-examples repo.)

  • merge-report.py - Use this to see what PRs in azureml-examples have merged in the last N days that might require a docs update (default is 8 days). If you're using it for the first time in a while, first runfind-sippets.py to get the most recent version of code snippets referenced by azure-docs.

The following files provide functions used in the above scripts: