Include full path to group for expiring Group token
Proposal
Webhook events for Group Token expiration should include the complete path to the token's group. We provide the path to the project for Project token expiration notifications; the same should be provided for Group tokens. Currently users need to use the Groups API to check the group's full path.
Current payloads:
{
"object_kind": "access_token",
"group_id": 35,
"group": {
"group_name": "Twitter",
"group_path": "twitter",
"full_path": "twitter",
"group_id": 35
},
"object_attributes": {
"user_id": 92,
"created_at": "2024-01-29 09:08:33 UTC",
"id": 27,
"name": "test-token-34",
"expires_at": "2024-01-31"
},
"event_name": "expiring_access_token"
}
{
"object_kind": "access_token",
"project_id": 7,
"project": {
"id": 7,
"name": "Flight",
"description": "Eum dolore maxime atque reprehenderit voluptatem.",
"web_url": "https://gdk.test:3443/flightjs/Flight",
"avatar_url": null,
"git_ssh_url": "ssh://git@gdk.test:2222/flightjs/Flight.git",
"git_http_url": "https://gdk.test:3443/flightjs/Flight.git",
"namespace": "Flightjs",
"visibility_level": 0,
"path_with_namespace": "flightjs/Flight",
"default_branch": "master",
"ci_config_path": null,
"homepage": "https://gdk.test:3443/flightjs/Flight",
"url": "ssh://git@gdk.test:2222/flightjs/Flight.git",
"ssh_url": "ssh://git@gdk.test:2222/flightjs/Flight.git",
"http_url": "https://gdk.test:3443/flightjs/Flight.git"
},
"object_attributes": {
"user_id": 90,
"created_at": "2024-01-24 16:27:40 UTC",
"id": 25,
"name": "acd",
"expires_at": "2024-01-26",
}
"event_name": "expiring_access_token"
}
Edited by Duncan