Possible bug with accessing comments in commits


#1

I get an error when I try to run the query below. It works fine if I take out the comments block, but according to the GraphQL Explorer, I’m accessing the CommitComment correctly.

error_id: “BE92:5C90:448EA2A:575FE86:59120912”

{
  organization(login: "org_name") {
    repositories(first: 100) {
      edges {
        node {
          name
          pullRequests(states: OPEN, last: 100) {
            edges {
              node {
                commits(first: 100) {
                  edges {
                    node {
                      commit {
                        status {
                          state
                        }
                        comments(first: 20) {
                          edges {
                            node {
                              body
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

#2

Hi @caro5, thanks for sharing this report with us! I’ve opened an internal issue so our team can take a look at this. I can’t promise an ETA for when this will be addressed, but we’ll write back as soon as there’s any news.


#3

This should be fixed now!

Note that we recently implemented a limiter to protect the GitHub Platform from being queried for far too much data, so the original query as it stands might not run. But, I’ve confirmed that the problem with commit comments has been fixed.