github-api

XProc steps that implement the GitHub API

Repository
Git URL https://github.com/transpect/github-api.git
SVN URL https://github.com/transpect/github-api
Base URI http://transpect.io/github-api/

Source ⬇

tr:list-repos

This step provides all repositories either for a certain username or organization on GitHub.

Import

<p:import href="http://transpect.io/github-api/xpl/list-repos.xpl"/>

Synopsis

<tr:list-repos xmlns:tr="http://transpect.io">
  <p:output port="result"/>
  <p:option name="token" required="true"/>
  <p:option name="username" select="'transpect'"/>
  <p:option name="group" select="'orgs'"/>
</tr:list-repos>

tr:repo-directory-list

This step takes a GitHub content URL and provides a recursive listing of files and directories in transparent JSON notation.

Import

<p:import href="http://transpect.io/github-api/xpl/repo-directory-list.xpl"/>

Synopsis

<tr:repo-directory-list xmlns:tr="http://transpect.io">
  <p:output port="result"/>
  <p:option name="token" required="true"/>
  <p:option name="contents-url" required="true"/>
  <p:option name="path" select="''"/>
  <p:option name="depth" select="0"/>
</tr:repo-directory-list>

GitHub sync date: 2024-04-23+02:00