gitlab 0.6.0 copy "gitlab: ^0.6.0" to clipboard
gitlab: ^0.6.0 copied to clipboard

A library to communicate with the GitLab API

example/example.dart

import 'package:gitlab/gitlab.dart';

const gitLabToken = 'my-secret-token';
const projectId = 123;

void main() async {
  final project = GitLab(gitLabToken).project(projectId);

  // List all commits that have been done in the last 24h
  final commits = await project.commits
      .list(since: new DateTime.now().subtract(new Duration(days: 1)));

  print(commits.first.message);

  /// The internal id of the merge request.
  final iid = 2;
  final mergeRequest = await project.mergeRequests.get(iid);

  print(mergeRequest.title);
}
6
likes
100
pub points
38%
popularity

Publisher

unverified uploader

A library to communicate with the GitLab API

Repository (GitLab)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, intl, logging, meta

More

Packages that depend on gitlab