GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Commits API

13 actions 13 updates phrasing extends openapi/gitlab-commits-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for GitLab's API. It is a proposal applied on top of the contract, not a document GitLab publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 13

$.info
$.paths['/api/v4/projects/{id}/repository/commits'].get
$.paths['/api/v4/projects/{id}/repository/commits'].post
$.paths['/api/v4/projects/{id}/repository/commits/{sha}'].get
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/diff'].get
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/comments'].get
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/comments'].post
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/sequence'].get
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/cherry_pick'].post
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/revert'].post
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/refs'].get
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/merge_requests'].get
$.paths['/api/v4/projects/{id}/repository/commits/{sha}/signature'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for GitLab REST Commits API
  version: 1.0.0
extends: openapi/gitlab-commits-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-23'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 12
- target: $.paths['/api/v4/projects/{id}/repository/commits'].get
  update:
    x-apievangelist-phrasing:
      intent: List commits in a project
      effect: read
      questions:
      - How do I list every commit in a GitLab repository?
      - Can I list only the commits that touched a particular file?
      - Which commits were made by one author in a given date range?
      instructions:
      - text: List all commits in project {id}.
        slots:
          id: path.id
      - text: Show commits in {id} that touched {path}.
        slots:
          id: path.id
          path: query.path
      - text: List commits in {id} by author {author} between {since} and {until}.
        slots:
          id: path.id
          author: query.author
          since: query.since
          until: query.until
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a commit in a project
      effect: write
      questions:
      - How do I commit a new file to a project through the API?
      - Can I create a commit that adds a file to a repository?
      instructions:
      - text: Create a commit in project {id} with file {file}.
        slots:
          id: path.id
          file: requestBody.file
      - text: Add file {file} to the repository of {id}.
        slots:
          file: requestBody.file
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a commit by SHA
      effect: read
      questions:
      - How do I view the details of one commit in a project?
      - Can I get statistics for a single commit?
      instructions:
      - text: Show commit {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Get commit {sha} in {id} with stats {stats}.
        slots:
          sha: path.sha
          id: path.id
          stats: query.stats
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/diff'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a commit's diff
      effect: read
      questions:
      - How do I see the file changes in a single commit?
      - Can I get a commit's diff in unified diff format?
      instructions:
      - text: Show the diff of commit {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Get the unified diff for {sha} in {id}.
        slots:
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/comments'].get
  update:
    x-apievangelist-phrasing:
      intent: List comments on a commit
      effect: read
      questions:
      - How do I see all the comments left on a commit?
      - Can I page through the comments on one commit?
      instructions:
      - text: List comments on commit {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Show the next page of comments on {sha} in {id}.
        slots:
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/comments'].post
  update:
    x-apievangelist-phrasing:
      intent: Comment on a line of a commit
      effect: write
      questions:
      - How do I leave a comment on a specific line of a commit?
      - Can I comment on a file in a commit by its path and line number?
      instructions:
      - text: Comment {note} on line {line} of commit {sha} in project {id}.
        slots:
          note: requestBody.note
          line: requestBody.line
          sha: path.sha
          id: path.id
      - text: Comment {note} on {path} at line {line} in {sha} of {id}.
        slots:
          note: requestBody.note
          path: requestBody.path
          line: requestBody.line
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/sequence'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the commit sequence for a commit
      effect: read
      questions:
      - How do I see the commit history leading up to a specific commit?
      - Can I follow only the first parent of merge commits when getting a commit sequence?
      instructions:
      - text: Get the commit sequence for {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Show the commit history to {sha} in {id}, first parent only {first_parent}.
        slots:
          sha: path.sha
          id: path.id
          first_parent: query.first_parent
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/cherry_pick'].post
  update:
    x-apievangelist-phrasing:
      intent: Cherry-pick a commit to a branch
      effect: write
      questions:
      - How do I copy a single commit onto a different branch?
      - Can I dry-run a cherry-pick before applying it?
      instructions:
      - text: Cherry-pick commit {sha} in project {id} onto branch {branch}.
        slots:
          sha: path.sha
          id: path.id
          branch: requestBody.branch
      - text: Dry-run cherry-picking {sha} in {id} onto {branch}.
        slots:
          sha: path.sha
          id: path.id
          branch: requestBody.branch
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/revert'].post
  update:
    x-apievangelist-phrasing:
      intent: Revert a commit
      effect: destructive
      questions:
      - How do I undo a bad commit in a GitLab branch?
      - Can I preview what a revert would change before it commits?
      - Can I revert a commit to a branch that is not the default one?
      instructions:
      - text: Revert commit {sha} in project {id} to branch {branch}.
        slots:
          sha: path.sha
          id: path.id
          branch: requestBody.branch
      - text: Dry-run a revert of commit {sha} to branch {branch} in {id}, no commit made.
        slots:
          sha: path.sha
          branch: requestBody.branch
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/refs'].get
  update:
    x-apievangelist-phrasing:
      intent: List references a commit points to
      effect: read
      questions:
      - Which branches and tags point to a given commit?
      - Can I list only the tags that reference a commit?
      instructions:
      - text: List references that point to commit {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Show {type} references to {sha} in {id}.
        slots:
          type: query.type
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/merge_requests'].get
  update:
    x-apievangelist-phrasing:
      intent: List merge requests a commit is in
      effect: read
      questions:
      - Which merge requests include a particular commit?
      - Can I list only the merge requests that have been merged for a commit?
      instructions:
      - text: List merge requests that include commit {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Show {state} merge requests for {sha} in {id}.
        slots:
          state: query.state
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/commits/{sha}/signature'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a commit's GPG signature
      effect: read
      questions:
      - How do I verify that a commit is GPG signed?
      - What does a signed commit's signature look like?
      instructions:
      - text: Show the signature of commit {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Verify that {sha} in {id} is signed.
        slots:
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitlab-commits-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.