FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore(ci): migrate from hub to gh by oxy · Pull Request #3168 · coder/code-server · GitHub

chore(ci): migrate from hub to gh - #3168

Merged
oxy merged 1 commit into
mainfrom
oxy/hub-to-gh
Apr 19, 2021
Merged

chore(ci): migrate from hub to gh#3168
oxy merged 1 commit into
mainfrom
oxy/hub-to-gh

Conversation

oxy commented Apr 19, 2021

Copy link
Copy Markdown

Notes -
In addition to moving our two hub calls to gh, I also replaced the curl calls that depend on GITHUB_TOKEN being set in ci/lib.sh with gh api calls instead; the benefit is that this also allows alternative auth (stored in ~/.config/gh/hosts.yml instead of env).

Closes #2960.

oxy requested a review from a team as a code owner April 19, 2021 20:10

jsjoeio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fantastic work! 🎉

Comment thread ci/build/release-prep.sh
exit
fi

# Check that gh is authenticated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice addition!

Comment thread ci/lib.sh
# example: v3.9.3
local version_branch="v$VERSION"
artifacts_url=$(curl -fsSL "$workflow_runs_url" | jq -r ".workflow_runs[] | select(.head_branch == \"$version_branch\") | .artifacts_url" | head -n 1)
artifacts_url=$(gh api "$workflow_runs_url" | jq -r ".workflow_runs[] | select(.head_branch == \"$version_branch\") | .artifacts_url" | head -n 1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🔥

oxy merged commit 724ee93 into main Apr 19, 2021
oxy deleted the oxy/hub-to-gh branch April 19, 2021 20:51
jsjoeio added this to the v3.9.4 milestone Apr 19, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

[dev]: replace hub with gh

2 participants


Back | FazBrowse Home | New Git URL