What's the difference between installation and integration_installation events?


#1

When I installed my organisation-owned GH App onto a test user account, two web hooks were issued, with the same timestamp (to the nearest second).

The first had event installation, the second had event integration_installation.

The latter (which had one additional field, the integration_id) is being deprecated under this notice.

But, my expected behaviour was for the event to change, rather than to be duplicated across both types (perhaps this is to manage the transition?).

At any rate, is it safe to totally ignore integration_installation hooks now, and only handle installation ones?


#2

my expected behaviour was for the event to change, rather than to be duplicated across both types

The event was renamed, which as far as I know is the only change. You can safely ignore the deprecated event.


#3

Thanks @kytrinyx

To confirm, I’m definitely still getting both in short succession, essentially identical.

For a test case, your team can check your hooks logs for:

User-Agent: GitHub-Hookshot/5ee1da1
X-GitHub-Delivery: 5a0bee20-e55d-11e7-9275-7364d145b1e8
X-GitHub-Event: installation_repositories

and

User-Agent: GitHub-Hookshot/5ee1da1
X-GitHub-Delivery: 5a0bee20-e55d-11e7-9ee2-cd87f9b9480d
X-GitHub-Event: integration_installation_repositories

#4

@theclark to clarify, this is expected. Because the X-GitHub-Event header value changed, we need to send both events, even though the bodies are identical.


#5

Great, no problem @kytrinx - just so long as it’'s expected for you guys :slight_smile: