Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge
What part(s) of the article would you like to see updated?
The example at
|
## Using the `event` parameter |
|
|
|
This Markdown example adds a badge that displays the status of workflow runs triggered by the `pull_request` event. |
|
|
|
```markdown |
|
 |
|
``` |
is incorrect.
Using a URL such as https://github.com/github/docs/actions/workflows/main.yml/badge.svg?event=pull_request shows no status, as with this repo:

Changing it to a URL such as https://github.com/danielfdickinson/hugo-action-check-links/actions/workflows/test-check-links.yml/badge.svg?on=pull_request shows the status of the event (in this case pull_request)

Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge
What part(s) of the article would you like to see updated?
The example at
docs/content/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge.md
Lines 41 to 47 in 27d1c26
Using a URL such as https://github.com/github/docs/actions/workflows/main.yml/badge.svg?event=pull_request shows no status, as with this repo:
Changing it to a URL such as https://github.com/danielfdickinson/hugo-action-check-links/actions/workflows/test-check-links.yml/badge.svg?on=pull_request shows the status of the event (in this case
pull_request)Additional information
No response