openwhisk-github
v1.0.1
Published
OpenWhisk Github Package
Downloads
3
Readme
Github OpenWhisk actions generated by Swagger OpenWhisk CodeGen
Generate actions
Type these commands in a terminal:
$ npm install
$ node main.js
The actions
directory should now be populated with github
action wrappers.
Manual deployment
To deploy an action, go the the actions
directory and type this command:
$ wsk action create </namespaceName[/packageName]/entityName> <action.js>
For instance:
$ wsk action create getIssues getIssues.js
Deployment using wskdeploy
(Experimental)
To deploy all actions, it is best to run wskdeploy
in the project root directory.
$ wskdeploy --allow-defaults=true
Authentication
Several github
APIs require authentication.
For OAuth2 authentication, the recommended way is to use the OpenWhisk OAuth package to obtain a OAuth token. Alternatively for testing purpose, use a Personal access token.
API Documentation
Available on the IBM API Harmony