hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.
https://sprig.hackclub.com
MIT License
910 stars 1.11k forks source link

Create a bridge between submission PRs and Slack #1630

Open leomcelroy opened 6 months ago

leomcelroy commented 6 months ago

Whenever someone submits a game a bot should post the submission text and a link to PR in the #sprig channel on Slack.

An even better version of this would also post a playable link to the game.

The objective would be to encourage community members to participate in review and giving feedback.

This could also be extended by automatically posting thread responses on the PR.

GalaxyGamingBoy commented 6 months ago

Willing to take this on, could be automated with a github action that checks the pr for the submission label and then posts to #sprig.

grymmy commented 6 months ago

Wouldn't this be as simple as an airtable automation?

GalaxyGamingBoy commented 6 months ago

What exactly is the scope of games here? Will we use this to announce the accepted games or act like a way for the community to interact and review games

leomcelroy commented 6 months ago

The latter. Any new submission should get a post.

Looking down the line comments on threads of the submission should also be posted. And github comments posted in the thread.

grymmy commented 6 months ago

@leomcelroy can you please describe exactly the copy you want here, and exactly what situations you want to trigger the messages? An example or two would be good to ensure we implement it exactly how you want it.

For new submissions I assume it'll be something like "A new sprig game was submitted! Check it out!" or something, with some link or whatever... but if you could be specific so we don't have to assume anything, that would be ideal.

leomcelroy commented 6 months ago

When someone PRs a new game submission the bot should post to the Slack.

A new Sprig game was submitted! Check out {gameName} just shared by {person}!

You can play it [here](link to game).

{Screenshot of game}

Comment on this thread to leave feedback on GitHub.
GalaxyGamingBoy commented 6 months ago

Seems good, I already have a message done to be submitted in that case.

GalaxyGamingBoy commented 6 months ago

@grymmy Do we want to use a slack bot with this? That would require integration with a backend, I don't recall if we have one. I

grymmy commented 6 months ago

Slack bot seems fine if what we desire is auto-post slack msg in #sprig with above copy only on first PR open...