Skip to content

feat(ci): add staging sync workflow with issue automation#124

Merged
fahmidareem3 merged 7 commits intomainfrom
develop
May 5, 2026
Merged

feat(ci): add staging sync workflow with issue automation#124
fahmidareem3 merged 7 commits intomainfrom
develop

Conversation

@fahmidareem3
Copy link
Copy Markdown
Contributor

@fahmidareem3 fahmidareem3 commented May 5, 2026

Overview

This PR introduces a new GitHub Actions workflow to sync changes from the staging environment to the SDK repository via automated issue creation.

The workflow listens to repository_dispatch events (backend-staging-pushed) and ensures that any API-level changes are surfaced for SDK updates.


What’s Included

  • New workflow: backend-sync.yml
  • Triggered via repository_dispatch from backend staging
  • Automatically:
    • Parses and validates incoming payload
    • Extracts commit details and changed files
    • Creates a new issue or appends to an existing one (deduplicated within 24h window)
  • Adds labels: api-sync, backend

Key Features

  • Robust payload validation

    • Sanitizes filenames
    • Validates URLs and commit metadata
    • Handles missing or malformed payloads safely
  • Smart deduplication

    • Prevents issue spam by appending updates to recent open issues
    • Uses a 24-hour window for grouping related changes
  • Readable issue formatting

    • Displays commit SHA, message, and changed files
    • Handles large diffs with truncation + summary
    • Includes direct links to compare view and workflow run
  • Edge case handling

    • Gracefully skips empty payloads
    • Handles truncated file lists and incorrect counts
    • Escapes markdown to prevent formatting issues

@fahmidareem3 fahmidareem3 requested a review from ccp-manash May 5, 2026 11:15
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aeb1812775

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/backend-sync.yml
chore: rename workflow file and workflow content
@fahmidareem3 fahmidareem3 changed the title feat(ci): add Crowdsplit staging sync workflow with issue automation feat(ci): add staging sync workflow with issue automation May 5, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48fed196bd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/backend-sync.yml
@fahmidareem3 fahmidareem3 merged commit 59856e0 into main May 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants