Cross-Provider Workflow

Sentry Issue to GitHub Issue to Slack

Version 1.0.0

Pull the latest Sentry issue, open a GitHub issue, then notify Slack.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

sentry github slack

Workflows

sentry-issue-to-github-to-slack
List a Sentry issue, open a GitHub issue, and notify Slack.
Retrieves open issues for a Sentry organization, opens a GitHub issue that references the top Sentry error, and posts a Slack message with the link.
3 steps inputs: organizationSlug, owner, repo, slackChannel outputs: issueNumber, issueUrl, messageTs, sentryIssueId
1
list-sentry-issues
$sourceDescriptions.sentryApi.listOrganizationIssues
List open issues for the Sentry organization.
2
open-github-issue
$sourceDescriptions.githubIssues.createAnIssue
Open a GitHub issue referencing the Sentry error.
3
notify-slack
$sourceDescriptions.slackChat.postChatPostmessage
Notify the triage Slack channel with the issue link.

Source API Descriptions

Arazzo Workflow Specification

dev-sentry-issue-to-github-issue-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: Sentry Issue to GitHub Issue to Slack
  summary: Pull the latest Sentry issue, open a GitHub issue, then notify Slack.
  description: >-
    A DevOps error-triage workflow that lists open issues for a Sentry
    organization, opens a corresponding GitHub tracking issue for the top
    error, and posts a Slack notification with a link so the team can begin
    triage. Demonstrates chaining an error-monitoring provider, a source-control
    provider, and a chat provider in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: sentryApi
    url: https://raw.githubusercontent.com/api-evangelist/sentry/refs/heads/main/openapi/sentry-api-openapi.yml
    type: openapi
  - name: githubIssues
    url: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/openapi/github-repo-issues-api-openapi.yml
    type: openapi
  - name: slackChat
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: sentry-issue-to-github-to-slack
    summary: List a Sentry issue, open a GitHub issue, and notify Slack.
    description: >-
      Retrieves open issues for a Sentry organization, opens a GitHub issue that
      references the top Sentry error, and posts a Slack message with the link.
    inputs:
      type: object
      properties:
        organizationSlug:
          type: string
        owner:
          type: string
        repo:
          type: string
        slackChannel:
          type: string
    steps:
      - stepId: list-sentry-issues
        description: List open issues for the Sentry organization.
        operationId: $sourceDescriptions.sentryApi.listOrganizationIssues
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          sentryIssueId: $response.body#/0/id
          sentryTitle: $response.body#/0/title
          sentryPermalink: $response.body#/0/permalink
      - stepId: open-github-issue
        description: Open a GitHub issue referencing the Sentry error.
        operationId: $sourceDescriptions.githubIssues.createAnIssue
        requestBody:
          contentType: application/json
          payload:
            title: $steps.list-sentry-issues.outputs.sentryTitle
            body: $steps.list-sentry-issues.outputs.sentryPermalink
            labels:
              - bug
              - sentry
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          issueNumber: $response.body#/number
          issueUrl: $response.body#/html_url
      - stepId: notify-slack
        description: Notify the triage Slack channel with the issue link.
        operationId: $sourceDescriptions.slackChat.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.slackChannel
            text: $steps.open-github-issue.outputs.issueUrl
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
    outputs:
      sentryIssueId: $steps.list-sentry-issues.outputs.sentryIssueId
      issueNumber: $steps.open-github-issue.outputs.issueNumber
      issueUrl: $steps.open-github-issue.outputs.issueUrl
      messageTs: $steps.notify-slack.outputs.messageTs