Skip to content

Provide proxy to resolve GitHub mentions into Slack mentions (For GitHub Enterprise).

License

Notifications You must be signed in to change notification settings

yhatt/github-mentions-to-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-mentions-to-slack

⚠️ NOTICE: The new GitHub Slack app that has been officially provided by GitHub is supporting to convert mentions. This proxy is provided for a legacy GitHub integration, that is still supporting on GitHub Enterprise.


Provide proxy to resolve GitHub mentions into Slack mentions.

You can easily try this proxy on Glitch!

remix button

How to use

  1. Setup GitHub integration on your Slack team.
  2. Remix this app on Glitch. To use this proxy continuously, you should be remix with logged-in by your Glitch account. (not anonymous user!)
  3. Make remixed Glitch project as private. Putted Slack user ids in .env would leak in public project!!
  4. Open .env and put the pair of Slack user id (or usergroup id) and GitHub account name. See .env file.
  5. Open GitHub repository ➡ WebhooksEdit button that URL has started with https://hooks.slack.com/.
  6. Replace Payload URL host from hooks.slack.com to [remixed-project-name].glitch.me and click Update webhook button.
  7. Let's try to send mentions at GitHub!

Configuration

.env file

# Please put the pair of Slack user id (or usergroup id) and GitHub account name.
# [Slack user id]=[GitHub account name]

U0123ABCD=yhatt
U4567EFGH=github-account
S8901IJKL=organization/team

Replace payload URL on GitHub

If your payload URL is like this...

https://hooks.slack.com/services/T01234567/...

you could replace host like this.

https://github-mentions-to-slack.glitch.me/services/T01234567/...

Actually, we think that you are using remixed project. Let's try this:

https://[remixed-project-name].glitch.me/services/T01234567/...

Author

Yuki Hattori (@yhatt)

License

This repository is under the MIT License.

About

Provide proxy to resolve GitHub mentions into Slack mentions (For GitHub Enterprise).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published