bitbucket webhook: Fully deprecate username field.

This commit is contained in:
ritik 2021-02-01 22:38:33 +05:30 committed by Steve Howell
parent 6a9e534a22
commit 50b0496a3a
25 changed files with 92 additions and 105 deletions

View File

@ -13,7 +13,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"type":"user"
},
@ -67,7 +67,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"type":"user"
},
@ -88,7 +88,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"type":"user"
},

View File

@ -12,7 +12,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"type":"user"
},
@ -35,7 +35,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},

View File

@ -15,7 +15,7 @@
"uuid":"{ede265ff-3649-4068-a7da-81ac581b6f47}",
"name":"Repository name",
"owner":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
@ -37,7 +37,7 @@
"is_private":true
},
"actor":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
@ -70,7 +70,7 @@
"author":{
"raw":"Tomasz Kolek <tomasz-kolek@o2.pl>",
"user":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
@ -153,7 +153,7 @@
"author":{
"raw":"Tomasz Kolek <tomasz-kolek@o2.pl>",
"user":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
@ -201,7 +201,7 @@
"author":{
"raw":"Tomasz Kolek <tomasz-kolek@o2.pl>",
"user":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
@ -249,7 +249,7 @@
"author":{
"raw":"Tomasz Kolek <tomasz-kolek@o2.pl>",
"user":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
@ -297,7 +297,7 @@
"author":{
"raw":"Tomasz Kolek <tomasz-kolek@o2.pl>",
"user":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
@ -336,7 +336,7 @@
"author":{
"raw":"Tomasz Kolek <tomasz-kolek@o2.pl>",
"user":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"

View File

@ -12,7 +12,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz"
},
@ -48,7 +48,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz"
}

View File

@ -37,7 +37,7 @@
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"version":null,
"milestone":null,
@ -63,7 +63,7 @@
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"priority":"major",
"created_on":"2016-07-04T17:36:51.890354+00:00",
@ -102,7 +102,7 @@
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"username":"kolaszek"
"nickname":""
},
"name":"Repository name",
"full_name":"kolaszek/repository-name",
@ -138,7 +138,7 @@
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"content":{
"raw":"Add comment",
@ -162,6 +162,6 @@
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
}
}

View File

@ -14,7 +14,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"issue":{
"votes":0,
@ -66,7 +66,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"priority":"major",
"title":"Bug",
@ -87,7 +87,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"state":"new"
},
@ -122,7 +122,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"type":"user",
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"is_private":true,
"full_name":"kolaszek/repository-name",

View File

@ -13,7 +13,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user"
},
"comment":{
@ -37,7 +37,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user"
},
"created_on":"2016-07-04T17:38:33.962551+00:00",
@ -80,7 +80,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user"
},
"type":"repository",
@ -108,7 +108,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user"
},
"links":{
@ -180,7 +180,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user"
}
}

View File

@ -32,7 +32,7 @@
}
},
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"website":""
},
@ -90,7 +90,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -139,7 +139,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -239,6 +239,6 @@
}
},
"website":null,
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
}
}

View File

@ -52,7 +52,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz"
},
@ -115,7 +115,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz"
},
@ -140,7 +140,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz"
},
@ -178,7 +178,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz"
}
@ -196,7 +196,7 @@
"href":"https://api.bitbucket.org/2.0/users/kolaszek"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz"
}

View File

@ -25,7 +25,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"updated_on":"2016-07-04T20:47:38.608171+00:00",
"content":{
@ -78,7 +78,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"full_name":"kolaszek/repository-name",
"name":"Repository name",
@ -100,7 +100,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"pullrequest":{
"title":"new commit",
@ -138,7 +138,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"type":"pullrequest",
"merge_commit":null,
@ -224,7 +224,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
}
}
]

View File

@ -74,7 +74,7 @@
"href":"https://bitbucket.org/account/tkolek/avatar/32/"
} },
"type":"user",
"username":"tkolek",
"nickname":"T Kolek",
"uuid":"{bf830c24-bde2-41f1-a790-2c9372a2e789}",
"display_name":"Tomasz Kolek"
}
@ -95,7 +95,7 @@
}
},
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"task_count":0,
"title":"new commit",
@ -135,7 +135,7 @@
}
},
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"repository":{
"website":"",
@ -171,7 +171,7 @@
}
},
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
}
}
}

View File

@ -94,7 +94,7 @@
}
},
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"task_count":0,
"title":"new commit",
@ -134,7 +134,7 @@
}
},
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"repository":{
"website":"",
@ -170,7 +170,7 @@
}
},
"display_name":"Tomasz",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
}
}
}

View File

@ -13,7 +13,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
"pullrequest":{
@ -43,7 +43,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
"author":{
@ -60,7 +60,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
"updated_on":"2016-07-04T20:17:13.680242+00:00",
@ -167,7 +167,7 @@
"href":"https://bitbucket.org/account/kolaszek/avatar/32/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
"full_name":"kolaszek/repository-name",

View File

@ -12,7 +12,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -35,7 +35,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -107,7 +107,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -156,7 +156,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},

View File

@ -15,7 +15,7 @@
"display_name":"Tomasz",
"type":"user",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"location":null,
"created_on":"2016-06-29T17:51:47.001868+00:00"
},
@ -366,7 +366,7 @@
},
"repository":{
"owner":{
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/users/kolaszek"

View File

@ -17,7 +17,7 @@
"type":"user",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"location":null,
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"repository":{
"links":{
@ -48,7 +48,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"name":"Repository name",
"is_private":false,

View File

@ -12,7 +12,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -35,7 +35,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -107,7 +107,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -156,7 +156,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -194,7 +194,7 @@
}
},
"type":"user",
"username":"zbenjamin",
"nickname":"Zev Benjamin",
"display_name":"Ben",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -231,7 +231,7 @@
}
},
"type":"user",
"username":"zbenjamin",
"nickname":"Zev Benjamin",
"display_name":"Ben",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},

View File

@ -12,7 +12,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -35,7 +35,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -107,7 +107,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -156,7 +156,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -193,7 +193,7 @@
}
},
"type":"user",
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -230,7 +230,7 @@
}
},
"type":"user",
"username":"Tomasz",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -267,7 +267,7 @@
}
},
"type":"user",
"username":"Tomasz",
"nickname":"Tomasz Kolaszek",
"display_name":"Tomasz",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -304,7 +304,7 @@
}
},
"type":"user",
"username":"james",
"nickname":"James Franklin",
"display_name":"James",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -341,7 +341,7 @@
}
},
"type":"user",
"username":"james",
"nickname":"James Franklin",
"display_name":"James",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -378,7 +378,7 @@
}
},
"type":"user",
"username":"james",
"nickname":"James Kolek",
"display_name":"James",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -415,7 +415,7 @@
}
},
"type":"user",
"username":"Brendon",
"nickname":"Brendon Rogers",
"display_name":"Brendon",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -452,7 +452,7 @@
}
},
"type":"user",
"username":"Brendon",
"nickname":"Brendon Rogers",
"display_name":"Brendon",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -490,7 +490,7 @@
}
},
"type":"user",
"username":"zbenjamin",
"nickname":"Zev Benjamin",
"display_name":"Ben",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},

View File

@ -17,7 +17,7 @@
"type":"user",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"location":null,
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"repository":{
"links":{
@ -48,7 +48,7 @@
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"display_name":"Tomasz",
"type":"user",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"name":"Repository name",
"is_private":false,

View File

@ -32,7 +32,7 @@
}
},
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}",
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
},
"website":""
},
@ -111,6 +111,6 @@
}
},
"website":null,
"username":"kolaszek"
"nickname":"Tomasz Kolaszek"
}
}

View File

@ -5,7 +5,7 @@
]
},
"actor":{
"username":"eeshangarg",
"nickname":"Eeshan Garg",
"type":"user",
"display_name":"eeshangarg",
"uuid":"{a161e482-30e8-47ef-b6ab-c4e4cfaa0dce}",
@ -55,7 +55,7 @@
},
"full_name":"webhooktest/test-repo",
"owner":{
"username":"webhooktest",
"nickname":"Webhook Test",
"type":"team",
"display_name":"webhooktest",
"uuid":"{31358906-183f-4b53-b83c-f70ba0ca5d3c}",

View File

@ -19,7 +19,7 @@
"href":"https://bitbucket.org/kolaszek/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -84,7 +84,7 @@
"href":"https://bitbucket.org/kolaszek/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
},
@ -140,7 +140,7 @@
"href":"https://bitbucket.org/kolaszek/"
}
},
"username":"kolaszek",
"nickname":"Tomasz Kolaszek",
"type":"user",
"uuid":"{678ab31f-9f88-4d7a-b343-1bdf9f024917}"
}

View File

@ -34,7 +34,7 @@
}
},
"actor":{
"username":"eeshangarg",
"nickname":"Eeshan Garg",
"type":"user",
"display_name":"eeshangarg",
"uuid":"{a161e482-30e8-47ef-b6ab-c4e4cfaa0dce}",
@ -84,7 +84,7 @@
},
"full_name":"webhooktest/new-name",
"owner":{
"username":"webhooktest",
"nickname":"Webhook Test",
"type":"team",
"display_name":"webhooktest",
"uuid":"{31358906-183f-4b53-b83c-f70ba0ca5d3c}",

View File

@ -431,7 +431,6 @@ class Bitbucket2HookTests(WebhookTestCase):
self.assertEqual(get_user_info({}), "Unknown user")
dct = dict(
username="asmith",
nickname= "alice",
noisy_field="whatever",
display_name="Alice Smith",
@ -443,7 +442,4 @@ class Bitbucket2HookTests(WebhookTestCase):
self.assertEqual(get_user_info(dct), "alice")
del dct["nickname"]
self.assertEqual(get_user_info(dct), "asmith")
del dct["username"]
self.assertEqual(get_user_info(dct), "Unknown user")

View File

@ -411,15 +411,6 @@ def get_user_info(dct: Dict[str, Any]) -> str:
unsupported_event=True,
)
if "username" in dct:
# We don't expect this to happen after April 2019; this is
# just defensive code, plus it allows us to avoid changing
# a bunch of test fixtures. We will want to delete this code
# as soon as we have confidence that we don't get errors
# related to display_name/nickname being missing. (see above
# code)
return dct["username"]
return "Unknown user"
def get_actor_info(payload: Dict[str, Any]) -> str: