-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat(apps/prod/tekton/configs): add task and triggers for auto sync OWNERS for hotfix branches #737
feat(apps/prod/tekton/configs): add task and triggers for auto sync OWNERS for hotfix branches #737
Conversation
…indings - tag creating event - branch creating event - branch pushing event Signed-off-by: wuhuizuo <[email protected]>
One potential problem with this pull request is that it does not provide enough context about how the OWNERS file will be synced. It would be helpful to have more information on how this task and trigger will work to ensure that it is properly implemented. Another potential problem is that the modified To fix these issues, the pull request author should provide more information about how the OWNERS file will be synced. The author should also modify the |
/review default |
The changes include modifications to the Regarding potential problems, it is not clear how the Deno script works or how it creates pull requests. There could be issues with the implementation of the script that would cause an error. Additionally, there could be problems with the Tekton triggers and tasks that are added, particularly if they interfere with existing triggers and tasks. As for fixing suggestions, more information on the Deno script would be helpful, along with clear documentation on how to run and test it. It would also be useful to add comments to the Tekton trigger and task code to clarify their purpose and how they work. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
apps/prod/tekton/configs/triggers/bindings/github-branch-create.yaml
Outdated
Show resolved
Hide resolved
One potential problem with this pull request is that the Deno script could create a pull request for a branch that isn't a hotfix branch, leading to unnecessary pull requests. To avoid this, a check could be added to ensure that only hotfix branches trigger the creation of pull requests. Another potential issue is that the pull request description doesn't include any information about how to configure and use this new functionality. Adding documentation on how to set up and use the new feature would be helpful for users. Overall, this pull request looks good, and the changes will likely be useful. Adding a check to ensure only hotfix branches trigger the creation of pull requests and including documentation on how to use the feature would be helpful. |
…WNERS for hotfix branches Automatically create pull requests when hot fix branch is created. Signed-off-by: wuhuizuo <[email protected]>
Review of Pull Request titled "feat(apps/prod/tekton/configs): add task and triggers for auto sync OWNERS for hotfix branches"SummaryThe pull request adds functionality to create pull requests automatically when a hotfix branch is created. It sets up Tekton triggers and tasks to monitor branch creation events and calls a Deno script to create the pull request. The pull request also updates the Kustomization YAML file and modifies the bindings and templates for Tekton triggers. Potential Problems
Fix Suggestions
Overall, the pull request looks good, but the potential security concerns and lack of documentation should be addressed before merging it into the main branch. |
apps/prod/tekton/configs/triggers/templates/branch-create-product-components-hotfix.yaml
Outdated
Show resolved
Hide resolved
…uct-components-hotfix.yaml
This pull request aims to create pull requests automatically when hotfix branches are created. The changes include setting up Tekton triggers and tasks to watch repositories on branch creation events, and calling a Deno script to create a pull request to the target branch when a matched branch is created. Potential Problems:
Fixing Suggestions:
|
apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml
Show resolved
Hide resolved
apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml
Show resolved
Hide resolved
…ct-components-hotfix.yaml
To address these issues, I suggest the following changes:
|
apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml
Outdated
Show resolved
Hide resolved
…ct-components-hotfix.yaml
This pull request adds functionality to automatically create pull requests when a hotfix branch is created. The changes include the addition of a new task to create pull requests, a new trigger template to create hotfix branches and a change to the github-branch-push.yaml file to include the correct git-ref parameter. Potential Problems:
Fixing Suggestions:
|
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.
/lgtm
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: purelind The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…WNERS for hotfix branches (#737) * fix(apps/prod/tekton/configs/triggers/bindings): fix branch and tag bindings - tag creating event - branch creating event - branch pushing event Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/bindings/github-branch-create.yaml * feat(apps/prod/tekton/configs): add task and triggers for auto sync OWNERS for hotfix branches Automatically create pull requests when hot fix branch is created. Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/templates/branch-create-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml --------- Signed-off-by: wuhuizuo <[email protected]>
…WNERS for hotfix branches (#737) * fix(apps/prod/tekton/configs/triggers/bindings): fix branch and tag bindings - tag creating event - branch creating event - branch pushing event Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/bindings/github-branch-create.yaml * feat(apps/prod/tekton/configs): add task and triggers for auto sync OWNERS for hotfix branches Automatically create pull requests when hot fix branch is created. Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/templates/branch-create-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml --------- Signed-off-by: wuhuizuo <[email protected]>
…WNERS for hotfix branches (#737) * fix(apps/prod/tekton/configs/triggers/bindings): fix branch and tag bindings - tag creating event - branch creating event - branch pushing event Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/bindings/github-branch-create.yaml * feat(apps/prod/tekton/configs): add task and triggers for auto sync OWNERS for hotfix branches Automatically create pull requests when hot fix branch is created. Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/templates/branch-create-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml --------- Signed-off-by: wuhuizuo <[email protected]>
…WNERS for hotfix branches (#737) * fix(apps/prod/tekton/configs/triggers/bindings): fix branch and tag bindings - tag creating event - branch creating event - branch pushing event Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/bindings/github-branch-create.yaml * feat(apps/prod/tekton/configs): add task and triggers for auto sync OWNERS for hotfix branches Automatically create pull requests when hot fix branch is created. Signed-off-by: wuhuizuo <[email protected]> * Update apps/prod/tekton/configs/triggers/templates/branch-create-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml * Update apps/prod/tekton/configs/triggers/triggers/create-branch-product-components-hotfix.yaml --------- Signed-off-by: wuhuizuo <[email protected]>
Automatically create pull requests when hot fix branch is created: