Open Context Protocol is live! 🚀 Read the launch post
migrationsGetCommitAuthors

migrationsGetCommitAuthors

Get commit authors

Details

  • Method: GET
  • Path: /repos/{owner}/{repo}/import/authors
  • Operation ID: migrations/get-commit-authors

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "since": {
    "description": "A user ID. Only return users with an ID greater than this ID.",
    "required": false,
    "location": "query",
    "type": "integer"
  }
}

Response Schema

{
  "type": "array",
  "items": {
    "title": "Porter Author",
    "description": "Porter Author",
    "type": "object",
    "properties": {
      "id": {
        "type": "integer"
      },
      "remote_id": {
        "type": "string"
      },
      "remote_name": {
        "type": "string"
      },
      "email": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "url": {
        "type": "string",
        "format": "uri"
      },
      "import_url": {
        "type": "string",
        "format": "uri"
      }
    },
    "required": [
      "id",
      "remote_id",
      "remote_name",
      "email",
      "name",
      "url",
      "import_url"
    ]
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('migrationsGetCommitAuthors', {
    # Add required parameters here
})