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

Add a tool to synchronize webhooks on our repositories #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pietroalbini
Copy link
Member

@pietroalbini pietroalbini commented Jan 17, 2019

This PR adds a tool that synchronizes the webhooks configured in a repository with the configuration stored on this repo.

The tool is located in tools/sync-webhooks and uses the configuration in config/repo-webhooks. It supports presets to share common webhooks (like bors) between multiple repos, dry runs to preview the changes that are going to be applied and synchronizes as much settings as it cans with the constraints we have:

  • Due to GitHub API limitations it's not possible to update the content type or the required SSL once the webhooks is created: doing so will reset the secret key, and there is no way to avoid that
  • Secrets are not set by the tool, but it will post a link in its output to the hook's settings page, where a person can set the right one

At the moment I only configured rust-lang/rust, and we can add new ones once the PR is merged.

r? @aidanhs @alexcrichton

@pietroalbini pietroalbini changed the title [WIP] Add a tool to synchronize webhooks on our repositories Add a tool to synchronize webhooks on our repositories Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant