zeke / semantic-pull-requests

:robot: Let the robots take care of the semantic versioning
https://github.com/apps/semantic-pull-requests
Apache License 2.0
1.24k stars 122 forks source link

Unable to run tests #139

Closed ScottChapman closed 3 years ago

ScottChapman commented 3 years ago

After doing an install, I run npm run test and get a bunch of errors like:

● handlePullRequestChange › sets `failure` status if PR has no semantic commits and no semantic title

    HttpError: request to https://api.github.com/repos/sally/project-x/statuses/abcdefg failed, reason: Nock: No match for request {
      "method": "POST",
      "url": "https://api.github.com/repos/sally/project-x/statuses/abcdefg",
      "headers": {
        "accept": [
          "application/vnd.github.v3+json"
        ],
        "user-agent": [
          "octokit/rest.js v15.9.4"
zeke commented 3 years ago

What version of Node.js are you running?

Please try a fresh checkout:

git clone https://github.com/zeke/semantic-pull-requests
cd semantic-pull-requests
npm install
npm test
zeke commented 3 years ago

Any luck, @ScottChapman ?

ScottChapman commented 3 years ago

I have, but with a different project; I liked what it did a bit better as it maintained a comment with details. We've customized it for our use so I think we are all set.

zeke commented 3 years ago

Just checked out https://github.com/z0al/commitlint-bot -- It is archived and links to this project!? 🙈

In any case, glad you got something going that works for you 👍🏼