Skip to content

为什么会自动将id拼接到labels中? #268

@dongyuanxin

Description

@dongyuanxin

问题描述

配置中的id会被自动添加到labels中。一共几百篇文章都有各自独立的id标识,这样创建出来的标签数非常多。

例如下面这种配置:

{
  clientID: '...',
  clientSecret: '...',
  repo: 'blog',
  owner: 'dongyuanxin',
  admin: ['dongyuanxin'],
  id: frontmatter.commentid, // 每篇文章的标识
  distractionFreeMode: false
}

问题定位

src/gitalk.jsx 中的createIssue函数中,对labels自动做了拼接。如下图所示:

image

想法建议

是否可以提供配置项,让用户自己决定是否拼接?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions