You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to deactivate/activate webhooks but PyGithub hook.edit require name and config field to update webhook.
I tried code below but this code delete a webhook secret
config = hook.config
del config['secret']
hook.edit(
name=hook.name,
config=config,
active=False
)
Also, I tried to update config with orignal config and it broke secret value with *********
In the doc say that we should pass secret for webhook if secret previously had.
However, I tried code sample to patch webhook from the doc page to update just active field and it works
I want to deactivate/activate webhooks but PyGithub
hook.edit
requirename
andconfig
field to update webhook.I tried code below but this code delete a webhook secret
Also, I tried to update
config
with orignal config and it brokesecret
value with*********
In the doc say that we should pass
secret
for webhook ifsecret
previously had.However, I tried code sample to patch webhook from the doc page to update just
active
field and it worksOf course, you have implementation to omit webhooks secret in the Github UI repository settings but not in PyGithub
About PyGithub
hook.edit
implementationWhy do we need to check that
name is str
andconfig is dict
but remove unsetted items like aname
andconfig
Version: PyGithub==2.1.1
The text was updated successfully, but these errors were encountered: