Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webhook: Handle issue transfers #75

Merged
merged 2 commits into from
Oct 24, 2020
Merged

webhook: Handle issue transfers #75

merged 2 commits into from
Oct 24, 2020

Conversation

dgw
Copy link
Member

@dgw dgw commented Oct 4, 2020

I dislike using the presence of certain dict keys to guess whether an issue was natively created vs. transferred in, but GitHub ties my hands on that. There's also no workaround for determining who actually transferred the incoming issue; that data just isn't included.

At least issues transferred out have a distinct "action" type and proper "sender" info, thankfully…

[As an aside: The more features that get added to the webhook handler here, the more obvious it is that GitHub's webhook payloads are not very well thought-out in places, especially when newer site features from the last few years are involved.]

GitHub doesn't include the user who initiated the transfer in webhook
payloads, unfortunately, even though it adds a "transferred" event to
the timeline once completed. (That "transferred" event doesn't appear to
be sent on its own, either, unless it's attached to some category other
than "Issues" for some reason.)
A bit more straightforward, these, since they have their own distinct
"action" value. No need to sniff for dict keys and guess like for
incoming transfers. (Also helpful: the "sender" is who transferred it,
not who created the issue.)
@dgw dgw added the enhancement label Oct 4, 2020
@dgw dgw added this to the 0.4.0 milestone Oct 4, 2020
@dgw dgw merged commit 2809d3e into master Oct 24, 2020
@dgw dgw deleted the handle-issue-transfers branch October 24, 2020 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant