-
-
Notifications
You must be signed in to change notification settings - Fork 74
Support HTML escaping in variable expansion? #187
Comments
Currently no :( |
Is this a show stopper for you? Or can you still use the plugin? Also, it would be great if you would like to add a description to the readme on how you integrate the plugin with Hipchat. |
It doesn't prevent me from using it. However, it does prevent me from making it an official part of our process internally, as we can't guarantee that every PR will trigger a notification. Any pull request whose title or description includes a character that has to be HTML encoded will prevent any notifications for that pull request from being sent to HipChat (as I'm constructing a JSON object and populating it with variables), so our developers will still need to periodically check Bitbucket directly to ensure that none are missed. I looked at the code in an effort to see if I could implement support for this and submit a pull request, but unfortunately I have almost no experience with Java. (For example, I had no idea that Java allowed enumeration values to implement interfaces, and be instantiated.)
Here's a bit of a short write-up on how it's configured. I think it's a bit too long to be included in the If you can advise me on where you'd like me to put it, I'd be more than happy to oblige. Send Pull Request Notifications to HipChat Room
For further customization of the HipChat notification, refer to the official documentation |
I'm thinking that the notification settings can have checkboxes like:
|
* Also adding a .gitattributes to force line endings
* The HipChat docs were privided by [Rychard](https://github.com/Rychard). * Moving Jenkins docs to its own file. * Moving issue reporting guidelines to ISSUE_TEMPLATE.
* The HipChat docs were privided by [Rychard](https://github.com/Rychard). * Moving Jenkins docs to its own file. * Moving issue reporting guidelines to ISSUE_TEMPLATE.
This is now released in 2.49. Open issue again if any problems! |
I've done some cursory testing with the latest version over the past day or so, and it's working wonderfully! Thank you for implementing support for this so quickly! |
Making an API call to HipChat to send a room notifications works fine unless the variable expansion results in characters that must be encoded
Current
Post content
:The request it sends has a body that looks like this:
Note the final parameter (
title
):The variable for
${PULL_REQUEST_TITLE}
is expanding correctly to the title of the pull request (This is the title of a pull request &¬ encoded&&&&
), but I need to ensure that expanded variables are escaped properly before sending the request.Is there any support for escaping HTML (i.e.
&
»&
) that may exist in variables?The text was updated successfully, but these errors were encountered: