Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

411 B
Raw Blame
import { workService } from '@/services/work';

export const linkManualPullRequest = async (topicId: string, url: string): Promise<string> => {
  const { identifier, linked } = await workService.linkTopicPullRequest({
    source: 'manual',
    topicId,
    url,
  });
  if (!linked) throw new Error(`Could not link ${identifier}`);
  await workService.refreshTopicPullRequests(topicId);
  return identifier;
};