microsoft / PR-Metrics

A GitHub Action & Azure Pipelines task for augmenting pull request titles to let reviewers quickly determine PR size and test coverage.
https://github.com/microsoft/Omex
MIT License
58 stars 12 forks source link

2XL⚠️ ◾ Fixing Octokit Fetch #412

Closed muiriswoulfe closed 1 year ago

muiriswoulfe commented 1 year ago

Summary

Motivation

Currently, for GitHub builds, PR Metrics may throw an exception due to the "fetch" command not being present.

Technical

Importing the "isomorphic-fetch" package to provide the "fetch" command and resolve the issue. A few packages were tested, but "isomorphic-fetch" was found to be the one that worked best.

Testing

Test Types

Unit Test Coverage

100%

github-actions[bot] commented 1 year ago

PR Metrics

Try to keep pull requests smaller than 400 lines of new product code by following the Single Responsibility Principle (SRP). ⚠️ Consider adding additional tests. Lines
Product Code 5,715
Test Code 0
Subtotal 5,715
Ignored Code 147
Total 5,862

Metrics computed by PR Metrics. Add it to your Azure DevOps and GitHub PRs!