Documentation

GitHub Actions Workflows

Automate your development workflow with pre-built GitHub Actions

Quick Install
Download all workflows in a single ZIP file

Get started quickly with our pre-configured workflow bundle. Extract to your `.github/workflows/` directory.

Available Workflows

Each workflow is designed to integrate seamlessly with DebugGo and enhance your development process.

DebugGo Auto Fix
Automatically generate fixes when triggered via issue comments

This workflow listens for `/fix` commands in issue comments and triggers automated fix generation.

.github/workflows/debuggo-auto-fix.ymlyaml
name: DebugGo Auto Fix

on:
  issue_comment:
    types: [created]

jobs:
  auto-fix:
    # Only run when comment contains /fix command
    if: contains(github.event.comment.body, '/fix')
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '18'

      - name: Run DebugGo Fix
        run: npx debuggo run
        env:
          DEBUGGO_API_KEY: ${{ secrets.DEBUGGO_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          ISSUE_NUMBER: ${{ github.event.issue.number }}

      - name: Comment on issue
        if: success()
        uses: actions/github-script@v6
        with:
          script: |
            github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: '✅ Fix generated and PR created!'
            })
DebugGo Auto Labeler
Automatically label issues based on content and type

Analyzes issue content and applies appropriate labels for better organization.

.github/workflows/debuggo-labeler.ymlyaml
name: DebugGo Auto Labeler

on:
  issues:
    types: [opened, edited]

jobs:
  label:
    runs-on: ubuntu-latest

    steps:
      - name: Analyze and label issue
        uses: actions/github-script@v6
        with:
          script: |
            const issue = context.payload.issue;
            const labels = [];

            // Check for bug reports
            if (issue.body.includes('[BUG]') || issue.title.includes('bug')) {
              labels.push('bug');
            }

            // Check for feature requests
            if (issue.body.includes('[FEATURE]') || issue.title.includes('feature')) {
              labels.push('enhancement');
            }

            // Check for documentation
            if (issue.body.includes('[DOCS]') || issue.title.includes('documentation')) {
              labels.push('documentation');
            }

            // Add DebugGo label for issues created via DebugGo
            if (issue.body.includes('Created via DebugGo')) {
              labels.push('debuggo');
            }

            if (labels.length > 0) {
              await github.rest.issues.addLabels({
                issue_number: context.issue.number,
                owner: context.repo.owner,
                repo: context.repo.repo,
                labels: labels
              });
            }
DebugGo Issue Notifier
Send notifications when high-priority issues are created

Alerts your team via Slack or Discord when critical bugs are reported.

.github/workflows/debuggo-notifier.ymlyaml
name: DebugGo Issue Notifier

on:
  issues:
    types: [opened]

jobs:
  notify:
    runs-on: ubuntu-latest

    steps:
      - name: Check for high priority
        id: check
        uses: actions/github-script@v6
        with:
          script: |
            const issue = context.payload.issue;
            const isHighPriority =
              issue.labels.some(l => l.name === 'critical') ||
              issue.title.includes('[URGENT]') ||
              issue.body.includes('[CRITICAL]');

            core.setOutput('is_high_priority', isHighPriority);

      - name: Send Slack notification
        if: steps.check.outputs.is_high_priority == 'true'
        uses: slackapi/slack-github-action@v1.24.0
        with:
          payload: |
            {
              "text": "🚨 High Priority Issue Created",
              "blocks": [
                {
                  "type": "section",
                  "text": {
                    "type": "mrkdwn",
                    "text": "*New Critical Issue:* <${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>"
                  }
                }
              ]
            }
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

Configuration

Required Secrets

Add these secrets to your repository before using the workflows:

  • DEBUGGO_API_KEY - Your DebugGo API key
  • SLACK_WEBHOOK_URL - For Slack notifications (optional)

Go to Settings → Secrets and variables → Actions to add these secrets.

Installation Steps
  1. Download workflows

    Download the workflows.zip file or copy individual YAML files

  2. Add to repository

    Place files in `.github/workflows/` directory

  3. Configure secrets

    Add required secrets in repository settings

  4. Customize triggers

    Modify the `on:` section to match your branch strategy

  5. Push to repository

    Commit and push the workflow files to activate them

Best Practices

Test in a separate branch

Before deploying workflows to production, test them in a feature branch to ensure they work correctly with your setup.

Use environment-specific secrets

Store different API keys for development and production environments to avoid mixing test and production data.

Monitor workflow usage

GitHub Actions have usage limits. Monitor your workflow runs to avoid unexpected charges on private repositories.