Skip to content

Implement a safety check to ensure we're not force-pushing over a non-Action repository. #30

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

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

chrisgavin
Copy link
Collaborator

This ensures that if the repository we are pushing to already exists that it was created by the sync tool. It does this by checking the "homepage" property that we always set to the GitHub.com URL of the repository containing the sync tool.

It also adds a --force flag that can be used to override this check. This might be useful when the user running the tool is not allowed to make repositories themselves but instead has to have an administrator create it for them.

Closes #20.

@chrisgavin chrisgavin merged commit 44139e4 into main Aug 25, 2020
@chrisgavin chrisgavin deleted the homepage-safety-check branch August 25, 2020 12:37
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.

Implement a safety check to ensure we're not force-pushing over an unrelated repository that has been selected by mistake.
1 participant