You can just create a channel in discord and create a webhook for it then add that webhook to your GitHub repo on the settings(content-type should be Jain) then immediately when any change happens you’ll be notified
with the small asterisk that this mechanism only works for repos where one has sufficient privileges to be able to create a webhook, and that doesn't square up with the original title of "a file on GitHub"