Skip to content
Snippets Groups Projects
Select Git revision
  • function_tracer
  • master default protected
  • dependabot/pip/idna-3.7
  • dependabot/pip/immutabledict-4.2.0
  • dependabot/pip/pillow-10.3.0
  • dependabot/pip/jinja2-3.1.3
  • dependabot/pip/gitpython-3.1.41
  • dependabot/pip/black-24.3.0
  • dependabot/github_actions/peaceiris/actions-gh-pages-4.0.0
  • dependabot/cargo/serde_json-1.0.116
  • dependabot/github_actions/actions/cache-4
  • dependabot/cargo/serde-1.0.198
  • dependabot/github_actions/peaceiris/actions-mdbook-2.0.0
  • dependabot/github_actions/dawidd6/action-download-artifact-3.1.4
  • dependabot/cargo/anyhow-1.0.82
  • dependabot/github_actions/JasonEtco/create-an-issue-2.9.2
  • dependabot/cargo/pyo3-0.20.3
  • dependabot/cargo/log-0.4.21
  • gh-pages
  • develop
  • clokep/morg-readme
  • v1.98.0
  • v1.98.0rc1
  • v1.97.0
  • v1.97.0rc1
  • v1.96.1
  • v1.96.0
  • v1.96.0rc1
  • v1.95.1
  • v1.95.0
  • v1.95.0rc1
  • v1.94.0
  • v1.94.0rc1
  • v1.93.0
  • v1.93.0rc1
  • v1.92.3
  • v1.92.2
  • v1.92.1
  • v1.92.0
  • v1.91.2
  • v1.92.0rc1
41 results

README.rst

Blame
  • errors.spec.ts 843 B
    import { codeBlock } from 'common-tags';
    import { bulkChangesDisallowed } from './error';
    
    const errorMsg = codeBlock`
      To https://github.com/the-org/st-mono.git
      !\t:refs/renovate/branches/renovate/foo\t[remote failure] (remote failed to report status)
      !\t:refs/renovate/branches/renovate/bar\t[remote failure] (remote failed to report status)
      Done
      Pushing to https://github.com/foo/bar.git
      POST git-receive-pack (1234 bytes)
      remote: Repository policies do not allow pushes that update more than 2 branches or tags.
      error: failed to push some refs to 'https://github.com/foo/bar.git'
    `;
    
    describe('util/git/errors', () => {
      describe('bulkChangesDisallowed', () => {
        it('should match the expected error', () => {
          const err = new Error(errorMsg);
          expect(bulkChangesDisallowed(err)).toBe(true);
        });
      });
    });