Skip to content

Commit 309c249

Browse files
Migrate from opentelemetrybot to otelbot (#1066)
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
1 parent 7d3c6cf commit 309c249

4 files changed

Lines changed: 21 additions & 8 deletions

File tree

.github/repository-settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Same settings as above for `main`, except:
1717

1818
* Restrict pushes that create matching branches: UNCHECKED
1919

20-
(So that opentelemetrybot can create release branches)
20+
(So that otelbot can create release branches)
2121

22-
### `renovate/**/**`, and `opentelemetrybot/*`
22+
### `renovate/**/**`, and `otelbot/*`
2323

2424
* Require status checks to pass before merging: UNCHECKED
2525

.github/scripts/generate-release-contributors.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,5 @@ echo "$contributors1" \
8787
| grep -v github-actions \
8888
| grep -v renovate \
8989
| grep -v opentelemetrybot \
90+
| grep -v otelbot \
9091
| sed 's/^/@/'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash -e
22

3-
git config user.name opentelemetrybot
4-
git config user.email 107717825+opentelemetrybot@users.noreply.github.com
3+
git config user.name otelbot
4+
git config user.email 197425009+otelbot@users.noreply.github.com

.github/workflows/prepare-release-branch.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,19 @@ jobs:
6161
- name: Use CLA approved github bot
6262
run: .github/scripts/use-cla-approved-github-bot.sh
6363

64+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
65+
id: otelbot-token
66+
with:
67+
app-id: ${{ vars.OTELBOT_APP_ID }}
68+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
69+
6470
- name: Create pull request against the release branch
6571
env:
6672
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
67-
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
73+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
6874
run: |
6975
message="Prepare release $VERSION"
70-
branch="opentelemetrybot/prepare-release-${VERSION}"
76+
branch="otelbot/prepare-release-${VERSION}"
7177
7278
git checkout -b $branch
7379
git commit -a -m "$message"
@@ -114,14 +120,20 @@ jobs:
114120
- name: Use CLA approved github bot
115121
run: .github/scripts/use-cla-approved-github-bot.sh
116122

123+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
124+
id: otelbot-token
125+
with:
126+
app-id: ${{ vars.OTELBOT_APP_ID }}
127+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
128+
117129
- name: Create pull request against main
118130
env:
119131
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
120-
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
132+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
121133
run: |
122134
message="Update version to $NEXT_VERSION"
123135
body="Update version to \`$NEXT_VERSION\`."
124-
branch="opentelemetrybot/update-version-to-${NEXT_VERSION}"
136+
branch="otelbot/update-version-to-${NEXT_VERSION}"
125137
126138
git checkout -b $branch
127139
git commit -a -m "$message"

0 commit comments

Comments
 (0)