mangoGoForward commented on PR #75:
URL: https://github.com/apache/pulsar-test-infra/pull/75#issuecomment-1272205748

   > To be honest, I don't think that it's a great idea to use Golang for 
GitHub Actions.
   > 
   > Javascript/Typescript would be a much better choice since there's a lot 
less overhead of running the actions and another benefit is that there's 
official GitHub provided Javascript libraries for writing actions.
   > 
   > A Golang action will have to be compiled before the code can run. With 
Javascript/Typescript actions there's no such requirement since it can execute 
immediately.
   > 
   > Who can explain the reason for using Golang for these actions?
   
   @lhotari Thanks for your review. 
   As far as I know, [Github Actions supported language include C, C++, C#, Go, 
Java, JavaScript, PHP, Python, Ruby, Scala, and 
TypeScript](https://docs.github.com/en/get-started/learning-about-github/github-language-support).
 And I want to describe the reason why I choose Go to implement this feature:
   
   - I'm a Go language developer, and the technical solution is open for an 
open-source project.
   - There are many Github Actions using Go to implement the feature they want.
   - Before I start to coding, we discussed that we can implement it in 
`docbot` to reduce code repositories @maxsxu @Anonymitaet , we can use 
subcommand like `./docbot title check` in workflow, we introduced `Cobra` 
because `Cobra` is a library for creating powerful modern CLI applications and 
used in many Go projects such as [Kubernetes](https://kubernetes.io/), 
[Hugo](https://gohugo.io/), and [GitHub CLI](https://github.com/cli/cli) to 
name a few.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to