Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

使用 Jekyll 风格的 YAML 文件头,用于指定同步的目标 #1

Open
cssmagic opened this issue May 11, 2015 · 0 comments
Open
Labels

Comments

@cssmagic
Copy link
Owner

Jekyll 风格的 YAML 文件头

Jekyll 的相关文档: http://jekyllcn.com/docs/frontmatter/

---
layout: post
title: Blogging Like a Hacker

---

Writer 支持的配置项

  • title -- 字符串。同步到 GitHub issue 时使用的标题。若此项未指定则在正文提取第一个 h1 元素的内容;若未找到,则顺延至第一个 h2 元素;以此类推。
  • repo -- 字符串。格式为 username/repo。当此项未指定时,Writer 会提示输入并写回(或提示错误并退出——这取决于实现到了什么程度)。
  • issue -- 数字。格式为 123。当此项未指定时,Writer 会发布一个新 issue,并将 issue 号写回此配置项。
  • tags -- 字符串或列表。格式为 GitGit jQuery[Git, jQuery]。为同步出去的 issue 打标签(在 GitHub issue 体系中,标签被称为 “Label”)。具体行为待定。
  • author -- 字符串,GitHub 用户名。告诉 Writer 以哪个用户的身份发布(或同步)issue。当此项未指定时,会取 repo 配置项中的 username 部分;如果取到的用户名不在 Writer 预定义的用户名单中,则提示错误并退出。
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant