Skip to content

[WIP] To watch organizations - #45

Open
dchiji wants to merge 11 commits into
cookpad:masterfrom
dchiji:to_watch_orgs
Open

[WIP] To watch organizations #45
dchiji wants to merge 11 commits into
cookpad:masterfrom
dchiji:to_watch_orgs

Conversation

@dchiji

@dchiji dchiji commented Jul 17, 2018

Copy link
Copy Markdown

This PR suggests to watch organization events.
It enable us to automatically watch new repositories under watched organizations.
By this PR, tokite behaves almost same as PR #44 without GitHub App.

Please review this. @cookpad/dev-infra

@hogelog hogelog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Direction of this PR is looks good to me.

Comment thread app/models/tokite/repository.rb Outdated
unhook_org!(octokit_client)
else
unhook_repo!(octokit_client)
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think these branches (organization or repository) are less readable.
How about splitting it into Tokite::Repository and Tokite::Organization?

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