Skip to content

Migrate from opentelemetrybot to otelbot #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 14, 2025

This PR migrates all GitHub workflow configurations from the opentelemetrybot user account to the otelbot GitHub app as requested in the issue.

Changes Made

1. Token Migration

  • Replaced all instances of ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} with ${{ steps.otelbot-token.outputs.token }}
  • Added the otelbot token generation step directly before each step that uses it:
    - 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:

git config user.name otelbot
git config user.email 197425009+otelbot@users.noreply.github.com

3. User Login Checks

Updated all conditional logic from opentelemetrybot to otelbot[bot] (with the [bot] suffix since otelbot is a GitHub app):

  • github.event.pull_request.user.login != 'otelbot[bot]'
  • github.actor != 'otelbot[bot]'

4. Branch Name Updates

Updated branch prefixes from opentelemetrybot/ to otelbot/:

  • otelbot/prepare-release-${VERSION}
  • otelbot/update-version-to-${VERSION}
  • otelbot/backport-${NUMBER}-to-${BRANCH}

Files Modified

  • .github/workflows/prepare-release-branch.yml
  • .github/workflows/backport.yml
  • .github/workflows/prepare-patch-release.yml
  • .github/workflows/check-links.yml
  • .github/workflows/changelog.yml
  • .github/workflows/templates/misc.yml.j2
  • .github/workflows/misc_0.yml (regenerated from template)
  • .github/scripts/use-cla-approved-github-bot.sh

The changes maintain all existing functionality while properly migrating to the new GitHub app authentication system.

Fixes #26.


💡 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.

Co-authored-by: trask <218610+trask@users.noreply.github.com>
@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:25
Copilot finished work on behalf of trask July 14, 2025 15:25
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