Skip to content

Commit 2efe8ef

Browse files
authored
Replace hub with gh (#648)
* Replace `hub` CLI with the official `gh` tool. `hub` has been removed from the runner-images actions/runner-images#8362 Signed-off-by: Matias Charriere <[email protected]> * update changelog Signed-off-by: Matias Charriere <[email protected]> --------- Signed-off-by: Matias Charriere <[email protected]>
1 parent 1842076 commit 2efe8ef

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Replaced `hub` with `gh` in CI templates.
13+
1014
### Fixed
1115

1216
- Fixed inconsistent logging in `devctl repo setup renovate`.

Diff for: pkg/gen/input/workflows/internal/file/create_release.yaml.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
version: "${{ needs.gather_facts.outputs.version }}"
138138
title: "Bump version to ${{ steps.update_project_go.outputs.new_version }}"
139139
run: |
140-
hub pull-request -f -m "${{ env.title }}" -b ${{ env.base }} -h ${{ env.branch }} -r ${{ github.actor }}
140+
gh pr create --title "${{ env.title }}" --body "" --base ${{ env.base }} --head ${{ env.branch }} --reviewer ${{ github.actor }}
141141
create_release:
142142
name: Create release
143143
runs-on: ubuntu-22.04

Diff for: pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,4 @@ jobs:
221221
base: "${{ needs.gather_facts.outputs.base }}"
222222
version: "${{ needs.gather_facts.outputs.version }}"
223223
run: |
224-
hub pull-request -f -m "Release v${{ env.version }}" -a ${{ github.actor }} -b ${{ env.base }} -h ${{ needs.gather_facts.outputs.branch }}
224+
gh pr create --assignee ${{ github.actor }} --title "Release v${{ env.version }}" --body "" --base ${{ env.base }} --head "${{ needs.gather_facts.outputs.branch }}"

Diff for: pkg/gen/input/workflows/internal/file/update_chart.yaml.template

+6-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,9 @@ jobs:
122122
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}"
123123
base: "${{ needs.gather_facts.outputs.base }}"
124124
run: |
125-
hub pull-request -f -m "Automated update from upstream" -m "This PR was created by the \`update-chart\` GitHub Actions workflow." -m "- [ ] **:warning: All tests are passing**" -m "- [ ] **:warning: The CHANGELOG.md file has been updated**" -m "- [ ] **:warning: Additional changes in ignored files (see vendir.yml) have been adapted and migrated**" -l "automated-update" -a ${{ github.actor }} -b ${{ env.base }} -h ${{ needs.gather_facts.outputs.branch }}
125+
gh pr create --title "Automated update from upstream" --label "automated-update" --assignee ${{ github.actor }} --base ${{ env.base }} --head ${{ needs.gather_facts.outputs.branch }} --body-file - << EOF
126+
This PR was created by the \`update-chart\` GitHub Actions workflow.
127+
- [ ] **:warning: All tests are passing**
128+
- [ ] **:warning: The CHANGELOG.md file has been updated**
129+
- [ ] **:warning: Additional changes in ignored files (see vendir.yml) have been adapted and migrated**
130+
EOF

0 commit comments

Comments
 (0)