将Github的bug追踪器嵌入网站中,供用户直接从网站上报告 [英] Embedding Github's bug tracker within a website for the users to report directly from within the website

查看:128
本文介绍了将Github的bug追踪器嵌入网站中,供用户直接从网站上报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

短问题

我可以让我的用户使用表单在我的网站中报告问题,并在Github问题列表中注册这些问题吗?



同样可以进行增强。



我需要展示我迄今为止所尝试的内容,但除了Google搜索之外,我还没有尝试其他任何东西。

解决方案

是的,您可以。这是与GitHub API v3正式记录。请参阅此处。一个例子如下:

首先,POST请求:

  POST / repos /:owner /:repo / issues 

现在查询:

  {
title:BUG_NAME,
body:BUG_DESCRIPTION,
里程碑:1,
labels:[
Label1,
Label2
]
}


Short question

Can i let my users report issues from within my website using a form and have those issues registered in the Github issue list?

Same could go for enhancements.

I need to show what i've tried so far but apart from Googling i haven't tried anything else.

解决方案

Yes, you can. This is officially documented with the GitHub API v3. Reference is here. An example is as follows:

First, the POST request:

POST /repos/:owner/:repo/issues

Now the query:

{
"title": "BUG_NAME",
"body": "BUG_DESCRIPTION",
"milestone": 1,
"labels": [
"Label1",
"Label2"
]
}

这篇关于将Github的bug追踪器嵌入网站中,供用户直接从网站上报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆