You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2024-08-21-adding-comments-to-pr.markdown
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ file **pr-number.txt** to know to which PR that comment should be added in the s
91
91
92
92
### Any comment?
93
93
94
-
Now that we have a workflow to generate the code coverage of the PR and generate a comment that we would like to add to the PR,
94
+
Now that we have a workflow to calculate the code coverage of the PR and generate a comment that we would like to add to it,
95
95
we just need a [workflow](https://github.com/eclipse-uprotocol/up-java/blob/main/.github/workflows/coverage-comment-pr.yml) that gets triggered
96
96
when the first workflow is completed:
97
97
@@ -154,6 +154,8 @@ jobs:
154
154
{% endraw %}
155
155
{% endhighlight %}
156
156
157
+
The workflow will download the artifact attached to the workflow run that triggered it and add a comment to the associated PR with the attached content.
158
+
157
159
> **_NOTE_**: There are pre-made [3rd party actions](https://github.com/marketplace?query=download+artifact+from+workflow+run) to
158
160
download artifacts from previous workflow runs that could be used to further simplify such a workflow.
0 commit comments