mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
modules/webhook: Mute all watch events and just allow star events.
This commit is contained in:
parent
4329e0c338
commit
06e7d94aef
1 changed files with 4 additions and 1 deletions
|
@ -1020,7 +1020,10 @@ github_handle__watch(std::ostream &out,
|
|||
if(action != "started")
|
||||
return false;
|
||||
|
||||
return true;
|
||||
// There appears to be no way to distinguish between a genuine watch
|
||||
// button click and just a star; the watch event is sent for both.
|
||||
// Returning false just disables this event so there's no double-message.
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in a new issue