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

Empty (but not null) entries should clear teams and collaborators #301

Draft
wants to merge 3 commits into
base: main-enterprise
Choose a base branch
from

Conversation

Chris-V
Copy link
Contributor

@Chris-V Chris-V commented Sep 30, 2022

This conflicts with my other PRs so I'm opening as a draft. Also this handles the case in diffable.js, but maybe mergeDeep.compareDeep should instead output removed entries directly?

new NopCommand(this.constructor.name, this.repo, this.github.repos.removeCollaborator(
Object.assign(this.repo, { username: existing.username })
), 'Remove Collaborator')
new NopCommand(this.constructor.name, this.repo, this.github.repos.removeCollaborator(data),
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -28,19 +28,19 @@ module.exports = class Teams extends Diffable {

add (attrs) {
let existing = { team_id: 1 }
this.log(`Getting team with the parms ${JSON.stringify(attrs)}`)
this.log.debug(`Getting team with the parms ${JSON.stringify(attrs)}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
this.log.debug(`Getting team with the parms ${JSON.stringify(attrs)}`)
this.log.debug(`Getting team with the params ${JSON.stringify(attrs)}`)

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