Skip to content

fix: fix "open" tag not being set when a member-set tag exists #17

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

Merged
merged 1 commit into from
Apr 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/commands/util/walkthrough.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ export async function doWalkthrough(
const threadChannel = channel as PublicThreadChannel; // necessary type cast, isHelpThread does the check already

// Check for tags in the forum post
if (!threadChannel.appliedTags || threadChannel.appliedTags.length === 0) {
threadChannel.setAppliedTags([config.helpChannel.openedTag]);
const appliedTags = threadChannel.appliedTags ?? [];
if (!appliedTags.includes(config.helpChannel.openedTag)) {
appliedTags.push(config.helpChannel.openedTag);
threadChannel.setAppliedTags(appliedTags);
}

// Generate the message with the action row
Expand Down