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

add a netlify function for a slack invite #222

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

acao
Copy link
Contributor

@acao acao commented Jan 14, 2023

TODO:

  • add yarn step to deploy config - perhaps we should move deploy config to netlify.toml? I wanted to avoid putting the package.json in the root, so that it doesn't give the impression that one needs to perform a yarn install to build the site.
  • provide SLACK_TOKEN in netlify env variables, and replace the URL I think? or it will infer where to invite the user based on the token perhaps?

Documentation:

From this article on the netlify blog

For example, if you have a Netlify Form on your site, you can trigger a function automatically when receiving a new submission, simply by naming your function file submission-created.js. That's all!

@netlify
Copy link

netlify bot commented Jan 14, 2023

Deploy Preview for techworkersberlin ready!

Name Link
🔨 Latest commit eb06781
🔍 Latest deploy log https://app.netlify.com/sites/techworkersberlin/deploys/63c327148c0ab20009b40412
😎 Deploy Preview https://deploy-preview-222--techworkersberlin.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@acao acao requested a review from shushugah January 14, 2023 22:03
@acao acao marked this pull request as draft January 14, 2023 22:07
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.

1 participant