Endpoint to return number edits svg badge

Đang mở
#77 3 bình luận 1 reaction 1 người được giao Xem trên GitHub

@SimonLab đang làm issue này rồi.

Từ ngày 12/3/2018.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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>
Ngôn ngữ chính
Elixir
Star
33
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dwyl/github-backup

Tất cả issue của dwyl/github-backup

Issue tương tự

Thêm issue về Elixir

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.