-
Notifications
You must be signed in to change notification settings - Fork 157
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
Add :Octo pr runs
command
#911
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
One thing however;
You are passing branch to the filter for displaying workflows related to a pr. This will return all workflows run on this branch. Including the ones that have been run with triggers like
workflow_dispatch:
Is that intentional?
EDIT:
It makes sense IMO just sanity checking.
Yes definitely, very confusing when you list wf runs for a PR and they are all named the same EDIT: I would use the json field name to get the |
I was playing around with it and came to same conclusion in 9aec991 |
Yeah, I think that is probably fine |
I think it might make sense to have name even for the larger |
What we could do as an overall improvement is this. This would allow you to easily see the branch name it was executed on without scrolling local display
if opts.branch == nil then
display = string.format("%s (%s), value.name, value.headBranch)
else
display = value.name
end |
Awesome! LGTM🚀 |
I've added that in in 483e424 . I tend to search by the "name" on the workflow Let me know how this looks to you |
Thanks for the feedback @GustavEikaas ! |
Remember to update readme |
Describe what this PR does / why we need it
Expose the
branch
in thelist
function which is used in new command:Octo pr runs
to get the runs associated with the PR.In this case, the value in the picker are all the same. Would it make sense to show the workflow name instead of the branch name? That is what comes from
gh run list --branch pr-runs --json workflowName
For instance, this run would be labeled "Sync Closing Labels"
CC: @GustavEikaas
Does this pull request fix one issue?
Closes #910
Describe how you did it
Describe how to verify it
Special notes for reviews
Checklist