nsmcp::CodeUpstreamTool method commit (protected)

 <instance of nsmcp::CodeUpstreamTool[i]> commit repo ref

Defined in /usr/local/ns/tcl/nsmcp/code-upstream.tcl

Parameters:
repo (required)
ref (required)

Testcases:
No testcase defined.
Source code:
set ref [ns_urlencode $ref]
set sha [string trim [:get /repos/$repo/commits/$ref application/vnd.github.sha]]
if {![regexp {^[a-f0-9]{40}$} $sha]} {error "invalid-github-commit"}
return $sha
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: