如何通过Github API从它的原始更新fork(How to update a fork from it's original via the Github API)
我已经通过github API创建了一个github存储库的fork。 现在,稍后,我想将原始存储库中的任何更新提取到fork中。 在我的用例中,这应该总是一个快速发展。 我已经读取了对原始存储库的访问权限并对fork进行了读写操作。
我想可能会创建一个Pull Request然后接受(这两个都可以通过API来完成),但是这会产生噪音(Pull Requests被创建和销毁)并且看起来不正确。
有什么办法通过API来做到这一点?
I've created a fork of a github repository via the github API. Now, later on, I want to pull any updates from the origin repository into the fork. This should always be a fast-forward in my use case. I have read access to the origin repository and read-write to the fork.
I thought of maybe creating a Pull Request then accepting (both of which you can do via the API) but this creates noise (Pull Requests being created and destroyed) and just doesn't seem right.
Is there any way to do this via the API?
原文:https://stackoverflow.com/questions/26846667
最满意答案
是的,您可以通过号码或命名地点链接到特定页面, 如果用户的浏览器使用Adobe Reader作为查看PDF文件的插件 ,它将始终工作。
对于特定页面的编号:
<a href="http://www.domain.com/file.pdf#page=3">Link text</a>
对于指定的位置(目的地):
<a href="http://www.domain.com/file.pdf#nameddest=TOC">Link text</a>
使用Acrobat创建PDF内的目的地:
- 手动浏览PDF中的所需位置
- 转到查看>导航选项卡>目的地
- 在选项下,选择扫描文档
- 完成此操作后,从“选项”菜单中选择“新建目的地”,然后输入适当的名称
Yes, you can link to specific pages by number or named locations and that will always work if the user's browser uses Adobe Reader as plugin for viewing PDF files.
For a specific page by number:
<a href="http://www.domain.com/file.pdf#page=3">Link text</a>
For a named location (destination):
<a href="http://www.domain.com/file.pdf#nameddest=TOC">Link text</a>
To create destinations within a PDF with Acrobat:
- Manually navigate through the PDF for the desired location
- Go to View > Navigation Tabs > Destinations
- Under Options, choose Scan Document
- Once this is completed, select New Destination from the Options menu and enter an appropriate name
相关问答
更多-
TCP/IP模型是一个________。[2023-05-19]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
使用firefox扩展以编程方式将书签工具栏中的页面标记为(Programmatically bookmark pages in bookmark toolbar using firefox extension)[2022-07-06]
尝试将group设置为TOOLBAR ,如下所示: let { Bookmark, TOOLBAR, save } = require("sdk/places/bookmarks"); // Create a new bookmark instance, unsaved let bookmark = Bookmark({ title: "Test", url: "http://mozilla.org", group: TOOLBAR, }); // Attempt to save ... -
如果要保存PDF,请将dest参数设置为F:所以, $pdf->Output("D","flyer.pdf"); 一定是: $pdf->Output("F","flyer.pdf"); 并将您的写行重新格式化为: $pdf->Write(0, "$hText $cText"); 根据文档 ,目的地在哪里发送文件。 它可以是以下之一: I: send the file inline to the browser. The PDF viewer is used if available. D: sen ...
-
SWIFT 3. *和4. * * 首先,您必须将该pdf文件下载到您的应用程序中,下载后您必须获取该文件路径,然后该文件路径应该像WKWebView以下方式一样使用。 let fileURL = URL(fileURLWithPath: filePathURLData as! String) //print(fileURL) webView.loadFileURL(fileURL, allowingReadAccessTo: fileURL) 这里filePathURLData是您下载到应用程序中的实际 ...
-
弄清楚了。 添加asciidoctor-pdf属性... :toclevels: 3 Figured it out. Add the asciidoctor-pdf attribute... :toclevels: 3
-
基于书签链接重定向(Redirect based on bookmark link)[2021-09-08]
如果http://server/old-system/#itemID是http://server/old-system/#itemID中的一个页面,则可以在javascript中进行快速翻译。 window.location.href.replace('#','?link='); 或获取值并链接到另一个页面。 window.location = "http://server?itemID="+window.location.hash.replace('#',''); If http://server/o ... -
在站点之间进行通信时,我永远不会对实际文件名做出假设。 保持可能更改为最小的依赖项列表,以便将来不必修改多个代码库。 我的解决方案与您的建议类似,但您不需要使用jQuery。 如果您可以在wordpress站点上创建一个简单的PHP文件,那么只需从其他站点创建该文件的正常超链接。 对于超链接hrefs,请使用http://wordpresssite.com/directory-that-custom-php-file-is-in/php-file-name.php?prodnum=n ,其中将“n”替换为正 ...
-
您需要以不将现有文件转发到前端控制器的方式配置Web服务器。 silex文档的Web服务器部分提供了最流行的Web服务器的此类配置示例。 至于链接本身,只需直接链接到文件,这些内容如下: {{ filename }} You need to configure your web server in a way that it does not forward existing files to the front ...