すいません、素直にこっちでいいですね。
```
    if validate
      admin = User.find(self.members.find_by("is_admin = true").user_id)
      github = Github.new(oauth_token: admin.github.oauth_token)
      owner, repo_name = full_name.gsub(/[[:space:]*]/, "").split("/")
      repo = github.repos.get(owner, repo_name)
      return false unless repo
    end

    pg.full_name = full_name.gsub(/[[:space:]*]/, "")
    pg.save
```