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

harden: Only store registered repositories #1155

Merged
merged 1 commit into from
Oct 10, 2023
Merged

harden: Only store registered repositories #1155

merged 1 commit into from
Oct 10, 2023

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Oct 9, 2023

This changes the logic of the repo register to only store registered repositories as opposed to registering everything and then verifying if they're registered or not.

This also uncovered that we weren't really checking for issues in registration... So, this changed that logic.

This also adds a new provider called repo-lister which enables implementors to list repositories. This is handy for the auto-enrollment flow, which requires us to list remote repositories, compare them to the registered ones, and then enroll.

We might not have auto-enrollment (webhook creation) for other providers... but it would be handy to be able to list repos so we could then build requests that manually register the repos to mediator.

@JAORMX JAORMX changed the title harden: Only store registered repositories WIP: harden: Only store registered repositories Oct 9, 2023
@JAORMX JAORMX force-pushed the repo-refactor branch 2 times, most recently from 7c436fb to 71797ab Compare October 9, 2023 13:50
@JAORMX JAORMX requested a review from lukehinds October 9, 2023 14:08
@JAORMX JAORMX changed the title WIP: harden: Only store registered repositories harden: Only store registered repositories Oct 9, 2023
@JAORMX JAORMX force-pushed the repo-refactor branch 2 times, most recently from c98c3c2 to 7b13cfc Compare October 9, 2023 17:20
This changes the logic of the repo register to only store registered repositories
as opposed to registering everything and then verifying if they're registered or not.

This also uncovered that we weren't really checking for issues in registration... So,
this changed that logic.

This also adds a new provider called `repo-lister` which enables implementors to list
repositories. This is handy for the auto-enrollment flow, which requires us to list remote
repositories, compare them to the registered ones, and then enroll.

We might not have auto-enrollment (webhook creation) for other providers... but it would be
handy to be able to list repos so we could then build requests that manually register the repos
to mediator.
Copy link
Member

@rdimitrov rdimitrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 and also fixes #860

@JAORMX JAORMX merged commit 6781bda into main Oct 10, 2023
14 checks passed
@JAORMX JAORMX deleted the repo-refactor branch October 10, 2023 08:03
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.

2 participants