Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

14.3 KB
Raw Blame
const newIssueSample = {
  action: 'create',
  type: 'Issue',
  url: 'https://linear.app/acme/issue/ENG-16/fix-checkout-button-on-mobile',
  createdAt: '2026-09-29T11:40:04.426Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: 'a276f64a-bbf4-4ab4-8cdb-9ff558d42ed8',
    identifier: 'ENG-16',
    number: 16,
    title: 'Fix checkout button on mobile',
    url: 'https://linear.app/acme/issue/ENG-16/fix-checkout-button-on-mobile',
    priority: 3,
    priorityLabel: 'Medium',
    dueDate: '2026-10-15',
    stateId: '5cb9e604-45e4-43da-b2b1-06ec0a940cba',
    state: {
      id: '5cb9e604-45e4-43da-b2b1-06ec0a940cba',
      name: 'Backlog',
      type: 'backlog',
      color: '#bec2c8',
    },
    teamId: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
    team: {
      id: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
      key: 'ENG',
      name: 'Engineering',
    },
    assigneeId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    assignee: {
      id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
      name: 'Jane Doe',
      email: '[email protected]',
      avatarUrl: 'https://public.linear.app/avatar.png',
      url: 'https://linear.app/acme/profiles/jane',
    },
    creatorId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    projectId: '88657020-ff26-4832-8183-26f5d943a70d',
    project: {
      id: '88657020-ff26-4832-8183-26f5d943a70d',
      name: 'Website Relaunch',
      url: 'https://linear.app/acme/project/website-relaunch-e25bc5c7ddbb',
    },
    parentId: '50c94733-81f5-419c-a370-d35b7405643c',
    labelIds: [
      '4cc5da39-f988-4290-ada2-6f5e3ab73d06',
    ],
    labels: [
      {
        id: '4cc5da39-f988-4290-ada2-6f5e3ab73d06',
        name: 'bug',
        color: '#ff0000',
      },
    ],
    subscriberIds: [
      '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    ],
    createdAt: '2026-09-29T11:40:04.426Z',
    updatedAt: '2026-09-29T11:40:04.426Z',
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: '8bbfc2ef-b432-439b-bd16-2a217af0e8f9',
  webhookTimestamp: 1790682004728,
};

const updatedIssueSample = {
  action: 'update',
  type: 'Issue',
  url: 'https://linear.app/acme/issue/ENG-16/fix-checkout-button-on-mobile',
  createdAt: '2026-09-29T11:40:15.016Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: 'a276f64a-bbf4-4ab4-8cdb-9ff558d42ed8',
    identifier: 'ENG-16',
    number: 16,
    title: 'Fix checkout button on mobile',
    url: 'https://linear.app/acme/issue/ENG-16/fix-checkout-button-on-mobile',
    priority: 3,
    priorityLabel: 'Medium',
    dueDate: '2026-10-15',
    stateId: 'd1675f0a-50bf-45eb-96f2-1a479f7e2db8',
    state: {
      id: 'd1675f0a-50bf-45eb-96f2-1a479f7e2db8',
      name: 'Done',
      type: 'completed',
      color: '#5e6ad2',
    },
    teamId: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
    team: {
      id: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
      key: 'ENG',
      name: 'Engineering',
    },
    assigneeId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    assignee: {
      id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
      name: 'Jane Doe',
      email: '[email protected]',
      avatarUrl: 'https://public.linear.app/avatar.png',
      url: 'https://linear.app/acme/profiles/jane',
    },
    creatorId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    projectId: '88657020-ff26-4832-8183-26f5d943a70d',
    project: {
      id: '88657020-ff26-4832-8183-26f5d943a70d',
      name: 'Website Relaunch',
      url: 'https://linear.app/acme/project/website-relaunch-e25bc5c7ddbb',
    },
    parentId: '50c94733-81f5-419c-a370-d35b7405643c',
    labelIds: [
      '4cc5da39-f988-4290-ada2-6f5e3ab73d06',
    ],
    labels: [
      {
        id: '4cc5da39-f988-4290-ada2-6f5e3ab73d06',
        name: 'bug',
        color: '#ff0000',
      },
    ],
    subscriberIds: [
      '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    ],
    createdAt: '2026-09-29T11:40:04.426Z',
    updatedAt: '2026-09-29T11:40:15.015Z',
    completedAt: '2026-09-29T11:40:14.954Z',
  },
  updatedFrom: {
    updatedAt: '2026-09-29T11:40:04.426Z',
    sortOrder: -4084,
    completedAt: null,
    stateId: '5cb9e604-45e4-43da-b2b1-06ec0a940cba',
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: '6a1a2412-b590-4b48-8025-28c7a7769080',
  webhookTimestamp: 1790682015236,
};

const removedIssueSample = {
  action: 'remove',
  type: 'Issue',
  url: 'https://linear.app/acme/issue/ENG-14/fix-checkout-button-on-mobile-title-only',
  createdAt: '2026-09-29T11:37:05.098Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: 'dc65d8cc-5637-4f7f-bfc8-1462b930ab2f',
    identifier: 'ENG-14',
    number: 14,
    title: 'Fix checkout button on mobile (title only)',
    description: 'The button does not respond on small screens.',
    url: 'https://linear.app/acme/issue/ENG-14/fix-checkout-button-on-mobile-title-only',
    priority: 2,
    priorityLabel: 'High',
    stateId: '0329c834-8f90-44d5-9929-cdf3e9ba482f',
    state: {
      id: '0329c834-8f90-44d5-9929-cdf3e9ba482f',
      name: 'In Progress',
      type: 'started',
      color: '#f2c94c',
    },
    teamId: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
    team: {
      id: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
      key: 'ENG',
      name: 'Engineering',
    },
    assigneeId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    assignee: {
      id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
      name: 'Jane Doe',
      email: '[email protected]',
      avatarUrl: 'https://public.linear.app/avatar.png',
      url: 'https://linear.app/acme/profiles/jane',
    },
    creatorId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    labelIds: [],
    labels: [],
    subscriberIds: [
      '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    ],
    createdAt: '2026-09-29T11:36:08.752Z',
    updatedAt: '2026-09-29T11:36:48.430Z',
    startedAt: '2026-09-29T11:36:38.982Z',
    trashed: true,
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: '0898e887-e7aa-4761-bab0-b67525091d33',
  webhookTimestamp: 1790681825897,
};

const newCommentSample = {
  action: 'create',
  type: 'Comment',
  url: 'https://linear.app/acme/issue/ENG-15/checkout-improvements#comment-7d9994f5',
  createdAt: '2026-09-29T11:40:14.853Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: '7d9994f5-daa2-4289-9403-62cd9523cf34',
    body: 'I can reproduce this on iOS 18.',
    issueId: '50c94733-81f5-419c-a370-d35b7405643c',
    parentId: '45b94028-bd90-4198-bc16-7175e2f25b8d',
    userId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    user: {
      id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
      name: 'Jane Doe',
      email: '[email protected]',
      avatarUrl: 'https://public.linear.app/avatar.png',
      url: 'https://linear.app/acme/profiles/jane',
    },
    issue: {
      id: '50c94733-81f5-419c-a370-d35b7405643c',
      identifier: 'ENG-15',
      title: 'Checkout improvements',
      url: 'https://linear.app/acme/issue/ENG-15/checkout-improvements',
      teamId: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
      team: {
        id: '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
        key: 'ENG',
        name: 'Engineering',
      },
    },
    createdAt: '2026-09-29T11:40:14.853Z',
    updatedAt: '2026-09-29T11:40:14.819Z',
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: 'aedb526f-21e7-4430-b0e6-6ba22cb8c317',
  webhookTimestamp: 1790682015236,
};

const newProjectSample = {
  action: 'create',
  type: 'Project',
  url: 'https://linear.app/acme/project/website-relaunch-e25bc5c7ddbb',
  createdAt: '2026-09-29T11:39:53.443Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: '88657020-ff26-4832-8183-26f5d943a70d',
    identifier: 'P-ENG-5',
    name: 'Website Relaunch',
    description: '',
    url: 'https://linear.app/acme/project/website-relaunch-e25bc5c7ddbb',
    slugId: 'e25bc5c7ddbb',
    color: '#bec2c8',
    icon: 'Rocket',
    priority: 0,
    statusId: 'f6ec040e-2e2d-4fe9-997d-931359a280ca',
    status: {
      id: 'f6ec040e-2e2d-4fe9-997d-931359a280ca',
      name: 'Backlog',
      type: 'backlog',
      color: '#F2994A',
    },
    teamIds: [
      '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
    ],
    leadId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    lead: {
      id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
      name: 'Jane Doe',
      email: '[email protected]',
      avatarUrl: 'https://public.linear.app/avatar.png',
      url: 'https://linear.app/acme/profiles/jane',
    },
    memberIds: [
      '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    ],
    labelIds: [],
    creatorId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    startDate: '2026-09-29',
    targetDate: '2026-10-31',
    createdAt: '2026-09-29T11:39:53.443Z',
    updatedAt: '2026-09-29T11:39:53.443Z',
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: 'fbc579fb-5023-4761-ac79-f3dde5a84c13',
  webhookTimestamp: 1790681993971,
};

const updatedProjectSample = {
  action: 'update',
  type: 'Project',
  url: 'https://linear.app/acme/project/website-relaunch-cb2d4f61101b',
  createdAt: '2026-09-29T11:36:48.465Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: '789d88a5-6c49-4615-a2c5-d08c78c6d84c',
    identifier: 'P-ENG-4',
    name: 'Website Relaunch',
    description: 'Relaunch of the marketing site.',
    url: 'https://linear.app/acme/project/website-relaunch-cb2d4f61101b',
    slugId: 'cb2d4f61101b',
    color: '#26b5ce',
    priority: 0,
    statusId: '53b1cca7-2c88-4790-a857-e3006c040b1e',
    status: {
      id: '53b1cca7-2c88-4790-a857-e3006c040b1e',
      name: 'In Progress',
      type: 'started',
      color: '#F2C94C',
    },
    teamIds: [
      '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
    ],
    memberIds: [],
    labelIds: [],
    creatorId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    startDate: '2026-09-29',
    targetDate: null,
    createdAt: '2026-09-29T11:36:38.932Z',
    updatedAt: '2026-09-29T11:36:48.463Z',
    startedAt: '2026-09-29T11:36:48.462Z',
  },
  updatedFrom: {
    updatedAt: '2026-09-29T11:36:38.932Z',
    statusId: 'f6ec040e-2e2d-4fe9-997d-931359a280ca',
    startDate: null,
    startedAt: null,
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: '1c049afa-f601-4914-8a2f-f247856c8858',
  webhookTimestamp: 1790681808726,
};

const removedProjectSample = {
  action: 'remove',
  type: 'Project',
  url: 'https://linear.app/acme/project/website-relaunch-cb2d4f61101b',
  createdAt: '2026-09-29T11:37:05.533Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: '789d88a5-6c49-4615-a2c5-d08c78c6d84c',
    identifier: 'P-ENG-4',
    name: 'Website Relaunch',
    description: 'Relaunch of the marketing site.',
    url: 'https://linear.app/acme/project/website-relaunch-cb2d4f61101b',
    slugId: 'cb2d4f61101b',
    color: '#26b5ce',
    priority: 0,
    statusId: '53b1cca7-2c88-4790-a857-e3006c040b1e',
    status: {
      id: '53b1cca7-2c88-4790-a857-e3006c040b1e',
      name: 'In Progress',
      type: 'started',
      color: '#F2C94C',
    },
    health: 'onTrack',
    teamIds: [
      '25a6a33a-fc39-44fa-a441-4383a09ab4ec',
    ],
    memberIds: [],
    labelIds: [],
    creatorId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    startDate: '2026-09-29',
    targetDate: null,
    createdAt: '2026-09-29T11:36:38.932Z',
    updatedAt: '2026-09-29T11:36:48.463Z',
    startedAt: '2026-09-29T11:36:48.462Z',
    trashed: true,
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: '595fe5d9-5f09-41e9-b398-de458c86fe50',
  webhookTimestamp: 1790681826388,
};

const newProjectStatusUpdateSample = {
  action: 'create',
  type: 'ProjectUpdate',
  url: 'https://linear.app/acme/project/website-relaunch-cb2d4f61101b/activity#project-update-06c926c2',
  createdAt: '2026-09-29T11:36:48.413Z',
  actor: {
    id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    name: 'Jane Doe',
    email: '[email protected]',
    avatarUrl: 'https://public.linear.app/avatar.png',
    url: 'https://linear.app/acme/profiles/jane',
    type: 'user',
  },
  data: {
    id: '06c926c2-140c-432c-b618-ae0d595ff59d',
    body: 'On track for the October launch.',
    health: 'onTrack',
    diffMarkdown: '**Status**: In Progress\n**Start date** set to Sep 29th',
    slugId: '06c926c2',
    projectId: '789d88a5-6c49-4615-a2c5-d08c78c6d84c',
    project: {
      id: '789d88a5-6c49-4615-a2c5-d08c78c6d84c',
      name: 'Website Relaunch',
      url: 'https://linear.app/acme/project/website-relaunch-cb2d4f61101b',
    },
    userId: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
    user: {
      id: '0d756b70-49e3-4c06-abeb-667df5d00e4a',
      name: 'Jane Doe',
      email: '[email protected]',
      avatarUrl: 'https://public.linear.app/avatar.png',
      url: 'https://linear.app/acme/profiles/jane',
    },
    createdAt: '2026-09-29T11:36:48.413Z',
    updatedAt: '2026-09-29T11:36:48.413Z',
  },
  organizationId: 'b274213f-4064-4760-bcba-decd45c8d9be',
  webhookId: 'a3800b1a-0896-49ac-a389-c713c08c9595',
  webhookTimestamp: 1790681808718,
};

export const linearWebhookSamples = {
  newIssueSample,
  updatedIssueSample,
  removedIssueSample,
  newCommentSample,
  newProjectSample,
  updatedProjectSample,
  removedProjectSample,
  newProjectStatusUpdateSample,
};