We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use Gitlab\Client; use Gitlab\Model\Project; use Gitlab\Model\Issue; $client = new Client('http:https://git.yourdomain.com/api/v3/'); // change here $client->authenticate('your_gitlab_token_here', Client::AUTH_URL_TOKEN); // change here $project = new Project($client); $project->name = 'A project'; $project->description = 'This is a project'; $project->save();
The following block
$issue = new Issue($client); $issue->title = 'This is an issue'; $issue->addLabel('bug'); $issue->save(); $project->addIssue($issue); // or $issue->project = $project;
would be the same as
$project->createIssue('This is an issue', array( 'labels' => array('bug') ));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following block
would be the same as
The text was updated successfully, but these errors were encountered: