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

Release comment are missing on PRs #10

Open
stefanbuck opened this issue Jan 31, 2018 · 10 comments
Open

Release comment are missing on PRs #10

stefanbuck opened this issue Jan 31, 2018 · 10 comments

Comments

@stefanbuck
Copy link

Yesterday I install the release-notifier app on the OctoLinker repo. Today I've created a new release and I expected to see comments on all past PRs between this and the previous release.

For some reason I only got one comment on the version bump PR itself OctoLinker/OctoLinker#439. All the referenced PRs doesn't have a comment.

I browsed through the release-notifier source, but I couldn't find anything. Let me know how I can help to track it down.

@gr2m
Copy link
Contributor

gr2m commented Feb 2, 2018

I can confirm that something is wonky. We’ll have to wait for @zeke to come back, I don’t have access to the logs

@zeke
Copy link
Member

zeke commented Feb 3, 2018

@stefanbuck sorry about that. I've added some logging in #7 but that was after your release.

@gr2m what is your Heroku email address? I'll add you as a collaborator on the app.

@yoshuawuyts
Copy link

Similar effect on choojs/create-choo-app#45. Went back in here to check in now that logs have been enabled.

@zeke
Copy link
Member

zeke commented Feb 5, 2018

It seems that some webhooks are not being received by the app. For example, I can search the logs for create-choo-app, and I see numerous events like this over the last few days:

17:18:08.044Z  INFO probot: Webhook received 
  event: { 
    "id": "88b04400-0a98-11e8-973b-484ed3cc3349", 
    "event": "issues.opened", 
    "repository": "choojs/create-choo-app", 
    "installation": 84031 
  } 

(Note that I have not instrumented the app to log this specific info ☝️. Probot logs this stuff by default.)

However none of these events are of type release.published, even though a release of create-choo-app was indeed created in the last day.

@zeke
Copy link
Member

zeke commented Feb 5, 2018

In other news, the new logging setup is successfully exposing more obvious bugs for some other repos, like this one: #12

@bkeepers
Copy link

bkeepers commented Feb 5, 2018

However none of these events are of type release.published, even though a release of create-choo-app was indeed created in the last day.

Does the GitHub App settings have the release even enabled? For example, when creating a new app, you have to select Read-only on Repository contents, and then select the Releases event.

@gr2m
Copy link
Contributor

gr2m commented Feb 6, 2018

the release event is selected

image

@zeke
Copy link
Member

zeke commented Feb 7, 2018

Oh yeah sorry. Forgot to mention that the release.published event is being logged for some repos:

Feb 01 13:21:28 release-notifier app/web.1:     "event": "release.published", 
Feb 01 21:32:36 release-notifier app/web.1:     "event": "release.published", 
Feb 02 09:32:18 release-notifier app/web.1:     "event": "release.published", 
Feb 02 12:39:57 release-notifier app/web.1:     "event": "release.published", 
Feb 02 20:04:09 release-notifier app/web.1:     "event": "release.published", 
Feb 03 06:52:07 release-notifier app/web.1:     "event": "release.published", 
Feb 03 13:41:47 release-notifier app/web.1:     "event": "release.published", 
Feb 04 12:48:56 release-notifier app/web.1:     "event": "release.published", 
Feb 06 14:04:53 release-notifier app/web.1:      "event": "release.published", 

@yoshuawuyts
Copy link

@zeke could it be that "release.published" doesn't actually refer to a release, but rather to a tag? I remember queueing GitHub at some point, and GitHub considers the two to be different.

With GraphQL I had to do something like this:

var projectTags = gql`
  query projectTags ($owner: String!, $name: String!) {
    repository(owner: $owner, name: $name) {
      tags:refs(refPrefix:"refs/tags/", last:2) {
        edges {
          tag:node {
            name
            target {
              commitResourcePath
            }
          }
        }
      }
    }
  }
`

Not sure what y'all doing in the code, but this might perhaps be helpful?

@zeke
Copy link
Member

zeke commented Feb 12, 2018

Good point, @yoshuawuyts. Watching for tag events might make more sense.

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

5 participants