-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
github_webhook: Don't include secret in the config if it's absent #5994
github_webhook: Don't include secret in the config if it's absent #5994
Conversation
What is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! A first quick comment:
Co-authored-by: Felix Fontein <felix@fontein.de>
Simply ignore that. It currently does that a lot. |
Looks OK to me. Will merge this weekend if nobody objects. |
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #6087 🤖 @patchback |
) * github_webhook: Don't include secret in the config if it's absent * Add changelogs * Fix indentation * Apply suggestion to simplify the check Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: dima1206 <�32818228+dima1206@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1877ef1)
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6088 🤖 @patchback |
@dima1206 thank you very much for your contribution! |
) * github_webhook: Don't include secret in the config if it's absent * Add changelogs * Fix indentation * Apply suggestion to simplify the check Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: dima1206 <�32818228+dima1206@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1877ef1)
…secret in the config if it's absent (#6087) github_webhook: Don't include secret in the config if it's absent (#5994) * github_webhook: Don't include secret in the config if it's absent * Add changelogs * Fix indentation * Apply suggestion to simplify the check Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: dima1206 <�32818228+dima1206@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1877ef1) Co-authored-by: dima1206 <32818228+dima1206@users.noreply.github.com>
…secret in the config if it's absent (#6088) github_webhook: Don't include secret in the config if it's absent (#5994) * github_webhook: Don't include secret in the config if it's absent * Add changelogs * Fix indentation * Apply suggestion to simplify the check Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: dima1206 <�32818228+dima1206@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1877ef1) Co-authored-by: dima1206 <32818228+dima1206@users.noreply.github.com>
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
…sible-collections#5994) * github_webhook: Don't include secret in the config if it's absent * Add changelogs * Fix indentation * Apply suggestion to simplify the check Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: dima1206 <�32818228+dima1206@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
Currently if you don't have a secret for the hook, the module will always report
changed
status even after multiple runs. This change adds secret to the config only if user specifies it.ISSUE TYPE
COMPONENT NAME
github_webhook
ADDITIONAL INFORMATION
I've tested the change locally:
changed
state anymore on the second runchanged
state anymore on the second run