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

Fix author response responder #103

Open
wants to merge 2 commits into
base: ropensci
Choose a base branch
from
Open

Fix author response responder #103

wants to merge 2 commits into from

Conversation

maelle
Copy link
Collaborator

@maelle maelle commented Jan 23, 2024

No description provided.

@maelle maelle requested a review from mpadge January 23, 2024 08:20
@@ -19,6 +19,8 @@ buffy:
authorized_roles_in_issue:
- author1
- author-others
remove_labels:
- 4/review(s)-in-awaiting-changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't go here, i don't thinik? Because this responder is triggered each time a review is submitted, including the first time. In those cases, the label needs to remain at 3/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, this is for the author submit response responder

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But my comment still applies. Plus note line 16:

label_when_all_reviews_in: "4/review(s)-in-awaiting-changes"

So that badge is added by this responder, but only once all reviews are in. This responder should not remove it.

@@ -80,6 +82,7 @@ buffy:
- reviewers-list
remove_labels:
- 5/awaiting-reviewer(s)-response
- 4/review(s)-in-awaiting-changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this looks to me like it should work:

add_labels = labels_to_add.empty? ? nil : "Label issue with: #{labels_to_add.join(', ')}"

Copy link
Collaborator

@mpadge mpadge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to remove the added lines 22-23?

@mpadge
Copy link
Collaborator

mpadge commented Jan 25, 2024

@maelle The bigger problem here seems to be that we have no automated transition from 4/ to 5/. We should address that issue!

@maelle
Copy link
Collaborator Author

maelle commented Jan 25, 2024

@mpadge I'm lost. The automatic transition is the author's submitting their response (well, it should be). https://devdevguide.netlify.app/bot_cheatsheet#finalize-repo-transfer Can you suggest changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants