-
-
Notifications
You must be signed in to change notification settings - Fork 145
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 approve-trigger.yml #1300
base: master
Are you sure you want to change the base?
Conversation
@DhanshreeA Please kindly review |
@aderemi1224 Have you tested your changes? If yes, can you share details with us regarding your test before and after the changes were made? |
I have removed the steps that log messages related to the approval process and label checking. The workflow now triggers the approval command when the 'Model Request' label is detected, streamlining the process by eliminating log outputs.
reactions: false | ||
commands: | | ||
approve | ||
- name: Approve Command Trigger |
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.
We should keep the single tab indentation
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.
@aderemi1224 can you please restore the indentation?
jobs: | ||
approve-command-trigger: | ||
if: contains(github.event.issue.labels.*.name, 'Model Request') |
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.
The label is actually called new-model
, and not Model Request
.
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.
Refer here, for example: https://github.com/ersilia-os/ersilia/issues?q=is%3Aopen+is%3Aissue+label%3Anew-model
Indentation has been restored
@DhanshreeA I have made changes |
Thank you for taking your time to contribute to Ersilia, just a few checks before we proceed
Description
This project addresses the current implementation of the /approve command in the Ersilia repository, which unintentionally triggers workflows to create a model repository for any comment made on any issue. The objective is to refine this functionality so that the workflow is executed only for "new-model" issues. Originally, the workflow would activate for any comment on any issue, without checking if the issue was related to creating a new model. This led to unwanted triggers.
Changes to be made
if: contains(github.event.issue.labels.*.name, 'new-model')
This ensures that the workflow does not activate for every comment but is instead filtered to respond only when a specific label is applied to the issue.
Status
Is this pull request related to any open issue? If yes, replace issueID below with the issue ID
Related to #962