anishathalye / gavel

A project expo judging system 📊
https://anishathalye.com/gavel-an-expo-judging-system/
GNU Affero General Public License v3.0
432 stars 236 forks source link

Allow email_subject to be set via environment variable #103

Open sgbaird opened 6 months ago

sgbaird commented 6 months ago

I used the Deploy to Heroku button, and I've really liked this so far! I even got SendGrid set up without a ton of hassle (after I figured out some issues with getting a Twilio account - seemed to go OK when I chose "Login with Google"), and the email to judges seems to be working. However, I'd really like to be able to customize the subject line for the email via an environment variable.

https://github.com/anishathalye/gavel/blob/b5502095dac3b491b1adaef91dbe9e7476ff05ae/config.template.yaml#L166

I'm trying to find an easy workaround that still uses Heroku, but it seems like I might need to make a separate repository (e.g., fork), and use some trickery described in https://help.heroku.com/XOBUHLKQ/why-do-i-see-a-message-you-appear-to-have-cloned-an-empty-repository-when-using-heroku-git-clone to get things connected (see image below, since the link seems to require logging in).

image

I'm checking to see if I can just commit a config.yaml file in the empty repository (EDIT: doesn't work) or if I need to go through the instructions above. Note that opening up an editor in the Heroku console and making the file isn't an option, since any changes will be lost as soon as the app is restarted (every 24 hrs apparently). Either way, the only thing I'd really like to customize is having the subject line of the email include my event name and "Judging" so it's really obvious.

My event is https://ac-bo-hackathon.github.io/, so the subject would be something like "BO Hackathon Judging Instructions"