Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A user-experience-focused middleware for building Gitlab applications. more examples.
Support frameworks: Express / Koa.
NO APIS
Friendly user experience design
Include .d.ts
, support for automatic completion in editor.
Semantic actions.
install robot: yarn add cobot
or npm i cobot
.
import to your nodejs server:
// express
import cobot, { BotEvents } from 'cobot'
app.use(cobot.express())
// koa2
app.use(cobot.koa())
Settings > integrations > url('http://{yourhost}/{any}') > Add webhook
. you can fill in any api with your nodjes server, robot automatically identifies requests from webhooks.ok
when webhook is triggered.const bot = cobot.lift()
bot.on(BotEvents.MergeRequest, context => console.log('ok'))
thanks your issue
when a new issue opened.const bot = cobot.lift()
bot.on(BotEvents.IssueOnOpen, context => {
context.actions.reply('thanks your issue')
})
const bot = cobot.lift()
bot.on(BotEvents.MergeRequest, async(context) => {
const notes = await context.actions.findNotes()
console.log(notes)
})
BotEvents = [
'CommentOnIssue',
'CommentOnCommit',
'CommentOnSnippet',
'CommentOnMergeRequest',
'MergeRequest',
'WikiCreate',
'WikiUpdate',
'WikiDelete',
'WikiOnAnyAction',
'PipelineOnRunning',
'PipelineOnPending',
'PipelineOnSuccess',
'PipelineOnFailed',
'PipelineOnCanceled',
'PipelineOnSkipped',
'PipelineOnAnyStatus',
'BuildOnAnyStatus',
'Push',
'Tag',
'IssueOnAnyAction',
'IssueOnOpen',
'IssueOnUpdate',
'IssueOnClose',
'IssueOnReopen',
]
FAQs
A user-experience-focused middleware for building Gitlab applications.
The npm package cobot receives a total of 8 weekly downloads. As such, cobot popularity was classified as not popular.
We found that cobot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.