mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
Set up Hugo release flow on CircleCI
This rewrites the release logic to use CircleCI 2.0 and its approve workflow in combination with the state of the release notes to determine what to do next. Fixes #3779
This commit is contained in:
parent
f4bf214137
commit
d2249c5099
11 changed files with 197 additions and 86 deletions
|
@ -23,14 +23,16 @@ import (
|
|||
|
||||
func TestGitHubLookupCommit(t *testing.T) {
|
||||
skipIfNoToken(t)
|
||||
commit, err := fetchCommit("793554108763c0984f1a1b1a6ee5744b560d78d0")
|
||||
client := newGitHubAPI("hugo")
|
||||
commit, err := client.fetchCommit("793554108763c0984f1a1b1a6ee5744b560d78d0")
|
||||
require.NoError(t, err)
|
||||
fmt.Println(commit)
|
||||
}
|
||||
|
||||
func TestFetchRepo(t *testing.T) {
|
||||
skipIfNoToken(t)
|
||||
repo, err := fetchRepo()
|
||||
client := newGitHubAPI("hugo")
|
||||
repo, err := client.fetchRepo()
|
||||
require.NoError(t, err)
|
||||
fmt.Println(">>", len(repo.Contributors))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue