This repository automates fetching the TBS Policy Suite RSS feed and will create issues when policy docs are added or updated.
Updates over time are added to items.csv along with the GUID assigned, so a digest of change history will accure overtime.
- If you want to recieve notifications for updates to the TBS Policy suite you can:
- "watch" this repo and set notifications to "issues" or
- subscribe to the RSS feed https://www.tbs-sct.canada.ca/pol/rssfeeds-filsrss-eng.aspx?feed=2&count=25
✅ Fetch and parse the RSS feed for new policy items
✅ Append new items to data/items.csv
✅ Create GitHub Issues for new items
✅ Archive XML documents for Framework, Policy, Directive, Standard, and Guideline categories
- download the xml version of the new or updated policy document, then store it in the correct directory based on the xml
- generate a narrative summary of different versions of a updated documents, and add that to the issue
- Configure a GitHub Action (pre-built in
.github/workflows/policy_watch.yml). - Ensure
secrets.GITHUB_TOKENis available.
The workflow runs on a schedule to:
- Fetch the RSS feed.
- Append new items to
data/items.csv. - Create a GitHub Issue for each newly detected item.
├── README.md
├── data/
│ ├── Framework/
│ │ ├── ... .xml
│ ├── Policy/
│ │ ├── ... .xml
│ ├── Directive/
│ │ ├── ... .xml
│ ├── Standard/
│ │ ├── ... .xml
│ ├── Guideline/
│ │ ├── ... .xml
│ ├── items.csv
│ ├── new_items.csv
├── scripts/
│ ├── fetch_feed.py
│ ├── create_issues_with_screenshots.py
│ ├── grok-diff.py
│ ├── init_framework_xml_archive.py #populates the repo with all current policy docs
├── .github/
│ └── workflows/
│ ├── policy_watch.yml
│ ├── init_xml_archives.yml