Skip to content

Conversation

burasuk
Copy link

@burasuk burasuk commented Apr 10, 2019

var gitlab = require('node-gitlab');

var client = gitlab.createPromise({
  api: 'http://ubuntu/gitlab/api/v4',
  privateToken: '<token>'
});

list project runners

client.projects.runners({
  id: 91
})
.then(projects=>{
  console.log(projects);
})
.catch(err=>{
  console.log(err)
})

Enable runner on project

client.projects.enableRunner({
  id: 91,
  runner_id: 4
})
.then(projects=>{
  console.log(projects);
})
.catch(err=>{
  console.log(err)
})

Disable runner on project

client.projects.disableRunner({
  id: 91,
  runner_id: 4
})

@burasuk burasuk closed this by deleting the head repository Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant