Skip to content

Conversation

@nina-kollman
Copy link
Contributor

@nina-kollman nina-kollman commented Nov 27, 2025

Important

Adds documentation for GitHub integration to run Traceloop experiments in CI/CD pipelines, including setup and usage instructions.

  • Documentation:
    • Adds integrations/github.mdx with a guide on setting up GitHub integration for Traceloop experiments.
    • Covers GitHub App installation, repository access configuration, experiment script creation, CI workflow setup, and viewing results in pull requests.
  • Configuration:
    • Updates mint.json to include the new GitHub integration page under the "Integrations" group.

This description was created by Ellipsis for 14290e9. You can customize this summary. It will automatically update as commits are pushed.


Summary by CodeRabbit

  • Documentation
    • Added a GitHub integration guide covering GitHub App installation, CI workflow setup with GitHub Actions, experiment scripts (Python/TypeScript examples), secrets management, and how evaluation results appear in pull requests and the dashboard.
  • Chores
    • Updated site navigation to include the new GitHub integration page under Integrations.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 27, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Adds a new GitHub integration MDX doc describing installation/configuration of the Traceloop GitHub App, CI experiment scripts (Python/TypeScript), a GitHub Actions workflow, PR comment/dashboard result examples, and updates site navigation to include the new page.

Changes

Cohort / File(s) Summary
New GitHub integration doc
integrations/github.mdx
New MDX doc with end-to-end instructions: install/authorize the GitHub App, repository/permission guidance, sample experiment scripts (Python & TypeScript), GitHub Actions workflow example, required secrets, and PR comments/dashboard screenshots.
Navigation update
mint.json
Added "integrations/github" to the Integrations group pages array in the site manifest/navigation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify accuracy and executability of code examples (Python/TypeScript, Actions workflow).
  • Confirm secret names and screenshots referenced.
  • Check mint.json entry formatting and ordering.

Suggested reviewers

  • nirga
  • doronkopit5

Poem

🐇 I hopped through docs with a joyful spin,
A GitHub App, CI, and scripts to win,
PR comments sing while dashboards glow,
Experiments run, results in tow,
Hooray — builds and bunnies on the go! 🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs(integration): Add github integration docs' clearly and concisely summarizes the main change: adding GitHub integration documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch nk/exp_in_github

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Caution

Changes requested ❌

Reviewed everything up to a010668 in 2 minutes and 22 seconds. Click for details.
  • Reviewed 302 lines of code in 2 files
  • Skipped 8 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. integrations/github.mdx:33
  • Draft comment:
    Typographical error: "autorization" should be "authorization".
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_fOvrQlhOAtSP6aeS

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4c8d795 and a010668.

⛔ Files ignored due to path filters (8)
  • img/traceloop-integrations/github-app-auth-dark.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-auth-light.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-comment-dark.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-comment-light.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-exp-run-results-dark.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-exp-run-results-light.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-secrets-dark.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-secrets-light.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • integrations/github.mdx (1 hunks)
  • mint.json (1 hunks)
🔇 Additional comments (4)
integrations/github.mdx (3)

207-207: Verify YAML code block identifier syntax.

Line 207 uses an unusual identifier "yaml ci-cd configuration" for the code block. Verify this is the correct format for your documentation parser. Typically, code blocks use just the language identifier (e.g., yaml).


246-246: Verify link formatting renders correctly.

Line 246 contains a link with an arrow symbol that may not render as intended: [Generate one in Settings →](/settings/managing-api-keys). Consider either removing the arrow or verifying it displays correctly in the rendered documentation.


42-43: All referenced images exist in the repository.

Verification confirms all 8 image files are present in img/traceloop-integrations/:

  • github-app-auth-light.png and -dark.png ✓
  • github-app-secrets-light.png and -dark.png ✓
  • github-app-comment-light.png and -dark.png ✓
  • github-app-exp-run-results-light.png and -dark.png ✓

The documentation image references are valid and no action is needed.

mint.json (1)

203-206: LGTM: Navigation configuration is properly formatted.

The integration documentation page has been correctly added to the site navigation. The reference path matches the filename, syntax is correct, and placement is consistent with existing integrations.

@nirga nirga changed the title docs(integration): Add github inegration docs docs(integration): Add github integration docs Nov 27, 2025
Copy link
Member

@nirga nirga left a comment

Choose a reason for hiding this comment

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

@nina-kollman Add a link to this from the experiments page with a

</Info>
</Step>

<Step title="Configure Repository Access">
Copy link
Member

Choose a reason for hiding this comment

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

missing the last step of confirmation you showed us

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is here - number 3 :
image

@nirga
Copy link
Member

nirga commented Nov 27, 2025

@nina-kollman typos here we need to fix it before merging
Screenshot 2025-11-27 at 18 03 14

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Caution

Changes requested ❌

Reviewed 14290e9 in 2 minutes and 3 seconds. Click for details.
  • Reviewed 31 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. integrations/github.mdx:33
  • Draft comment:
    Good correction: 'autorization' has been fixed to 'authorization'.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. integrations/github.mdx:6
  • Draft comment:
    Typographical suggestion: The header 'Track experiments results in CI' might be rephrased. Consider using an apostrophe for clarity (e.g., 'Track experiments' results in CI') or rewording it to 'Track experiment results in CI'.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_Ri9V0HKilvNbE5ac

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
integrations/github.mdx (1)

28-38: Fix outstanding typo in Step 2.

Line 33 contains a spelling error that was previously flagged: "autorization" should be "authorization".

-    After installing the app you will be redirected to a Traceloop autorization page.
+    After installing the app you will be redirected to a Traceloop authorization page.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a010668 and 14290e9.

⛔ Files ignored due to path filters (2)
  • img/traceloop-integrations/github-app-comment-dark.png is excluded by !**/*.png
  • img/traceloop-integrations/github-app-comment-light.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • integrations/github.mdx (1 hunks)

Comment on lines +204 to +237
<Step title="Set up Your CI Workflow">
Add a GitHub Actions workflow to automatically run Traceloop experiments on pull requests.
Below is an example workflow file you can customize for your project:
```yaml ci-cd configuration
name: Run Traceloop Experiments

on:
pull_request:
branches: [main, master]

jobs:
run-experiments:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install traceloop-sdk openai

- name: Run experiments
env:
TRACELOOP_API_KEY: ${{ secrets.TRACELOOP_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
python experiments/run_ci_experiments.py
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove extraneous text from YAML code fence.

Line 207 has extra text in the code fence that disrupts syntax highlighting. The code fence should only contain the language identifier.

-    ```yaml ci-cd configuration 
+    ```yaml
     name: Run Traceloop Experiments
🤖 Prompt for AI Agents
integrations/github.mdx around lines 204 to 237: the opening code fence contains
extraneous text "yaml ci-cd configuration" which breaks syntax highlighting;
remove that extra text so the fence is just the language identifier (```yaml)
and ensure the YAML block starts immediately after the fence with the existing
workflow content.

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 14290e9 and dcb05e1.

📒 Files selected for processing (1)
  • integrations/github.mdx (1 hunks)
🔇 Additional comments (2)
integrations/github.mdx (2)

33-33: Typo already fixed—good catch.

The typo mentioned in past reviews has been corrected: "authorization" is now spelled correctly (was "autorization").


1-280: Comprehensive GitHub integration documentation—well structured.

The documentation clearly covers the end-to-end workflow: GitHub App installation, repository configuration, experiment script creation (with Python and TypeScript examples), CI workflow setup, and results visualization. Code examples are runnable and well-commented. UI illustrations are provided with light/dark theme variants. The setup instructions are clear and actionable.

<Step title="Set up Your CI Workflow">
Add a GitHub Actions workflow to automatically run Traceloop experiments on pull requests.
Below is an example workflow file you can customize for your project:
```yaml ci-cd configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove extraneous text from YAML code fence.

Line 207 contains extra text "ci-cd configuration" after the language identifier, which disrupts syntax highlighting. The code fence should only contain yaml.

-    ```yaml ci-cd configuration 
+    ```yaml
     name: Run Traceloop Experiments
🤖 Prompt for AI Agents
In integrations/github.mdx around line 207, the opening fenced code block
includes extraneous text ("ci-cd configuration") after the language identifier
which breaks syntax highlighting; remove the extra text so the fence is just
```yaml. Update the line to begin with exactly three backticks followed by
"yaml" and nothing else, leaving the rest of the block unchanged.

@nina-kollman nina-kollman merged commit dd7ec47 into main Nov 30, 2025
4 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