Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 14, 2025

This PR migrates the repository from using the opentelemetrybot user account to the otelbot GitHub App for automated workflows and operations.

Changes Made

1. Token Migration

  • Replaced all instances of ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} with ${{ steps.otelbot-token.outputs.token }}
  • Added GitHub App token creation step directly before each step that uses the token:
    - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
      id: otelbot-token
      with:
        app-id: ${{ vars.OTELBOT_APP_ID }}
        private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}

2. Git Configuration Update

Updated .github/scripts/use-cla-approved-github-bot.sh:

3. Branch Name Updates

Updated all branch names from opentelemetrybot/ prefix to otelbot/ prefix in:

  • prepare-release-branch.yml
  • package-prepare-release.yml
  • package-prepare-patch-release.yml
  • backport.yml
  • package-release.yml
  • prepare-patch-release.yml

4. User Login Comparisons

Updated user login comparisons from opentelemetrybot to otelbot[bot] (with the [bot] suffix required for GitHub Apps) in:

  • Workflow template: misc.yml.j2
  • Generated workflow: misc_0.yml
  • Manual workflow: changelog.yml

5. Workflow Files Updated

The following workflow files were updated:

  • .github/workflows/prepare-release-branch.yml
  • .github/workflows/package-prepare-release.yml
  • .github/workflows/package-prepare-patch-release.yml
  • .github/workflows/backport.yml
  • .github/workflows/package-release.yml
  • .github/workflows/prepare-patch-release.yml
  • .github/workflows/changelog.yml
  • .github/workflows/misc_0.yml

6. Template Updates

Updated the workflow generation template .github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2 to use otelbot[bot] instead of opentelemetrybot.

Validation

  • All workflow files are syntactically valid YAML
  • No remaining references to opentelemetrybot or OPENTELEMETRYBOT_GITHUB_TOKEN
  • Workflow generation continues to work correctly
  • Git configuration script executes without errors

Fixes #22.


💡 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 changed the title [WIP] Migrate from opentelemetrybot to otelbot Migrate from opentelemetrybot to otelbot Jul 14, 2025
@Copilot Copilot AI requested a review from trask July 14, 2025 15:31
Copilot finished work on behalf of trask July 14, 2025 15:31
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