Actions - Warning Annotations #10523

Open
opened 2025-11-02 09:10:12 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ghnp5 on GitHub (Mar 26, 2023).

This might be related to #23721, which implements a Job Summary section.

In the same section (or an adjacent section), we'd have a place for Annotations.

So, if we run this on GitHub Actions:

echo "::warning file=app.py,line=10,col=5::Code formatting issues detected"

The annotation will appear like this:

image

And it links to the Commit that triggered the action/workflow, scrolled to that file and line directly.

Originally created by @ghnp5 on GitHub (Mar 26, 2023). This might be related to #23721, which implements a Job Summary section. In the same section (or an adjacent section), we'd have a place for Annotations. So, if we run this on GitHub Actions: `echo "::warning file=app.py,line=10,col=5::Code formatting issues detected"` The annotation will appear like this: <img width="222" alt="image" src="https://user-images.githubusercontent.com/57591332/227798476-7135a5c3-a464-40d4-ba6f-57a331fc258c.png"> And it links to the Commit that triggered the action/workflow, scrolled to that file and line directly.
Author
Owner

@bilderbuchi commented on GitHub (Sep 13, 2023):

Probably related: Problem matchers (that create such annotations). The docs say that they are currently ignored (e0aacc7624/docs/content/usage/actions/comparison.en-us.md (L100)), but I could not find an issue tracking their addition/implementation.

@bilderbuchi commented on GitHub (Sep 13, 2023): Probably related: Problem matchers (that create such annotations). The docs say that they are currently ignored (https://github.com/go-gitea/gitea/blob/e0aacc7624238caaf959c512362ec2b69565c444/docs/content/usage/actions/comparison.en-us.md?plain=1#L100), but I could not find an issue tracking their addition/implementation.
Author
Owner

@imgurbot12 commented on GitHub (Aug 6, 2024):

Until this gets implemented I wrote a workaround which uses a service-account to post a review via the gitea api if anyone else would like to use it :)
https://github.com/imgurbot12/prbot

@imgurbot12 commented on GitHub (Aug 6, 2024): Until this gets implemented I wrote a workaround which uses a service-account to post a review via the gitea api if anyone else would like to use it :) https://github.com/imgurbot12/prbot
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10523