git-slack-hook icon indicating copy to clipboard operation
git-slack-hook copied to clipboard

Specify in documentation that Nice Names must be URL-encoded

Open unitof opened this issue 9 years ago • 0 comments

I am using git to push webapp changes to a simple HTTP staging server, so I wanted the nice-name in Slack to conveniently link to the new live changes. I tried setting hooks.slack.repo-nice-name to the URL of my staging server but that broke the app (it wouldn't send anything on post-receive).

But! I just discovered that URL-encoding the nice-name works perfectly, and Slack (or some other step in the API chain) conveniently URL-decodes it as well.

For example: git config hooks.slack.repo-nice-name 'http://127.0.0.1/path/to/page.html' does not work. git config hooks.slack.repo-nice-name 'http%3A%2F%2F127.0.0.1%2Fpath%2Fto%2Fpage.html' works perfectly.

unitof avatar Oct 04 '16 19:10 unitof