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

Allow escape codes for color formatting messages #15

@kallisti5

Description

@kallisti5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions