ci

Creator: coderz1093

Last updated:

0 purchases

ci Image
ci Images

Languages

Categories

Add to Cart

Description:

ci

☁️ CI
Detect whether you're running in a CI environment and retrieve information about the CI vendor.



Documentation •
License

About #
Example:
import 'package:ci/ci.dart' as ci;

Future<void> main() async {
print(ci.isCI);
print(ci.isPullRequest);
print(ci.currentVendor);
print(ci.currentVendor?.name);
print(ci.currentVendor?.isPullRequest);
print(ci.Vendor.IS_GITHUB_ACTIONS);
}
copied to clipboard
Adding support for a new CI vendor
The default CI vendors list is sourced from watson/ci-info, with an additional local vendors.json file that allows adding new vendors or overriding vendors from the default CI vendors list.
In most cases, you should make changes to the local vendors.json file and send a PR to add in support. Run dart generator/generate_vendors.dart before submitting your PR to update the generated vendor.g.dart file.






Built and maintained by Invertase.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.