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

Repository.issues owner typo! #54

Open
micahbrich opened this issue Feb 26, 2011 · 1 comment
Open

Repository.issues owner typo! #54

micahbrich opened this issue Feb 26, 2011 · 1 comment

Comments

@micahbrich
Copy link

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!

@radar
Copy link
Collaborator

radar commented Mar 26, 2011

These should be the same thing. Let me know if you are still having issues with the latest gem and then I can fix it. A stacktrace would be helpful if one is provided.

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

No branches or pull requests

2 participants