May I get back the nice status mails? #10

Closed
opened 2025-02-18 18:11:07 +01:00 by smainz · 3 comments
Contributor

We used to have nicly formatted subject and texts in the mails taking the build status into account.
Now that Woodpecker CI dropped the env var one can not distinguish between "good" or "bad" builds.

In https://github.com/GowerStreet/woodpecker-slack/pull/3 there is an interesting approch to get it back. They added a setting status.
If status was set to failure you get the failure message, for success, you get the success message.

This requires to have two mail notification steps, one with

  - name: Send E-Mail
    image: deblan/woodpecker-email:3.0.1
    settings:
      ...
      status: 'failure' 
    when:
      status:
        - failure

and one with

  - name: Send E-Mail
    image: deblan/woodpecker-email:3.0.1
    settings:
       ...
        status: `success`
    when:
      status:
        - failure

Would this something to consider in this plugin?

Thank you

We used to have nicly formatted subject and texts in the mails taking the build status into account. Now that Woodpecker CI dropped the env var one can not distinguish between "good" or "bad" builds. In https://github.com/GowerStreet/woodpecker-slack/pull/3 there is an interesting approch to get it back. They added a setting `status`. If status was set to `failure` you get the failure message, for `success`, you get the success message. This requires to have two mail notification steps, one with ``` - name: Send E-Mail image: deblan/woodpecker-email:3.0.1 settings: ... status: 'failure' when: status: - failure ``` and one with ``` - name: Send E-Mail image: deblan/woodpecker-email:3.0.1 settings: ... status: `success` when: status: - failure ``` Would this something to consider in this plugin? Thank you
Owner

Nice idea!

Nice idea!
Owner

The new option level is available. See the documentation for more information: https://gitnet.fr/deblan/woodpecker-email/src/branch/master/DOCS.md

The new option `level` is available. See the documentation for more information: https://gitnet.fr/deblan/woodpecker-email/src/branch/master/DOCS.md
Author
Contributor

Thank you.

Thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deblan/woodpecker-email#10
No description provided.