Endpoint to return number edits svg badge

未关闭
#77 3 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

@SimonLab 已经在做这个了。

开始于 2018年3月12日。

评估

这个 Issue 还没有评估数据。

描述

enhancement please-test T2h

linked to #14 (Meta table)

Each time a new version (edit) of the issue description or a comment of the issue is saved, the meta table will display the new incremented number of edits. We can update directly the issue description of the new number via the Github API, however a nicer solution is to use a svg served by the "github-backup" server.
So in a similar way to https://github.com/dwyl/hits-elixir we need to:

  • create an endpoint ex: /edit-count/{issue_id} which will return an svg image
  • insert the svg image similar to [![HitCount](http://hits.dwyl.io/dwyl/hits-elixir.svg)](https://github.com/dwyl/hits-elixir) HitCount

format of the hit-elixir svg:

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="20">

<rect width="30" height="20" fill="#555"/>
<rect x="30" width="50" height="20" fill="#4c1"/>

<rect rx="3" width="80" height="20" fill="transparent"/>
	<g fill="#fff" text-anchor="middle"
    font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
	    <text x="15" y="14">hits</text>
	    <text x="54" y="14">696</text>
	</g>
</svg>
主要语言
Elixir
星标
33
派生
3
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dwyl/github-backup 的其他 Issue

查看 dwyl/github-backup 的全部 Issue

相似的 Issue

更多 Elixir Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。