Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add various [Polymart] badges #8352

Closed
wants to merge 61 commits into from

Conversation

MherZaqaryan
Copy link
Contributor

Added:

  • Polymart Downloads badge
  • Polymart Latest Version badge
  • Polymart Rating badge
  • Polymart Star Rating badge

Closes #7429

@shields-ci
Copy link

shields-ci commented Aug 30, 2022

Messages
📖 ✨ Thanks for your contribution to Shields, @MherZaqaryan!

Generated by 🚫 dangerJS against 9ca8504

@calebcartwright calebcartwright added the service-badge New or updated service badge label Aug 30, 2022
Copy link
Member

@chris48s chris48s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the reason the service tests build is failing is because the service file is called polymart-rating.service.js (correctly) but the corresponding tests are polymart-raiting.tester.js (with an i). Fixing that should allow the service tests to run.

I've left some quick comments. I'll do a proper review once we've got a build passing. Thanks


async handle({ resourceId }) {
const { response } = await this.fetch({ resourceId })
return this.constructor.render({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use renderVersionBadge() here?

shields/lib/version.js

Lines 144 to 150 in 302c860

function renderVersionBadge({ version, tag, defaultLabel }) {
return {
label: tag ? `${defaultLabel}@${tag}` : undefined,
message: addv(version),
color: versionColor(version),
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, how do you recommend adding it? It seems removed now.

Comment on lines 16 to 19
}),
}),
}),
}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the Joi.object()s (response, resource, etc) should be .required() too as well as just the values inside them. Otherwise the objects themselves are optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks for the information will add this too.

.get('/rating/323.json')
.expectBadge({
label: 'rating',
message: withRegex(/^(\d*\.\d+)(\/5 \()(\d+)(\))$/),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've got a variety of service tests all defining slightly different regular expressions to do roughly the same thing e.g:

which we should pull out into a shared helper in https://github.com/badges/shields/blob/master/services/test-validators.js

I reckon it doesn't have to be a blocker to merging this, but I'm going to at least just tag here #4902 to remind us. It might make a nice next PR to to work on if you were looking for a follow-up :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, should I leave it like that or wait until you add it to the shared helper?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets leave it as it is for this PR

@MherZaqaryan
Copy link
Contributor Author

MherZaqaryan commented Aug 31, 2022

Looks like the reason the service tests build is failing is because the service file is called polymart-rating.service.js (correctly) but the corresponding tests are polymart-raiting.tester.js (with an i). Fixing that should allow the service tests to run.

I've left some quick comments. I'll do a proper review once we've got a build passing. Thanks

I've fixed that misspelling issue but there is another one no credentials configured, tests for this service will be skipped. would you mind helping me out with this?

@chris48s
Copy link
Member

chris48s commented Sep 4, 2022

I checked your branch out locally and tried running the tests and there's a couple of problems.

One is that you are using id=1 for your "not found" tests, but this is actually a valid Resource ID on PolyMart:
https://api.polymart.org/v1/getResourceInfo/?resource_id=1
so your 'not found' tests are returning valid badges, rather than a not found response.

I'd suggest changing the 'not found' tests to use id=0 - this isn't a real resource, and it seems like a reasonably safe bet it probably won't be.
https://api.polymart.org/v1/getResourceInfo/?resource_id=0

Once you do, that the second problem you're going to hit is that the 'not found' response from this API isn't a 404 - its a 200 OK but with a body that indicates an error, so we can't rely on the standard error handling. We're going to need to:

  • Declare 2 Joi schemas: one for the valid response and one for the error, then use Joi.alternatives() to accept either one or the other
  • Check for the error and manually throw a NotFound() exception

Something this would be a good example of this pattern to crib from:

const steamCollectionSchema = Joi.object({
response: Joi.object()
.keys({
collectiondetails: Joi.array()
.items(
Joi.object({
children: Joi.array().required(),
}).required()
)
.required(),
})
.required(),
}).required()
const steamCollectionNotFoundSchema = Joi.object({
response: Joi.object()
.keys({
collectiondetails: Joi.array()
.items(
Joi.object({
result: Joi.number().integer().min(9).max(9).required(),
}).required()
)
.required(),
})
.required(),
}).required()
const collectionFoundOrNotSchema = Joi.alternatives(
steamCollectionSchema,
steamCollectionNotFoundSchema
)

if (json.response.collectiondetails[0].result) {
throw new NotFound({ prettyMessage: 'collection not found' })
}

You can run your service tests locally using

npm run test:services -- --only="polymart"

I think the messages about missing credentials are a red herring - they apply to other services.

@MherZaqaryan
Copy link
Contributor Author

@chris48s Hey, I fixed some issues, and there is a problem, while I am trying to run a test for a single service, would you mind helping me out?

Here's what happens when I try running only polymart service.

> npm run test:services -- --only="polymart"

shields.io@0.0.0 test:services
cross-env NODE_CONFIG_ENV=test mocha core/service-test-runner/cli.js "--only=polymart"

Running tests for 1 services: polymart.


Error: Unknown services: polymart
    at Runner.only (/shields/core/service-test-runner/runner.js:64:13)
    at /shields/core/service-test-runner/cli.js:127:10

@chris48s
Copy link
Member

Hmm. I wonder if you are hitting #8437

Are you using Windows?

@MherZaqaryan
Copy link
Contributor Author

Hmm. I wonder if you are hitting #8437

Are you using Windows?

Yep! I am using Windows, and I am probably facing the same issue.

@MherZaqaryan
Copy link
Contributor Author

Bump!

MherZaqaryan and others added 15 commits December 19, 2022 19:55
Bumps [cypress](https://github.com/cypress-io/cypress) from 12.0.2 to 12.1.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](cypress-io/cypress@v12.0.2...v12.1.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.0.0 to 15.0.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](sinonjs/sinon@v15.0.0...v15.0.1)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Bumps [camelcase](https://github.com/sindresorhus/camelcase) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/sindresorhus/camelcase/releases)
- [Commits](sindresorhus/camelcase@v7.0.0...v7.0.1)

---
updated-dependencies:
- dependency-name: camelcase
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [simple-icons](https://github.com/simple-icons/simple-icons) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/simple-icons/simple-icons/releases)
- [Commits](simple-icons/simple-icons@8.0.0...8.1.0)

---
updated-dependencies:
- dependency-name: simple-icons
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.24.2 to 7.26.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@7.24.2...7.26.0)

---
updated-dependencies:
- dependency-name: "@sentry/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Bumps [mocha](https://github.com/mochajs/mocha) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](mochajs/mocha@v10.1.0...v10.2.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* chore(deps): bump query-string from 7.1.3 to 8.0.3

Bumps [query-string](https://github.com/sindresorhus/query-string) from 7.1.3 to 8.0.3.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](sindresorhus/query-string@v7.1.3...v8.0.3)

---
updated-dependencies:
- dependency-name: query-string
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* update import

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <git@chris-shaw.dev>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.26.0 to 7.28.1.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@7.26.0...7.28.1)

---
updated-dependencies:
- dependency-name: "@sentry/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [cypress](https://github.com/cypress-io/cypress) from 12.1.0 to 12.2.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](cypress-io/cypress@v12.1.0...v12.2.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.20.5 to 7.20.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.20.7/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [query-string](https://github.com/sindresorhus/query-string) from 8.0.3 to 8.1.0.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](sindresorhus/query-string@v8.0.3...v8.1.0)

---
updated-dependencies:
- dependency-name: query-string
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
dependabot bot and others added 5 commits January 7, 2023 18:18
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.20.7 to 7.20.12.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.20.12/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [json5](https://github.com/json5/json5)
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* migrate danger CI job to GHA

* constrain triggers

* prettier
* add docstrings for pipenv helpers

* update param description

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
@MherZaqaryan
Copy link
Contributor Author

@chris48s Bump

dependabot bot and others added 2 commits January 13, 2023 16:48
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.1...2.8.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
@chris48s
Copy link
Member

Sorry this one has been on a back burner for a while. Looks like you've still got some failing tests but we merged #8786 recently which should allow you to update this branch and run your tests locally. Can you have a look at getting the build passing and I'll circle back and review.

dependabot bot and others added 14 commits January 14, 2023 19:01
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.29.0 to 7.30.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@7.29.0...7.30.0)

---
updated-dependencies:
- dependency-name: "@sentry/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Bumps [rimraf](https://github.com/isaacs/rimraf) from 3.0.2 to 4.0.4.
- [Release notes](https://github.com/isaacs/rimraf/releases)
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](isaacs/rimraf@v3.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
…ges#8807)

Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.26.0 to 2.27.4.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](import-js/eslint-plugin-import@v2.26.0...v2.27.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
…ges#8798)

Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.31.11 to 7.32.0.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-react@v7.31.11...v7.32.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.0.12 to 4.0.13.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](NaturalIntelligence/fast-xml-parser@v4.0.12...v4.0.13)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Bumps [nock](https://github.com/nock/nock) from 13.2.9 to 13.3.0.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](nock/nock@v13.2.9...v13.3.0)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
…s#8802)

Bumps [@renovatebot/ruby-semver](https://github.com/renovatebot/ruby-semver) from 1.1.7 to 1.1.8.
- [Release notes](https://github.com/renovatebot/ruby-semver/releases)
- [Changelog](https://github.com/renovatebot/ruby-semver/blob/main/.releaserc.json)
- [Commits](renovatebot/ruby-semver@1.1.7...1.1.8)

---
updated-dependencies:
- dependency-name: "@renovatebot/ruby-semver"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

Fails
🚫

Danger failed to run dangerfile.js.

Warnings
⚠️ This PR modified the server but none of its tests.
That's okay so long as it's refactoring existing code.
⚠️

📚 Remember to ensure any changes to config.private in services/github/github-constellation.js are reflected in the server secrets documentation

Messages
📖 ✨ Thanks for your contribution to Shields, @MherZaqaryan!
📖

Thanks for contributing to our documentation. We ❤️ our documentarians!

Error Error

ENOENT: no such file or directory, open 'services/polymart/polymart-downloads.tester.js'
Error: ENOENT: no such file or directory, open 'services/polymart/polymart-downloads.tester.js'
    at Object.openSync (node:fs:590:3)
    at Object.readFileSync (node:fs:458:35)
    at _loop_1 (/home/runner/work/shields/shields/node_modules/danger-plugin-no-test-shortcuts/dist/index.js:18:28)
    at noTestShortcuts (/home/runner/work/shields/shields/node_modules/danger-plugin-no-test-shortcuts/dist/index.js:51:9)
    at Object.<anonymous> (dangerfile.js:103:1)
    at Module._compile (node:internal/modules/cjs/loader:1165:14)
    at requireFromString (/home/runner/work/shields/shields/node_modules/require-from-string/index.js:28:4)
    at /home/runner/work/shields/shields/node_modules/danger/distribution/runner/runners/inline.js:157:68
    at step (/home/runner/work/shields/shields/node_modules/danger/distribution/runner/runners/inline.js:52:23)
    at Object.next (/home/runner/work/shields/shields/node_modules/danger/distribution/runner/runners/inline.js:33:53)
    at /home/runner/work/shields/shields/node_modules/danger/distribution/runner/runners/inline.js:27:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/shields/shields/node_modules/danger/distribution/runner/runners/inline.js:23:12)
    at runDangerfileEnvironment (/home/runner/work/shields/shields/node_modules/danger/distribution/runner/runners/inline.js:118:132)
    at /home/runner/work/shields/shields/node_modules/danger/distribution/platforms/GitHub.js:178:38
    at step (/home/runner/work/shields/shields/node_modules/danger/distribution/platforms/GitHub.js:44:23)
    at Object.next (/home/runner/work/shields/shields/node_modules/danger/distribution/platforms/GitHub.js:25:53)
    at /home/runner/work/shields/shields/node_modules/danger/distribution/platforms/GitHub.js:19:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/shields/shields/node_modules/danger/distribution/platforms/GitHub.js:15:12)
    at Object.executeRuntimeEnvironment (/home/runner/work/shields/shields/node_modules/danger/distribution/platforms/GitHub.js:143:88)
    at /home/runner/work/shields/shields/node_modules/danger/distribution/commands/danger-runner.js:100:47
    at step (/home/runner/work/shields/shields/node_modules/danger/distribution/commands/danger-runner.js:34:23)
    at Object.next (/home/runner/work/shields/shields/node_modules/danger/distribution/commands/danger-runner.js:15:53)
    at fulfilled (/home/runner/work/shields/shields/node_modules/danger/distribution/commands/danger-runner.js:6:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Dangerfile

------^

Generated by 🚫 dangerJS against c3fbe9c

@MherZaqaryan
Copy link
Contributor Author

Sorry this one has been on a back burner for a while. Looks like you've still got some failing tests but we merged #8786 recently which should allow you to update this branch and run your tests locally. Can you have a look at getting the build passing and I'll circle back and review.

Hey! Thank you for that, could you please tell me if there is a problem with my latest activity, because I feel like I've done something wrong.

@chris48s
Copy link
Member

Yes there's definitely something wrong with this branch now, as we can tell from the diff: https://github.com/badges/shields/pull/8352/files
but I couldn't tell you what you've done.

Rather than try to unpick it, I think from this point the best suggestion I can give you is:

I'm assuming you have https://github.com/badges/shields.git set up as a remote called upstream on your local checkout - if not, add it with git remote add upstream https://github.com/badges/shields.git

Pull down the latest changes:

git fetch upstream

Create a clean branch based off the latest changes from the upstream:

git checkout -b my-new-branch 2fb9889

Cherry pick the commits you want from this branch onto the new one:

git cherry-pick d403bb1
git cherry-pick fe1c933
git cherry-pick cb114a7
git cherry-pick 31ad897
git cherry-pick 64b460c

That will give you a new branch based off the latest commit on master with you changes so far from this PR replayed on top of it that you can work from.

Then either submit a new PR from that branch and I'll pick up the review from there, or force push your new branch to this one.

@MherZaqaryan
Copy link
Contributor Author

Yes there's definitely something wrong with this branch now, as we can tell from the diff: https://github.com/badges/shields/pull/8352/files but I couldn't tell you what you've done.

Rather than try to unpick it, I think from this point the best suggestion I can give you is:

I'm assuming you have https://github.com/badges/shields.git set up as a remote called upstream on your local checkout - if not, add it with git remote add upstream https://github.com/badges/shields.git

Pull down the latest changes:

git fetch upstream

Create a clean branch based off the latest changes from the upstream:

git checkout -b my-new-branch 2fb9889

Cherry pick the commits you want from this branch onto the new one:

git cherry-pick d403bb1
git cherry-pick fe1c933
git cherry-pick cb114a7
git cherry-pick 31ad897
git cherry-pick 64b460c

That will give you a new branch based off the latest commit on master with you changes so far from this PR replayed on top of it that you can work from.

Then either submit a new PR from that branch and I'll pick up the review from there, or force push your new branch to this one.

Thank you very much, I will open a new pull request!

@MherZaqaryan MherZaqaryan deleted the polymart-badges branch January 15, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Badge Request: Polymart
9 participants