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

When no PR is assigned, hubot repeats itself #8

Open
davesade opened this issue Feb 11, 2018 · 0 comments
Open

When no PR is assigned, hubot repeats itself #8

davesade opened this issue Feb 11, 2018 · 0 comments

Comments

@davesade
Copy link

image

With new version there seems to be another bug hidden. Sadly, I couldn't find it.

Current version:

  setInterval(=>
    mergePullRequests robot
  , interval * 1000)

mergePullRequests = (robot, res) ->
  github.issues.getAll {}, (err, resp) ->
    issues = resp.data
    return notify robot, res, "No pull requests have been assigned to me." if not issues.length

Previously working version:

  setInterval(=>
    do mergePullRequests
  , interval * 1000)

mergePullRequests = (res) ->
  github.issues.getAll {}, (err, resp) ->
    issues = resp.data
    return notify res, "No pull requests have been assigned to me." if not issues.length

Not sure, where else this issue could be.

Temporary workaround: assign any dummy PR to Hubot. Then it checks for merges, but writes nothing into channel.

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

1 participant