git-push.js 431 B

123456789101112131415161718192021
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. const { git } = require( 'ckeditor5-dev-utils' );
  7. /**
  8. * Pushes changes of current branch in repository to default origin.
  9. *
  10. * Example:
  11. *
  12. * gulp exec --task git-push
  13. *
  14. * @param {String} workdir
  15. */
  16. module.exports = function executeGitPush( workdir ) {
  17. git.push( workdir );
  18. };