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

Comment from collaborators should trigger "Waiting for Community" #739

Open
aldy505 opened this issue Jan 8, 2024 · 0 comments
Open

Comment from collaborators should trigger "Waiting for Community" #739

aldy505 opened this issue Jan 8, 2024 · 0 comments

Comments

@aldy505
Copy link

aldy505 commented Jan 8, 2024

As the title says, I have to re-add the "Waiting For Community" labels everytime on self-hosted after I responded to an issue. That shouldn't be necessary if we're adding another logic here.

if (
(await isNotFromAnExternalOrGTMUser(payload)) ||
isCommentFromCollaborator(payload)
) {
const isWaitingForProductOwnerLabelOnIssue = isLabelOnIssue(
WAITING_FOR_PRODUCT_OWNER_LABEL
);
if (isWaitingForProductOwnerLabelOnIssue) {
await org.api.issues.removeLabel({
owner: org.slug,
repo: repo,
issue_number: issueNumber,
name: WAITING_FOR_PRODUCT_OWNER_LABEL,
});
const itemId: string = await org.addIssueToGlobalIssuesProject(
payload.issue.node_id,
repo,
issueNumber
);
await org.clearProjectIssueField(itemId, org.project.fieldIds.status);

I don't know whether it's just best for self-hosted repo, or do any other repos might benefit from having this one.

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

No branches or pull requests

1 participant