This repo contains a script that will:
-
Fetch all GitHub pull requests opened since last Monday
-
Find all GIFs posted in the related pull request reviews
-
Post a thread in Slack with all the GIFs
Now you can rank the best GIFs from the past week by reacting to your favorites! 🥇🥈🥉
To run this script you'll need to install Bun.
To install dependencies:
bun install
To configure you need to set the following environment variables:
-
GITHUB_ACCESS_TOKEN
- A GitHub access token withrepo
scope -
SLACK_TOKEN
- A Slack Bot User OAuth Token that you can find in the "OAuth & Permissions" section of your Slack app -
SLACK_CONVERSATION_ID
- The ID of the Slack channel you want to post to. You can find this in the URL of the channel. For example, if the URL ishttps://app.slack.com/client/T12345678/C12345678
then the ID isC12345678
.
To run:
bun run src/cli.ts
This project uses Biome to format and lint code. You probably want to install the Biome VSCode extension to get automatic formatting on save.