danger / kotlin

⚠️ Stop saying "you forgot to …" in code review
MIT License
505 stars 50 forks source link

How to use the `gem install danger-auto_label` #204

Closed trietbui85 closed 1 year ago

trietbui85 commented 2 years ago

I know it's possible if use the original Danger (Ruby) version, then call gem install danger-auto_label to install auto_label plugin.

But, if use the Danger-Kotlin docker image (ghcr.io/danger/danger-kotlin:1.0.0), how to install such plugin? Or I must use the Danger Ruby instead?

trietbui85 commented 2 years ago

Hi @f-meloni Can you help? 🙇

f-meloni commented 2 years ago

Hi @anticafe, Danger-Kotlin is not compatible with Danger Ruby and its plugins, so I don't think it will work, however Danger has the possibility to execute command line commands, so if you want to add a label to something on GitHub you can probably use Danger Kotlin to execute the GitHub CLI.

trietbui85 commented 2 years ago

Thanks @f-meloni . Do you have any link or keyword so that I can learn how to execute Github CLI via Danger Kotlin?

f-meloni commented 2 years ago

Hey! Sorry for the delay, I've missed this, you can use https://github.com/danger/kotlin/blob/master/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/danger/Utils.kt#L24 to exec any shell command

gianluz commented 1 year ago

Closing as seems solved! 😄