/se2gha

Primary LanguageGo

Slack Event 2 GitHub Actions

send slack event to github actions. receive slack event, convert, post github repository_dispatch event. process something you want on github actions.

Supported slack event

  • reaction_added
    • send slack-event-reaction_added-${reaction} event to github

Setup

3 assets required

  • Slack app
    • Event Subscriptions
      • what you need. e.g. reaction_added
    • Scopes
      • team:read
      • users.profile:read
      • channels:history
      • reactions:read
    • Signing Secret → SLACK_SIGNING_SECRET
    • Access Token → SLACK_ACCESS_TOKEN
  • GitHub Personal Access Token
    • Scopes
      • repo
    • Personal Access Token → GHA_REPO_TOKEN
  • Environment variables for app
    • SLACK_SIGNING_SECRET
    • SLACK_ACCESS_TOKEN
    • GHA_REPO_TOKEN
    • GHA_REPOS
      • ${RepositoryOwner}/${RepositioryName} format. e.g. vvakame/se2gha
      • if you wanna send a event to multiple repositories, you can use , to delimiter

Example use case