#2485 fix payloads mixed up for webhook

When repository contains a Slack type hook,
it changes original payload content.

This patch fixes it by using a local object to store
newly created Slack payload instead of assigning
back to the same variable.
This commit is contained in:
Unknwon committed 2016-02-10 15:21:39 -05:00
1 parent 8bf3032b16
commit 297e772c20
6 files changed
+11 -8

No files matched your search

+2 -2
View File
@@ -282,7 +282,7 @@ func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x7a\x4b\x8f\x23\x47\x72\xff\xbd\x3e\x45\xaa\xf5\xd7\x5f\x33\x06\xc9\x7e\x69\x1e\x6a\xa9\x6d\xb1\xc9\x62\x37\x77\xf8\x52\x15\x39\xa3\xd1\xa0\x51\x53\xcd\x4a\x92\xa9\x2e\x56\x71\x2a\xab\x7a\xba\x05\x1f\x56\xf0\xc1\x80\xaf\x36\xec\x8b\x61\xd8\x07\xc3\xc0\xfa\x01\x2f\x7c\xd9\xb5\xe1\x93\xe0\xfb\xe8\x3b\x2c\xb4\xf6\xb7\xf0\x2f\x22\xb3\xc8\x62\x4f\xab\xe1\x05\x6c\x3d\x9a\xc5\xac\xcc\xc8\xcc\xc8\x88\x5f\xfc\x22\x92\x1f\x8a\x81\xfb\xdc\xf5\x04\xff\xe9\x0f\xdb\xdd\xce\x4b\x31\x3e\xeb\xfa\xa2\xd3\xed\xb9\xce\x87\x62\xd4\x73\x9b\xbe\x2b\xfa\xcd\x67\xae\x68\x9d\x35\x07\xa7\xae\x2f\x86\x03\xd1\x1a\x7a\x9e\xeb\x8f\x86\x83\x76\x77\x70\x2a\x5a\x13\x7f\x3c\xec\xa3\x71\xd0\xe9\x9e\x9a\x91\xce\x67\xa2\xb9\x5a\x89\x24\x5c\x4a\x91\x2f\xc2\x5c\xe8\x45\xfa\x56\x8b\x34\x11\xf2\x4a\x66\x37\x62\x15\xce\xf1\x42\xe5\xb1\x74\x9a\xa3\x51\x30\x68\xf6\x5d\x71\x2c\x4e\xd3\xb9\x3e\xc2\x5f\x71\xaa\x72\xe1\xcb\xec\x4a\x4d\x25\x24\xb5\x16\x61\x82\xee\x68\x53\x33\x71\x93\x16\x22\x2b\x12\x11\xa7\xd3\x30\x8e\x6f\x1c\x6f\x32\x08\x26\x3e\x56\x7f\x2c\xe6\x2a\x47\x6f\x57\xe5\x0b\x99\x89\x9d\x48\x5e\xed\xd4\xc4\xce\x2a\x4b\xa3\x1d\x91\xa2\x21\x97\x3a\x47\x4b\x24\x67\x61\x11\x43\x96\x36\x7d\x58\x02\xb6\x4e\x0b\xc0\x77\xc7\x79\x95\xc9\x55\xaa\x55\x9e\x66\x37\xe7\x8e\x37\x1c\x8e\xc5\xb1\xe3\xb7\xbc\xee\x68\x1c\x8c\x5f\x8e\xa8\xdb\x45\xa8\x17\x98\xa9\x6d\x25\x35\x07\x7e\x57\x4c\x17\x61\xa6\x65\xee\xd0\x97\x00\xaa\xf2\x7c\x17\x03\x05\xba\x75\xd2\x6c\x2a\xed\xbe\x13\xf9\x56\x6c\xc4\x8b\x3c\x15\x17\x52\xac\x32\x75\x15\xe6\xd2\xe9\x0c\xbd\x96\x1b\x8c\xbc\xee\xf3\xe6\x98\xa6\x99\x85\xb1\xa6\xfd\x9f\xc6\xe9\x45\x18\x8b\x65\x78\xad\x96\xc5\x52\x4c\x33\x19\xe6\x0a\xaa\x8c\xd5\x12\x3a\x49\x67\x55\x89\x2b\x6c\xbd\xd0\x32\xab\x89\xfa\xbe\x58\xca\x30\xd1\x22\x49\x4d\x4f\xa7\xdf\xfc\x2a\x68\x79\x6e\x73\xdc\x1d\x0e\x82\x5e\xb7\xdf\xa5\x05\xd6\xf7\x31\xc3\x28\xcc\xa7\x0b\x41\x0a\x12\x6f\x0a\x59\x48\x11\xcb\x64\x9e\x2f\x6a\x98\xf3\x92\x15\x1f\x6a\x11\x87\x19\x0e\x01\x0f\x98\x4b\xab\x0b\x9c\xdc\x68\xd2\xeb\x05\x9e\xfb\xe5\xc4\xf5\xc7\x01\xfe\x4e\xdc\xa0\xe7\x0e\x4e\xc7\x67\x10\xbb\xbf\x87\x7f\xa0\xcb\x42\x9d\x43\xfe\xa0\x58\x5e\x60\x61\xd5\xa5\x2a\xa9\x8d\x65\x84\x99\x64\xeb\x90\x91\x50\x09\x2c\x04\xaa\xba\x5e\xc5\x29\x5a\xc9\x48\x1c\xf7\xab\x51\x6f\xe8\x41\x2d\xcd\x53\xd8\x5a\x30\x98\xf4\x21\xfd\x60\x6f\x4b\xa8\xd2\xba\xf8\x69\x71\x2c\xa6\xeb\xfb\x93\x5b\x42\xf6\xb7\x85\xac\xd5\x9b\x2e\xa1\x2c\x7d\x4b\x48\x38\xcd\xd5\x95\xca\x6f\xc4\x4c\xca\xc8\xe9\xb8\x6e\x3b\x60\x75\x0e\xfb\x50\xa3\x15\xf8\x88\xf7\xdb\x08\xa3\xa5\x4a\xb6\x77\x4d\x27\x72\xff\xfa\xc8\x84\xb7\x97\xf7\x68\xef\x7d\xc5\xdd\x2b\xc2\x73\x47\xc3\x7b\x45\x24\x69\x0e\x87\xba\x5f\xc8\x60\x38\xee\xb6\x6e\x6b\xfb\xd1\x96\x98\x34\x9b\x87\x89\xfa\xd6\xd8\xe0\x7d\xb2\x86\xde\xe9\x7b\xeb\x71\x5e\x2d\xc3\xec\x32\x4a\xdf\xb2\x86\xdc\x24\x84\x21\x09\xb8\x4e\x04\x1b\xc5\xb8\x0b\xd8\xf6\x25\x0c\x20\x97\x89\x86\x78\xc7\x1d\x34\x4f\x7a\x6e\x00\x77\x6a\xc3\x62\x07\x6e\x70\x02\xfb\x7d\x56\xf1\x8d\x9e\xd2\xec\x02\xd3\x42\xe7\xe9\x52\x4c\xbc\x5e\xdd\x9f\x2e\xe4\xb2\xba\x4d\xe0\x04\xaf\x8d\x8c\x58\x25\x97\x5a\xbc\x5d\xc8\x04\x0a\x4d\x22\x99\xa9\x64\x2e\xfa\x76\x45\x10\x37\x03\x50\xc8\xeb\x70\xb9\xc2\xaa\x00\x27\xb5\x65\x38\x4f\xe0\xd4\x06\xe1\x02\x48\x0f\xfc\xd6\x99\xdb\x07\x0a\x1e\x63\x2b\x38\x55\x78\xf5\xb9\x33\xf2\x86\xe3\x61\x6b\xd8\xc3\xba\x16\x79\xbe\x72\xda\xc3\x7e\xb3\x3b\xc0\x37\x06\xa9\x45\xaa\x73\xc6\x11\x1a\x8f\xc6\x8f\x1e\x94\xfd\x1f\xea\xa3\xdd\xdd\x8f\x1e\x98\xee\xf8\xf2\xd1\x83\xb3\xf1\x78\x14\x8c\x86\xde\xf8\xa1\xde\x75\xf8\x4b\xb3\xdd\x06\xb6\x39\xeb\x17\x10\x70\x48\xae\x85\xad\x93\x70\xf1\xa0\xdd\xff\xfa\x21\xed\x9b\xd7\x4e\x08\x2a\xde\xa6\xd9\x25\xd9\xdb\x03\x5d\xc0\xab\xb1\x6b\xdf\x3f\x13\xc5\x2a\x02\xc6\x3c\x84\x21\xc3\x04\x34\x6d\xfb\xad\xbc\x10\xda\x80\x6c\x03\xe2\xba\x89\x58\x62\xa5\x62\x1a\x6a\x28\x8f\x60\x36\x4a\xc9\x64\x80\x59\xd0\x1d\x90\x6a\x6a\x60\x18\xe8\xba\xc6\xd0\xab\x30\x2e\x78\x70\x33\xce\x61\x1c\x84\x46\x49\x7c\x63\x61\x3a\xe3\x79\x8d\x8e\x20\x28\x92\x04\xb9\x24\x90\x24\x68\x8a\x0c\x58\x1a\xed\x8b\x5f\x36\x9c\xde\xb0\xd5\x04\x9e\x6c\x14\x45\xba\x84\x82\xd6\x4a\xbc\xad\x1f\x20\xb0\xd2\x6c\x40\x34\xd1\x0c\xa8\x58\xe0\xb4\xf9\x70\x69\x9a\xf0\x2a\x54\x31\xbd\x76\xda\x5d\x9f\xcd\x88\xba\x6d\x4c\xe7\xc5\x42\x72\xa4\x80\x73\x8a\x8b\x42\xc5\x39\x6c\xb7\xb2\xe2\x94\x16\x9d\x37\x1c\x7f\xdc\xf4\xc6\x34\x34\x80\x8b\x3e\xe7\x40\x63\x24\x50\x93\x3d\x91\x83\x03\xc8\xf3\x52\x4c\xba\x0a\xf3\x05\xd9\x23\x09\x8a\x54\x26\xa7\x84\xca\xdc\x95\x37\x36\x6a\x32\x3a\x56\x96\xde\x6a\x0f\x28\x36\x24\xe4\x39\x36\x58\x2d\xa1\x0e\x67\xd8\xe9\xb0\xc1\xdb\xc8\x64\xa6\x2c\x37\xe2\x0d\x27\x63\xe0\x45\x6f\x78\x5a\x0d\x13\x32\x91\x19\xce\x58\xe8\x5c\xae\xf4\x11\x5a\xfe\x9f\x68\xec\xce\xc9\x22\xa6\x32\xcb\x45\x7d\x1a\x1e\xe7\x19\xc0\xbd\x1e\x15\x19\x7b\xef\xf1\xd3\x27\x8f\xf7\x16\x7b\xcb\x3d\x2d\xea\xa4\xe0\xe3\xe5\x0d\x7d\x34\xac\x07\x34\x00\x85\xce\x67\x90\x33\xcc\xc4\x2c\x83\x77\x85\xa2\xb1\x9a\x5d\x8b\x99\x8a\x19\xa4\xd3\x2c\x87\x65\xf0\x1b\x3a\xd2\x17\x2a\Line truncated
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x5a\x4b\x6f\x23\x49\x72\xbe\xd7\xaf\xc8\xd1\x78\x3d\xdd\x06\x49\xbd\x5a\xdd\x3d\xda\xd5\x7a\x28\xb2\x28\x71\x9b\xaf\xa9\xa2\xba\xa7\xa7\x21\x94\x4a\xac\x24\x99\xa3\x62\x15\xbb\xb2\x4a\x6a\x0d\x7c\xd8\x81\x0f\x06\x7c\xb5\x61\x5f\x0c\xc3\x3e\x18\x06\xd6\x0f\x78\xe1\xcb\xae\x0d\x9f\x06\xbe\xf7\xfc\x87\xc5\xac\xfd\x2f\xfc\x45\x64\x16\x59\x54\x6b\x04\x2f\x60\xcf\x43\x2c\x66\x65\x46\x66\x46\x46\x7c\xf1\x45\x24\x3f\x16\x03\xf7\xa5\xeb\x09\xfe\xd3\x1f\xb6\xbb\x9d\xd7\x62\x7c\xda\xf5\x45\xa7\xdb\x73\x9d\x8f\xc5\xa8\xe7\x36\x7d\x57\xf4\x9b\x2f\x5c\xd1\x3a\x6d\x0e\x4e\x5c\x5f\x0c\x07\xa2\x35\xf4\x3c\xd7\x1f\x0d\x07\xed\xee\xe0\x44\xb4\xce\xfc\xf1\xb0\x8f\xc6\x41\xa7\x7b\x62\x46\x3a\x3f\x16\xcd\xe5\x52\x24\xe1\x42\x8a\x7c\x1e\xe6\x42\xcf\xd3\x1b\x2d\xd2\x44\xc8\x6b\x99\xdd\x8a\x65\x38\xc3\x0b\x95\xc7\xd2\x69\x8e\x46\xc1\xa0\xd9\x77\xc5\x91\x38\x49\x67\xfa\x10\x7f\xc5\x89\xca\x85\x2f\xb3\x6b\x35\x91\x90\xd4\x9a\x87\x09\xba\xa3\x4d\x4d\xc5\x6d\x5a\x88\xac\x48\x44\x9c\x4e\xc2\x38\xbe\x75\xbc\xb3\x41\x70\xe6\x63\xf5\x47\x62\xa6\x72\xf4\x76\x55\x3e\x97\x99\xd8\x8a\xe4\xf5\x56\x4d\x6c\x2d\xb3\x34\xda\x12\x29\x1a\x72\xa9\x73\xb4\x44\x72\x1a\x16\x31\x64\x69\xd3\x87\x25\x60\xeb\xb4\x00\x7c\x77\x9c\x37\x99\x5c\xa6\x5a\xe5\x69\x76\x7b\xee\x78\xc3\xe1\x58\x1c\x39\x7e\xcb\xeb\x8e\xc6\xc1\xf8\xf5\x88\xba\x5d\x86\x7a\x8e\x99\xda\x56\x52\x73\xe0\x77\xc5\x64\x1e\x66\x5a\xe6\x0e\x7d\x09\xa0\x2a\xcf\x77\x31\x50\xa0\x5b\x27\xcd\x26\xd2\xee\x3b\x91\x37\x62\x2d\x5e\xe4\xa9\xb8\x94\x62\x99\xa9\xeb\x30\x97\x4e\x67\xe8\xb5\xdc\x60\xe4\x75\x5f\x36\xc7\x34\xcd\x34\x8c\x35\xed\xff\x24\x4e\x2f\xc3\x58\x2c\xc2\x77\x6a\x51\x2c\xc4\x24\x93\x61\xae\xa0\xca\x58\x2d\xa0\x93\x74\x5a\x95\xb8\xc4\xd6\x0b\x2d\xb3\x9a\xa8\xef\x8a\x85\x0c\x13\x2d\x92\xd4\xf4\x74\xfa\xcd\x2f\x82\x96\xe7\x36\xc7\xdd\xe1\x20\xe8\x75\xfb\x5d\x5a\x60\x7d\x17\x33\x8c\xc2\x7c\x32\x17\xa4\x20\xf1\xb6\x90\x85\x14\xb1\x4c\x66\xf9\xbc\x86\x39\xaf\x58\xf1\xa1\x16\x71\x98\xe1\x10\xf0\x80\xb9\xb4\xba\xc4\xc9\x8d\xce\x7a\xbd\xc0\x73\x3f\x3f\x73\xfd\x71\x80\xbf\x67\x6e\xd0\x73\x07\x27\xe3\x53\x88\xdd\xdd\xc1\x3f\xd0\x65\xa1\xce\x21\x7f\x50\x2c\x2e\xb1\xb0\xea\x52\x95\xd4\xc6\x32\xc2\x4c\xb2\x75\xc8\x48\xa8\x04\x16\x02\x55\xbd\x5b\xc6\x29\x5a\xc9\x48\x1c\xf7\x8b\x51\x6f\xe8\x41\x2d\xcd\x13\xd8\x5a\x30\x38\xeb\x43\xfa\xde\xce\x86\x50\xa5\x75\xf1\xc3\xe2\x58\x4c\xd7\xf7\xcf\xee\x08\xd9\xdd\x14\xb2\x52\x6f\xba\x80\xb2\xf4\x1d\x21\xe1\x24\x57\xd7\x2a\xbf\x15\x53\x29\x23\xa7\xe3\xba\xed\x80\xd5\x39\xec\x43\x8d\x56\xe0\x01\xe4\xbd\x0c\x63\xa8\x0f\xe2\x2e\x60\x85\x0b\x59\x9f\xa4\xd8\xca\x05\x4e\x22\x0f\x45\x1e\xce\x6a\x74\x38\x91\xb8\xbc\x15\xcd\x24\xca\x52\x15\x89\x9f\x62\x5c\x83\x56\xd2\x4c\x30\xd7\x75\x18\xa3\x8d\x07\xe1\xd0\xa0\xfb\xad\x04\xb3\x1b\xfb\x8d\x94\x0e\xa1\xf6\x2d\x71\xa3\xe2\x58\xcc\xc3\x6b\x72\x2d\xb9\xb2\x67\x9d\xdf\xc6\x64\x2d\x7d\x52\x9d\x4a\xa6\xe9\xa1\x98\xe7\xf9\x52\x1f\x6e\x6f\xc3\xac\x65\x9c\xc2\x34\x74\x63\x96\xa6\xb3\x58\x36\xb0\xc9\xed\x1b\x79\xb9\x5d\x2c\x23\x58\x9e\xde\xde\xdb\xd9\x7d\xb2\xbd\xbb\xbb\xed\x17\xcb\x65\x9a\xe5\xf5\x69\x9a\xd5\x2b\x1b\xa8\xab\xa4\xde\x9a\x67\x29\xbe\xef\x7f\xca\x2f\xed\xf2\x9d\xf1\xa9\xdb\x77\xa1\x06\x9c\x51\xd0\x77\xc7\xcd\x60\xdc\x3c\x81\x2a\x2e\x3e\x9e\x4e\x0f\xf6\x9f\xec\x5f\xb0\x09\x34\xc2\x68\xa1\x92\x4d\x43\x20\x23\x7d\xf8\xc8\xc8\xab\x37\x4f\xec\x60\xe7\x43\x5b\x7a\x50\x84\xe7\x8e\x86\x0f\x8a\x48\xd2\x1c\x18\xf3\xb0\x90\xc1\x70\xdc\x6d\xdd\x35\xc0\x83\x0d\x31\x69\x36\x0b\x13\xf5\xb5\x71\xcb\x87\x64\x0d\xbd\x93\x0f\xd6\xe3\xbc\x59\x84\xd9\x55\x94\xde\xb0\x86\xdc\x84\x0e\x19\xc7\x9b\x45\xb0\x00\x8c\xbb\x84\xbb\x5f\xc1\x27\x72\x99\x68\x88\x77\xdc\x41\xf3\xb8\xe7\x06\x40\x98\x36\x9c\x78\xe0\x06\xc7\x70\xe9\x17\x15\xb8\xe8\x29\xcd\xa8\x30\x29\x74\x9e\x2e\xc4\x99\xd7\xab\xfb\x13\x3a\xcb\xca\x36\x01\x9d\xbc\x36\xf2\x6b\x95\x5c\x69\x71\x33\x97\x09\x14\x9a\x44\x32\x53\xc9\x4c\xf4\xed\x8a\x20\x0e\xa7\x8d\xd9\xc3\xc5\x12\xab\x02\xc2\xd6\x16\xe1\x2c\x01\xce\x19\xd0\x0f\x20\x3d\xf0\x5b\x64\x04\x3e\x60\xd2\x79\x83\x53\x05\xd0\x9d\x3b\x23\x6f\x38\x1e\xc2\x2c\xb0\x2e\xb2\x42\xa7\x3d\xec\x37\xbb\x03\x7c\x63\xdc\x9e\xa7\x3a\x67\x68\xa5\xf1\x68\xfc\xd1\xa3\xb2\xff\x63\xb2\xd7\x1f\x3d\x32\xdd\xf1\xe5\x47\x8f\x4e\xc7\xe3\x51\x30\x1a\x7a\xe3\xc7\x7a\xdb\xe1\x2f\xcd\x76\x1b\x70\xef\xac\x5e\x40\xc0\x3e\xa1\x0d\xb6\x4e\xc2\xc5\xa3\x76\xff\xcb\xc7\xb4\x6f\x5e\x3b\x05\x15\x71\x93\x66\x57\x64\x6f\x8f\x74\x01\xa0\xc3\xae\x7d\xff\x54\x18\xe3\x7f\x0c\xdf\x86\x09\x68\xda\x36\x5c\x42\x68\x13\x77\x1a\x10\xd7\x4d\xc4\x02\x2b\x15\x93\x50\x43\x79\x14\x79\xa2\x94\x4c\x06\x30\x0e\xdd\x01\xbc\x27\x26\x32\x55\xdd\xf0\x9a\x00\x80\x06\x37\xe3\x1c\xc6\x41\x00\x9d\xc4\xb7\x36\x72\x65\x3c\xaf\xd1\x11\x04\x45\x92\xa2\x10\x09\x24\x09\x9a\x82\x25\x96\x46\xfb\xe2\x97\x0d\xa7\x37\x6c\x35\x01\xb1\x6b\x45\x91\x2e\xa1\xa0\x95\x12\xef\xea\x07\x41\xc9\xa0\x04\x4f\x34\x45\xa0\x28\x70\xda\x7c\xb8\x34\x4d\x78\x1d\xaa\x98\x5e\x3b\xed\xae\xcf\x66\x44\xdd\xd6\xa6\xf3\x6a\x2e\x39\x78\xc2\x39\xc5\x65\xa1\xe2\x1c\xb6\x5b\x59\Line truncated
func confAppIniBytes() ([]byte, error) {
return bindataRead(
@@ -297,7 +297,7 @@ func confAppIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/app.ini", size: 10108, mode: os.FileMode(420), modTime: time.Unix(1454858070, 0)}
info := bindataFileInfo{name: "conf/app.ini", size: 10383, mode: os.FileMode(420), modTime: time.Unix(1454961797, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}