> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lanesync.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow template update status

> Returns whether managed workflow templates are up to date, which files would be updated, and any pending update PR. Requires bootstrap state COMPLETE or LEGACY.



## OpenAPI

````yaml /api-reference/openapi.json get /api/repos/{repoId}/workflow-update-status
openapi: 3.1.0
info:
  title: LaneSync API
  description: >-
    REST API for LaneSync release governance — milestones, evidence, quality,
    and sync.
  version: 1.0.0
  contact:
    name: LaneSync
    url: https://lanesync.dev
servers:
  - url: https://lanesync.dev
    description: Hosted SaaS
security: []
tags:
  - name: Health
    description: Liveness and readiness
  - name: Auth
    description: GitHub OAuth and sessions
  - name: Dashboard
    description: Org-wide milestone views
  - name: Milestones
    description: Release pipeline and deploy gates
  - name: Repos
    description: Repository bootstrap and configuration
  - name: Sync
    description: GitHub sync triggers
  - name: Evidence
    description: CI evidence upload (no session)
  - name: Quality
    description: Quality scorecards and exports
  - name: Projects
    description: Multi-repo release projects
  - name: Team
    description: Workspace members and invites
  - name: Webhook
    description: GitHub App webhooks
paths:
  /api/repos/{repoId}/workflow-update-status:
    get:
      tags:
        - Repos
      summary: Workflow template update status
      description: >-
        Returns whether managed workflow templates are up to date, which files
        would be updated, and any pending update PR. Requires bootstrap state
        COMPLETE or LEGACY.
      operationId: getWorkflowUpdateStatus
      parameters:
        - name: repoId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Update status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowUpdateStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Repository not found
        '409':
          description: Repository not eligible for workflow updates
      security:
        - sessionCookie: []
components:
  schemas:
    WorkflowUpdateStatus:
      type: object
      properties:
        status:
          type: string
          enum:
            - UP_TO_DATE
            - UPDATE_AVAILABLE
            - PR_PENDING
        currentRevision:
          type: string
          description: SHA-256 of current managed templates
        installedRevision:
          type: string
          nullable: true
        pendingTargetRevision:
          type: string
          nullable: true
        managedFiles:
          type: array
          items:
            type: string
          example:
            - .github/workflows/sdlc-enforce.yml
        canAppCreatePr:
          type: boolean
        requiresPat:
          type: boolean
        stalePending:
          type: boolean
        pendingPr:
          type: object
          nullable: true
          properties:
            number:
              type: integer
            url:
              type: string
              format: uri
            createdAt:
              type: string
              format: date-time
              nullable: true
            targetRevision:
              type: string
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid session
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: cookie
      name: connect.sid
      description: GitHub OAuth session cookie

````