Skip to content

prinzpiuz/django_update_checker

Repository files navigation

Django Update Checker

This is a small script for checking any new updates/bugfixes/security fixes released in Django News & Events and sending corresponding notifications in MS teams configured channel, without any deployments or server hosting, we are using Scheduled events in Github actions for this. this is similar to cron jobs in UNIX systems

Screenshot

How to use
  • Fork this repo
  • Go to the actions page and enable actions on the forked repo (it will be disabled by default in the forked repo)
  • Get an incoming Teams webhook URL. for reference, please check Teams Incoming Webhook URL
  • Add webhook URL as MS_TEAMS_WEBHOOK_URI in your cloned repos Settings --> Secrets. for reference, please check GitHub Secrets
  • If more types of titles want to be parsed, add them as words in WORDS_TO_TRACK_IN_TITLE in your cloned repos Settings --> Secrets. for reference, please check GitHub Secrets
    • Default keywords tracking is ["releases", "released", "release", "bugfix"]
    • eg if add --words = survey resulting tracking list will be ["releases", "released", "release", "bugfix", "survey"]
  • If no extra keywords are to be tracked, add WORDS_TO_TRACK_IN_TITLE in the secrets with an empty string
Run Locally

Clone the project

  git clone git@github.com:prinzpiuz/django_update_checker.git

Install dependencies

  pip install -r requirements.txt

Start the server

  python checker.py --url <teams webhook url> --words security