-
Notifications
You must be signed in to change notification settings - Fork 132
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
feat: add enabled flag to sync-repo-settings #4626
Conversation
@@ -82,6 +83,10 @@ export class SyncRepoSettings { | |||
const logger = this.logger; | |||
const repo = options.repo; | |||
const [owner, name] = repo.split('/'); | |||
if (!config?.enabled) { | |||
logger.info(`config is not enabled for repository ${repo}`); | |||
return false; |
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.
Looks like this method returns a Promise<void>
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.
Should this line just be return;
instead?
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.
Yeah
Co-authored-by: Jeff Ching <chingor@google.com>
Adds an enabled flag to turn off the sync-repo-settings bot.
Workaround for #4617