Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

How to enrich / add text in a simple way an annotation ?

Solved! Go to Solution.

Hello,

 

I wanted to know if it's possible in a simple way to add more information when a task fails to the "Annotation" popin.

 

Right now, if a run fails, it simply displays the error like Process completed with exit code 1.but you lack of "quick context"

 

Example of task: 

 

    - name: Runs phpspec
      run: |
        php -v
        php bin/phpspec run -f pretty
      if: always()

 

What I want to display in the "Annotation" popin:

"Run phpspec" (= task name) task failed, did you follow the internal guide ?

 

Here an example in the screenshot of how "annotation popin" lack of context for "run" command out of the box.

 

Thanks

 

upgrade_php_by_tristanbes_·_Pull_Request__790_·_Yproximite_condictio_et_GitHub_Marketplace_·_Actions_to_improve_your_workflow.png

1 Reply
Highlighted
Solution
GitHub Partner
Message 2 of 2

Re: How to enrich / add text in a simple way an annotation ?

Sorry to tell you that currently you could not add more information when a task fails to the "Annotation" popin. But we are looking into ways to improve annotation experience!

In addition, github actions provide a way to set a warning or error message , these warning and error message could show on annotations. Please refer to: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-fo...