-
Notifications
You must be signed in to change notification settings - Fork 3
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
automate adding Container labels #93
Comments
Hi @kranurag7, thank you for this idea and implementation! You are right, the issues in those repos must be labeled with In fact, this should be done for every issue:
and this for every PR:
As you are already on it, could you have a look how to realize the other cases as well? |
Thank you for clearing the scope. Please check the commit here 727144a I was not able to find a way to automate this. I tried getting linked request using I attempted to get it by directly invoking the API using the following command. $ gh api /repos/SovereignCloudStack/cluster-stack-operator/pulls/94 --jq '._links.issue'
{
"href": "https://api.github.com/repos/SovereignCloudStack/cluster-stack-operator/issues/94"
} But this is not correct URL. I was not able to complete the last part where we filter the PR using For the moment, the latest commit fixes the first three sections. For adding issues to project board, we will need to add a token in settings/actions |
No worries, it's not urgent. We never used the automation before so it's still a pretty good enhancement, thank you! The ADD_TO_PROJECT_PAT should now be available |
Thanks for adding the token and the fix in the project URL. After review this will get merged and after tracking it for a day or two, I'll propagate the same in cspo and csctl repo. |
From what I understand, I think we need
Container
label on this repo, CSPO and csctl.pull request
I think we can automate it for pull requests using actions/labeler and for renovate PRs, we can use renovate itself.
issues
For issues, I think we can use the following:
https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues#creating-the-workflow
This runs on every issue open and reopen which might be too much to we will never notice it, Given it runs in ground. If it sounds too much then we can use a cron workflow for the same.
/kind feature
// cc @janiskemper @jschoone
The text was updated successfully, but these errors were encountered: