1.0.1 • Published 7 years ago

openwhisk-github v1.0.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

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