Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation for GitHub Workflow Status Badges #7102

Closed
calebcartwright opened this issue Oct 2, 2021 · 6 comments
Closed

Update documentation for GitHub Workflow Status Badges #7102

calebcartwright opened this issue Oct 2, 2021 · 6 comments
Labels
documentation Developer and end-user documentation

Comments

@calebcartwright
Copy link
Member

Our GitHub Workflow Status badges use an upstream GitHub API endpoint that requires we utilize the Workflow name. GitHub provides native badges for Workflow status which requires users specify the file name that contains the workflow definition.

For one reason or another, many of our users assume that Shields also wants the file name parameter, and are then confused when our badges show 404/not found type messages (e.g. #6593, #6255)

I anticipate this will continue to be a recurrent issue for some, but it'd likely help avoid some confusion if we extended the modal badge window documentation for these badges to stress this. We could consider changing the parameter name to something more explicit too (e.g. workflow --> workflowName).

The text that displays is configured via the documentation key on each example in the service class definition, some of the example listings for the Worklow Status badge class linked below for reference. We have a default documentation value for all our GitHub badges, so any updates/augmentation we make to the Workflow badge examples would need to be an extension that retained the standard GitHub help text and added additional info

static examples = [
{
title: 'GitHub Workflow Status',
pattern: ':user/:repo/:workflow',
namedParams: {
user: 'actions',
repo: 'toolkit',
workflow: 'toolkit-unit-tests',
},
staticPreview: renderBuildStatusBadge({
status: 'passing',
}),
documentation,
keywords,
},
{
title: 'GitHub Workflow Status (branch)',
pattern: ':user/:repo/:workflow/:branch',
namedParams: {
user: 'actions',
repo: 'toolkit',
workflow: 'toolkit-unit-tests',
branch: 'master',
},
staticPreview: renderBuildStatusBadge({
status: 'passing',
}),
documentation,
keywords,
},

@calebcartwright calebcartwright added documentation Developer and end-user documentation good first issue New contributors, join in! labels Oct 2, 2021
@chrysillala
Copy link

Hi @calebcartwright I would like to work on this issue, could you provide more details? Thanks!

@calebcartwright
Copy link
Member Author

hi @chrysillala, that'd be great!

could you provide more details?

I feel like the issue description is already very thorough, and provides both a direct link to the location in code where the change would be made as well as the additional information that needs to be added. I'm not really sure what else I could add to that without practically writing the code myself 😄

Do you have any specific questions or find anything unclear?

@ppizarror
Copy link

ppizarror commented Nov 4, 2021

Hi, I had the same problem. From the hints provided on the website, I thought the name was the same as the .yml file (same as #6593, #6255). Maybe a hint or further explanation might work.

@aditya1abhinav
Copy link

Hi @calebcartwright I would like to work on this issue.

@chris48s
Copy link
Member

This one will become irrelevant if we merge #8475
I think its best we ignore it for now as it will hopefully become a non-issue.

@chris48s chris48s removed the good first issue New contributors, join in! label Oct 31, 2022
@chris48s
Copy link
Member

This is now irrelevant due to #8671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Developer and end-user documentation
Projects
None yet
Development

No branches or pull requests

5 participants