Skip to content

Expose language field in GraphQL blob type

What does this MR do and why?

Contributes to #348145 (closed)

Return the language of the blob for syntax highlighter.

Screenshots or screen recordings

Screenshot_2022-01-28_at_19.58.25

How to set up and validate locally

http://127.0.0.1:3000/-/graphql-explorer

{
  project(fullPath: "flightjs/Flight") {
    repository {
      blobs(paths: ".travis.yml") {
        nodes {
          name
          language
        }
      }
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports

Loading