Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Aug 13, 2025

This PR migrates all GitHub workflows from using the deprecated opentelemetrybot user account to the new otelbot GitHub App, as requested in the migration initiative.

Changes Made

.github/workflows/release-please.yml

.github/workflows/update-otel-deps.yaml

  • Replaced token authentication: Migrated from secrets.OPENTELEMETRYBOT_GITHUB_TOKEN to GitHub App token generation using actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e
  • Eliminated fork-based workflow: Since otelbot is a GitHub App and doesn't have forks, removed the fork creation and upstream sync steps
  • Switch to branch-based workflow: Now pushes directly to branches on the main repository prefixed with otelbot/
  • Split responsibilities: Uses secrets.GITHUB_TOKEN for pushing branches and the otelbot App token for creating PRs (to ensure workflows are triggered)
  • Updated git config to use the new otelbot identity

Key Technical Changes

The most significant change is in update-otel-deps.yaml where the workflow previously:

  1. Forked the repository to opentelemetrybot/opentelemetry-js-contrib
  2. Synced with upstream
  3. Made changes and created PR from the fork

Now it:

  1. Generates an otelbot App token
  2. Works directly on the main repository
  3. Creates a branch prefixed with otelbot/
  4. Uses different tokens for pushing vs PR creation to maintain proper workflow triggering

This ensures compatibility with the GitHub App model while maintaining all existing functionality.

Fixes #32.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI assigned Copilot and trask Aug 13, 2025
Copy link
Author

Copilot AI commented Aug 13, 2025

@trask 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@Copilot Copilot AI changed the title [WIP] Migrate from opentelemetrybot to otelbot Migrate from opentelemetrybot to otelbot in GitHub workflows Aug 13, 2025
@Copilot Copilot AI requested a review from trask August 13, 2025 01:20
Copilot finished work on behalf of trask August 13, 2025 01:20
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.

Migrate from opentelemetrybot to otelbot
2 participants