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
Fix cluster pull request statuses #1064
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.
Works great!
It would be really neat show the URL there too. Maybe another column called STATUS_MESSAGE
for now? (sounds a little bit awkward). We could do this in a follow up PR too
pkg/clusters/clusters.go
Outdated
c.Status = "Deletion PR" | ||
} | ||
|
||
fmt.Fprintf(w, "%s\t%s", c.Name, c.Status) | ||
fmt.Fprintf(w, "%s\t%s\t%s", c.Name, c.Status, c.PullRequest.Url) |
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.
🙌 , maybe only if c.status is creation/deletion PR. e.g. I guess leave it blank for "clusterFound" etc.
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.
Sure! 👌 Thank you Simon 🙏
* Fix change PR status based on PR type * Fix lint * Return pr url * return pr url for creation and deletion only * Update tests * Fix tests
Closes: weaveworks/weave-gitops-enterprise#250
What changed?
Updated Cluster struct to get the correct PR type
Why?
To differentiate between different PR types whether it's creation or deletion
How did you test it?
Tested locally + unit tests
Release notes
Documentation Changes