Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default slack webhook url in example env to localhost #43

Conversation

omarrida
Copy link
Contributor

Problem
Cloning the repo for the first time and following the usual steps (migrate, key:generate, etc) along with the contributing instructions doesn't result in a green test suite. The StatsTest will fail on the_slack_notification_is_sent() because the webhook url doesn't match the .env file. To fix this and get green, the contributor has to diagnose the test failure and then set their SLACK_WEBHOOK_URL to http://localhost.

Solution
Two changes are introduced in this PR:

  1. Set the SLACK_WEBHOOK_URL in the example env.
  2. Update the test case to check against the configured webhook url rather than a hardcoded value.

Note that either one of these changes will fix the issue, so if it's preferable I'm happy to reduce this PR to only one of the two proposed changes.

@omarrida omarrida requested review from mattstauffer and driftingly and removed request for mattstauffer April 29, 2024 10:23
@omarrida omarrida marked this pull request as draft April 29, 2024 14:14
@omarrida omarrida marked this pull request as ready for review April 29, 2024 14:16
@mattstauffer
Copy link
Member

I think both changes are good. Thanks!

@mattstauffer mattstauffer merged commit d81b41f into main Apr 29, 2024
1 check passed
@mattstauffer mattstauffer deleted the ozr/set-default-slack-webhook-url-to-localhost-in-example-env branch April 29, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants