How to use the shipjs-lib.getGitConfig function in shipjs-lib

To help you get started, we’ve selected a few shipjs-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algolia / shipjs / packages / shipjs / src / step / setup / CI / addCircleCIConfig.js View on Github external
'  You can manually configure CircleCI through these two steps:'
          );
          print(
            '  > Basic setup: https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
          );
          print(
            '  > Schedule your release: https://github.com/algolia/shipjs/blob/master/GUIDE.md#schedule-your-release'
          );
        };
      }
      const content = getConfig({
        baseBranch,
        schedulePrepare,
        cronExpr,
        gitUserName: getGitConfig('user.name') || 'Your Name',
        gitUserEmail: getGitConfig('user.email') || 'your@email.com',
      });
      if (dryRun) {
        print(`.circleci/config.yml`);
        print(content);
      } else {
        mkdirp.sync(path.dirname(filePath));
        fs.writeFileSync(filePath, content);
      }
      return () => {
        print(`${info('✔')} Created \`.circleci/config.yml\`.`);
        print('  You still need to finish setting up at CircleCI.');
        print(
          '  > https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
        );
      };
    }
github algolia / shipjs / packages / shipjs / src / step / setup / CI / addGitHubActions.js View on Github external
() => {
      const gitUserName = getGitConfig('user.name') || 'Your Name';
      const gitUserEmail = getGitConfig('user.email') || 'your@email.com';

      const log = [
        createGitHubAction({
          content: getBaseConfig({ releaseBranch }),
          actionPath: '.github/workflows/shipjs-trigger.yml',
          dir,
          dryRun,
        }),
        manualPrepare &&
          createGitHubAction({
            content: getManualPrepareConfig({
              baseBranch,
              gitUserName,
              gitUserEmail,
            }),
github algolia / shipjs / packages / shipjs / src / step / setup / CI / addCircleCIConfig.js View on Github external
print(
            '  You can manually configure CircleCI through these two steps:'
          );
          print(
            '  > Basic setup: https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
          );
          print(
            '  > Schedule your release: https://github.com/algolia/shipjs/blob/master/GUIDE.md#schedule-your-release'
          );
        };
      }
      const content = getConfig({
        baseBranch,
        schedulePrepare,
        cronExpr,
        gitUserName: getGitConfig('user.name') || 'Your Name',
        gitUserEmail: getGitConfig('user.email') || 'your@email.com',
      });
      if (dryRun) {
        print(`.circleci/config.yml`);
        print(content);
      } else {
        mkdirp.sync(path.dirname(filePath));
        fs.writeFileSync(filePath, content);
      }
      return () => {
        print(`${info('✔')} Created \`.circleci/config.yml\`.`);
        print('  You still need to finish setting up at CircleCI.');
        print(
          '  > https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
        );
      };
github algolia / shipjs / packages / shipjs / src / step / setup / CI / addGitHubActions.js View on Github external
() => {
      const gitUserName = getGitConfig('user.name') || 'Your Name';
      const gitUserEmail = getGitConfig('user.email') || 'your@email.com';

      const log = [
        createGitHubAction({
          content: getBaseConfig({ releaseBranch }),
          actionPath: '.github/workflows/shipjs-trigger.yml',
          dir,
          dryRun,
        }),
        manualPrepare &&
          createGitHubAction({
            content: getManualPrepareConfig({
              baseBranch,
              gitUserName,
              gitUserEmail,
            }),
            actionPath: '.github/workflows/shipjs-manual-prepare.yml',