0.1.44 • Published 3 years ago
@atomist/skill-entry-point v0.1.44
Installation
npm install @atomist/skill-entry-point
start(handler)
Start a CloudRun skill handler function
Examples:
const api = require("@atomist/skill-entry-point")
api.start(async payload => {
payload.logger.info(`skill id: ${payload.skill.id}`)
return {status: {code: 0, reason: "hey"}}
});
Params:
- Function handler async callback which will receive the skill payload
Return:
- Object js Object should have a
status
key to report back on the skill processing.
prStr(obj)
create an application/edn
string.
Examples:
var obj = {"a/b": BigInt("123456")}
prStr(obj)
Params:
- Object obj the js Object to serialize to
application/edn
.
Return:
- String
application/edn
string with BigInts serialized with tags
readString(s)
read a js Object from an application/edn
string.
Examples:
var s = prStr({"a/b": BigInt("123456")})
var obj = readString(s)
Params:
- String s the
application/edn
string.
Return:
- Object js Object
Building
- working dir must be clean
- the HEAD commit must not have a tag
- the last reachable tag from the HEAD commit must be a valid semver
- that semver should be the current latest release
Create a new release using the command below.
bb release
0.1.44
3 years ago
0.1.41
3 years ago
0.1.40
3 years ago
0.1.39
3 years ago
0.1.38
3 years ago
0.1.35
3 years ago
0.1.34
3 years ago
0.1.33
3 years ago
0.1.32
3 years ago
0.1.31
3 years ago
0.1.30
3 years ago
0.1.29
3 years ago
0.1.28
3 years ago
0.1.27
3 years ago
0.1.26
3 years ago
0.1.25
3 years ago
0.1.24
3 years ago
0.1.23
3 years ago
0.1.22
3 years ago
0.1.21
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago