Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Allow escape codes for color formatting messages #15

Open
kallisti5 opened this issue Dec 4, 2019 · 1 comment
Open

Allow escape codes for color formatting messages #15

kallisti5 opened this issue Dec 4, 2019 · 1 comment

Comments

@kallisti5
Copy link

You can't directly put escape codes into the pipeline yaml, (you get "error: yaml: control characters are not allowed")

but irc-notification-resource could translate escaped colors for you using a common method.
https://github.com/myano/jenni/wiki/IRC-String-Formatting

Example:

# Jobs
jobs:
  - name: haiku-((branch))-((arch))
    public: true
    on_success:
      put: irc
      params:
        message: \x0303((branch)) build of ((arch)) was successful!\x0F ${BUILD_URL}
    on_failure:
      put: irc
      params:
        message: \x0304((branch)) build of ((arch)) failed!\x0F ${BUILD_URL}
    plan:

It looks like it wouldn't be super hard to "search for \xYY in a message and change it to 0xYY in the string.

@kallisti5
Copy link
Author

irc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant