Skip to content

Commit

Permalink
feat: Remove website build hook after generate (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
reobin committed May 7, 2024
1 parent 85e3682 commit ba8c8e9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cli/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,24 +121,9 @@ func Generate(force bool, debug bool, repoKey string) bson.M {

cleanUp()

buildWebsite()

return bson.M{"repositoryCount": generateCount}
}

// Sends a post request to the website build webhook
func buildWebsite() {
fmt.Println()
webhook, exists := dotenv.Get("WEBSITE_BUILD_WEBHOOK")
if exists {
response, err := request.Post(webhook, map[string]string{})
if err != nil {
log.Println("Error during website build webhook request", err)
}
log.Println(response)
}
}

// Initializes a temporary directory for vim configuration files
func initVimFiles() {
workingDirectory, err := os.Getwd()
Expand Down

0 comments on commit ba8c8e9

Please sign in to comment.