Skip to content

Repository.issues owner typo! #54

@micahbrich

Description

@micahbrich

I was reading through the code in /lib/octopi/repository.rb, and found a little typo on line #100.

def issues(state = "open")
  IssueSet.new(Octopi::Issue.find_all(:user => owner, :repository => self))
end

as far as I can tell, ought to be:

def issues(state = "open")
  IssueSet.new(Octopi::Issue.find_all(:user => self.owner, :repository => self))
end

My app couldn't find the user, because it didn't know what "user" was, as opposed to "self.user." Thought I'd share my findings!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions