Hello, I’m using Gitea as my version control system and Drone as CI for .Net Core projects. Is there an equivalent plugin like the Github Comment for interacting with Gitea or another way to create a comment to the original PR?
I am not aware of an existing plugin for this purpose, however, anyone can create their own custom plugin for Drone. Plugins are just Docker images that execute a simple script or program as the image entrypoint.
@bradrydzewski Ok I created this plugin that interacts with gitea pr Gitea Comment but I can’t figure out how to cat a file inside settings
The default alpine image behavior would be to run the cat command before the curl command. This is the github repo for the plugin TsakiDev/gitea-comment
The yaml is unmarshaled into a Go structure and the comment attribute is unmarshaled into a string literal. It is not a bash string and is not passed through a bash interpreter, which means it will not execute a bash command and interpolate the results.
If you want to read from a file, you should build that logic into the plugin directly:
Neat! How can we inside a pipeline access the Gitea API token that Drone is using e.g. for creating commit statuses? Thereby using it inside the curl command?
I’m using the OSS version before considering upgrading and therefore cannot create a separate API token and store it as a Drone secret. Secrets do not appear to be supported on OSS.