Open Rinma opened 3 years ago
Found the problem. Message needs to look like this:
message: >
{{#success build.status}}
build {{build.number}} succeeded.
{{else}}
build {{build.number}} failed.
Changes: {{commit.branch}} / {{commit.message}} from {{commit.author}}.
See: {{build.link}}
{{/success}}
https://github.com/appleboy/drone-discord/blob/master/DOCS.md needs an updated.
I just encountered this. It looks like changes have been made to the template variables (build > commit) however the drone plugin documentation template reference and examples at http://plugins.drone.io/appleboy/drone-discord/ need updating to match.
repo.owner
also doesn't work (at least if repo is owned by a gitea group)
And build.started
is weirdly buggy when combined with the since
function (sometimes it shows the duration of the Discord step, other times it shows the duration of the entire build)
And not sure if this is Drone's fault or not, but commit.message
outputs certain characters as character entities (for example '
) which Discord does not render properly.
Hi.
I have the following problem with build variables not showing in the message.
Config:
Message on discord:
The job on drone: