Skip to content
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

🐛 Bug: /approve command triggers workflows outside the "Model Request" issue template #962

Open
miquelduranfrigola opened this issue Feb 9, 2024 · 16 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@miquelduranfrigola
Copy link
Member

miquelduranfrigola commented Feb 9, 2024

Describe the bug.

The /approve command triggers workflows to create a model repository when an Ersilia Maintainer approves a model request issue. This workflow runs every time a user (possibly only Ersilia maintainers) comment on any issue within this repository, whereas this workflow should be triggered only when the related issue is a "Model Request" issue.

This is a good first issue and provides a starting point for learning more about GitHub actions. The workflow being referenced is implemented here.

This can potentially be fixed by making the job within this workflow execute conditionally based on the issue label. You can find an example here.

Describe the steps to reproduce the behavior

You can see the number of times this action has run where it was not relevant here.

To reproduce this issue yourself, please open an issue, and tag one of the maintainers to comment on it. Once a maintainer comments on it, the workflow will be triggered.

Expected behavior.

One possibility would be to modify the first triggered action to check for a new-model, as suggested by @GrantBirki .

To make sure the implemented fix works, please tag a maintainer to post a comment on an issue and verify if the workflow no longer gets triggered.

Screenshots.

No response

Operating environment

Ubuntu 20.04 LTS

Additional context

No response

@miquelduranfrigola miquelduranfrigola added bug Something isn't working help wanted Extra attention is needed labels Feb 9, 2024
@DhanshreeA DhanshreeA self-assigned this Feb 19, 2024
@DhanshreeA DhanshreeA added the medium Useful issue or future roadmap, and needs attention label Feb 19, 2024
@GemmaTuron
Copy link
Member

Is this a persisting issue? seems quite straightforward to fix. Perhaps a good first issue?

@DhanshreeA DhanshreeA added good first issue Good for newcomers and removed help wanted Extra attention is needed medium Useful issue or future roadmap, and needs attention labels Sep 22, 2024
@DhanshreeA
Copy link
Member

I agree - straightforward. We simply need to add a label filter in this workflow, like we have it in ersilia-self-service.

@Ajoke23
Copy link
Contributor

Ajoke23 commented Oct 3, 2024

Hi @DhanshreeA. Could you please assign me this task?

@DhanshreeA
Copy link
Member

@Ajoke23 we need to close your current PRs first before assigning more issues to you. :)

@Ajoke23
Copy link
Contributor

Ajoke23 commented Oct 3, 2024

@Ajoke23 we need to close your current PRs first before assigning more issues to you. :)

No problem @DhanshreeA. Please have a look at pull request #1284.

@aderemi1224
Copy link

@DhanshreeA I am done with my first task, can you please assign this to me?

@DhanshreeA
Copy link
Member

@aderemi1224 go ahead!

@aderemi1224
Copy link

Thank you @DhanshreeA

@Ajoke23
Copy link
Contributor

Ajoke23 commented Oct 5, 2024

Hi @aderemi1224. Any progress with this issue?

Do you need help?

@aderemi1224
Copy link

Yes please @Ajoke23

@Ajoke23
Copy link
Contributor

Ajoke23 commented Oct 5, 2024

Can you share what you have done so far so that I can know how to be of assistance to you?

Or better open a pull request with your progress. With that it's easier to track

Yes please @Ajoke23

@dzumii
Copy link
Contributor

dzumii commented Oct 6, 2024

Hi @aderemi1224 can you share your progress with us on this issue?

@aderemi1224
Copy link

@dzumii i got stuck but know my around to solve the problem now.

@Ajoke23
Copy link
Contributor

Ajoke23 commented Oct 7, 2024

@aderemi1224
Copy link

@DhanshreeA i have made the changes requested

@aderemi1224
Copy link

@DhanshreeA i have made the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: In Progress
Development

No branches or pull requests

6 participants