Bryan Kok
dd2223407f
Refactor remaining [github] services ( #5748 )
2020-10-19 18:41:03 -05:00
JeongHoon Byun (a.k.a Outsider)
0737e317da
Add [GitHubSponsors] badge ( #5694 )
...
* Add GitHub Sponsors badge
Signed-off-by: Outsider <outsideris@gmail.com >
* rollback custom github sponsors logo
Signed-off-by: Outsider <outsideris@gmail.com >
* remove redirect for github sponsors
Signed-off-by: Outsider <outsideris@gmail.com >
* Update services/github/github-sponsors.service.js
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* fix indentation as prettier
Signed-off-by: Outsider <outsideris@gmail.com >
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-10-18 16:15:00 +00:00
Hubert Jagodziński
7a19dc40ef
Add [GithubDirectoryFileCount] badge ( #5705 )
...
* Added GithubDirectoryFileCount badge
* Additional information on a schema
* Update services/github/github-directory-file-count.service.js
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/github/github-directory-file-count.service.js
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Update services/github/github-directory-file-count.service.js
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* More examples
* Moved isArray check to transform method
* Using isMetric for validation
* Added documentaion on type and extension parameters
* Moved a couple of service tests to unit tests
* extension is applicable for type file only
* Note on GitHub API limit
* Using metric helper for a count formatting
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-10-18 14:30:15 +00:00
Hubert Jagodziński
e236c9a15c
Added [GithubRPackageVersion] badge ( #5708 )
...
* Added GithubRPackageVersion badge
* Minor changes to GithubGoModGoVersion badge
* More examples
* Removed mocking with nock from service tests
* Added unit tests
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-10-18 01:31:57 +00:00
Dominik Grzelak
d1ec834cb5
[Github] Handle the case when the Github deployment status returns null ( #5704 )
...
* Handle the case when the Github deployment status returns null
* Integration test null latestStatus response from Github Deployments
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-10-15 23:51:31 +00:00
chris48s
a4a8258fd5
unskip token integration test ( #5711 )
...
* unskip token integration test
* Update services/github/github-api-provider.integration.js
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
2020-10-15 21:44:07 +00:00
Paul Melnikow
564a9145e9
Remove FsTokenPersistence ( #5671 )
...
Closes #5665
2020-10-10 21:59:52 +00:00
Paul Melnikow
e1ac63d3be
Finish removing server-secrets.js ( #5664 )
...
I’ve tested locally that setting `gh_token` still conditionally enables `ConditionalGithubAuthV3Service`.
Closes #3393
2020-10-07 17:29:03 -04:00
Jonathan
fcf6678a12
[GithubIssues] Add examples for count github pull requests closed by label ( #5639 )
...
* Implement LOC badge
* Apply suggestions from code review
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* Fix tokei tests after API change
* Format the code
* Rename tokei service file
* Add comment about Tokei API behavior
* Document tokei badge behavior
* Make keywords consistent and add examples
* Fix typo
* Add examples for labeled closed issues
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-10-03 00:00:05 +00:00
Paul Melnikow
f0b8480280
Inject shieldsSecret into GitHub token admin endpoint ( #5631 )
...
Ref #3393
2020-10-01 23:12:22 -04:00
chris48s
504015c0ba
migrate hapi/joi to joi ( #5624 )
...
* update joi + joi-extension-semver
* @hapi/joi --> joi
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-30 17:51:02 +00:00
Paul Melnikow
eb9743c25c
Remove obsolete peer-to-peer GitHub token-sharing code ( #5628 )
...
Prevent tokens from being sent to the OVH servers. Instead, add them directly to the Redis DB.
Ref #3393
2020-09-29 21:22:30 -04:00
Caleb Cartwright
5d0116f959
convert some service classes to static fields, run [GithubPipenv GithubPullRequestCheckState GithubReleaseDate GithubRelease GithubRepoSize] ( #5622 )
...
* refactor(githubpipenv): convert to static fields
* refactor(githubpullrequest): convert to static fields
* refactor(githubreleasedate): convert to static fields
* refactor(githubrelease): convert to static fields
* refactor(githubreposize): convert to static fields
2020-09-29 02:15:49 +00:00
Caleb Cartwright
b149659187
convert some service classes to static fields, run [GitHubLernaJson GithubLicense GithubManifest GithubMilestoneDetail GithubMilestone GithubPackageJson] ( #5595 )
...
* refactor(githublernajson): convert to static fields
* refactor(githublicense): convert to static fields
* refactor(githubmanifest): convert to static fields
* refactor(githubmilestonedetail): convert to static fields
* refactor(githubmilestone): convert to static fields
* refactor(githubpackagejson): convert to static fields
2020-09-23 23:41:36 -04:00
Caleb Cartwright
ec5b976c0d
convert some service classes to static fields, run [GitHubForks GitHubGoMod GitHubIssueDetail GitHubIssues GitHubLabels GitHubLanguageCount GitHubLastCommit] ( #5590 )
...
* refactor(githubforks): convert to static fields
* refactor(githubgomod): convert to static fields
* refactor(githubissuedetail): convert to static fields
* refactor(githubissues): convert to static fields
* refactor(githublabels): convert to static fields
* refactor(githublanguagecount): convert to static fields
* refactor(githublastcommit): convert to static fields
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
2020-09-22 18:18:54 -05:00
chris48s
484c652719
use HEAD ref in [github] fetchJsonFromRepo ( #5589 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-22 18:15:27 +00:00
Caleb Cartwright
5a3064d0d4
convert some service classes to static fields, run [GitHubCommitsSince GitHubContributors GitHubDeployments GitHubDownloads GitHubFollowers] ( #5585 )
...
* refactor(githubcommitssince): convert to static fields
* refactor(githubcontributors): convert to static fields
* refactor(githubdeployments): convert to static fields
* refactor(githubdownloads): convert to static fields
* refactor(githubfollowers): convert to static fields
2020-09-21 11:25:15 -04:00
Caleb Cartwright
fa608e29d3
refactor(github): convert some clasess to static fields ( #5556 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-20 20:17:22 +00:00
Caleb Cartwright
7712d26897
tests: add a validator for 0/timePeriod ( #5583 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-20 19:58:54 +00:00
Caleb Cartwright
36395715a5
[GitHubHacktoberfest] 2020 (and beyond) ( #5549 )
...
* feat: GitHub Hacktoberfest 2020 (and beyond)
* chore: prettify
* refactor: convert to static fields
* refactor: fix spelling in pre-start message
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-20 18:40:47 +00:00
Pratapi Hemant
108a819c3a
[GITHUB] Badge for total stars of an user / org ( #5507 )
...
* added badge for total stars of an user / org
* Added a transformJson method in graphql-base to handle partial data
Co-authored-by: Pratapi Hemant Patel <pratpatel@expedia.com >
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
2020-09-19 12:07:23 +01:00
Sebastian Meyer
0d62406d0b
feat: GithubWorkflowStatus event query string ( #5442 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-08-19 23:09:24 +00:00
chris48s
270c29f757
auto-detect default branch on [github nycrc osslifecycle] ( #5234 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-06-25 20:15:20 +00:00
Caleb Cartwright
f02df4f826
support custom manifest path for [GitHubManifest] and fix service tests ( #5232 )
...
feat: custom manifest path for GH Manifest + fix tests
2020-06-22 19:20:56 +01:00
Joe Izzard
a17bb10662
Implement All Contributors Badge, run [GitHubAllContributors] ( #5163 )
...
* feat: added all-contributors badge and test
* Update services/github/github-all-contributors.service.js
Updated to schema to ensure the array always exists
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* fix: added branch to parameters
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
2020-06-03 22:44:49 -05:00
chris48s
064a3418a3
fix [githubpullrequestcheckstate] service test ( #5128 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-05-23 13:59:56 +00:00
chris48s
13d75e0607
upgrade to prettier 2 ( #5051 )
...
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00
chris48s
4d275e0642
upgrade to got 11 ( #5008 )
2020-05-02 17:39:23 +01:00
Paul Melnikow
6bc0d40c37
Fix production crash in [GithubStars] with trailing spaces ( #4983 )
...
* Fix production crash in [GithubStars] with trailing spaces
Closes #4982
* Remove .only()
Co-authored-by: chris48s <chris48s@users.noreply.github.com >
2020-05-01 20:46:42 +00:00
Paul Melnikow
f9d5f57f49
Delay start until the server is ready ( #4959 )
...
Fixes #4958
Fixes, but only in Heroku, #3771 , so let's keep that open.
2020-04-27 22:45:19 -04:00
dependabot-preview[bot]
478d14300c
Build(deps-dev): bump eslint-plugin-import from 2.20.1 to 2.20.2 ( #4859 )
...
* Build(deps-dev): bump eslint-plugin-import from 2.20.1 to 2.20.2
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.20.1 to 2.20.2.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.20.1...v2.20.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Fixes
* refactor: combine imports
* refactor: combine imports
* refactor: combine imports
* refactor: update import ordering
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Co-authored-by: Paul Melnikow <email@paulmelnikow.com >
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
2020-04-16 18:39:13 -05:00
Jacob Colvin
792ecb7c01
Add [github] Milestone service ( #4747 )
...
* Add isMetricOverMetric test validator
* Add Github Milestone and Milestone-Detail
Co-authored-by: Pierre-Yves B <PyvesDev@gmail.com >
2020-03-09 21:10:12 +00:00
chris48s
d8831729cb
Check request origin before sending credentials ( #4729 )
...
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
Co-authored-by: chris48s <chris48s@users.noreply.github.com >
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
Co-authored-by: chris48s <chris48s@users.noreply.github.com >
2020-03-04 20:42:27 +00:00
François Hodierne
0d8a2d5ca0
Update to eslint 6.8.0 [appveyor githubissuedetail packagist] ( #4489 )
...
* update to eslint 6.8.0 and related packages
* Fixes for no-prototype-builtins
* Updates for explicit-function-return-type
* Add ignores for no-explicit-any
* update to eslint 6.8.0 and related packages
* Fixes for no-prototype-builtins
* Updates for explicit-function-return-type
* Add ignores for no-explicit-any
* package: activate eslint-config-standard
* apply updated eslint configuration
* lint: apply eslint feedback after rebase
* Update lockfile
* Update lockfile
* Restore missing deps
* Update lockfile
* Re-add eslint-plugin-node
* Add eslint-plugin-standard and eslint-plugin-react-hooks
* Clean lint
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
2020-02-29 11:06:36 -06:00
Anton Gilgur
7f7ecfd111
add sort and prerelease query params to [GitHubCommitsSince] (also refactors [GitHubRelease], [GitHubTag]) ( #4395 )
...
* move getLatestRelease logic from [GitHubRelease] to common-fetch
- so that the sorting and prerelease logic can be used for other
services too, like commits-since
* add sort and prerelease query params to [GitHubCommitsSince]
- they only work when using the 'latest' version of course
- uses same logic as release service
* reuse queryParamSchema from common-fetch for [GitHubTag]
- as they were the exact same schema
* refactor [GitHubCommitsSince] tests to use withRegex
- and the same variable everywhere
* split out release/tag logic from common-fetch to common-release (affects [GitHubCommitsSince], [GitHubRelease], [GitHubTag])
- this logic is only used for code related to releases & tags, so made
sense as a split point
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
2020-02-13 22:18:29 -06:00
Pedro Fracassi
d80636b101
Add [GithubLerna] badge ( #4265 )
...
* Add GitHub Lerna badge
* Add tests, rename class, rework base path, support independent tag
* Switch label to be 'lerna' in all cases
* Run Prettier
Co-authored-by: Pierre-Yves B. <PyvesDev@gmail.com >
2020-02-03 22:34:09 +00:00
chris48s
7d2089e315
skip flakey test ( #4616 )
2020-02-03 20:59:52 +00:00
chris48s
347e0a81f3
set followRedirect: false by default in tests ( #4491 )
...
* set followRedirect: false by default in tests
* update tests implicitly relying on redirects
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-01-07 21:13:48 +00:00
chris48s
9a6b96effc
Use expectRedirect helper in redirect tests; affects [circleci codeclimate codecov discourse endpoint github jenkins jira jitpack lgtm maven nexus scrutinizer sonar swagger symfony teamcity travis twitter vso waffle website wordpress] ( #4481 )
...
* Convert remaining tests to use expectRedirect() helper
* convert last few redirect tests to use svg not json
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-01-03 21:39:58 +00:00
Patric Stout
453821c40e
Add [GithubDeployments] badge ( #4477 ) ( #4478 )
...
* Add GitHub Deployments badge (#4477 )
* require a message
Co-authored-by: chris48s <chris48s@users.noreply.github.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2019-12-31 18:13:16 +00:00
Caleb Cartwright
c455993a4d
add support for [GitHubWorkflowStatus] (Actions) using BaseSvgScraping service implementation ( #3898 )
...
* feat: add BaseSvgScraping service impl for GH Actions
* chore: fix GH Actions service test name
* feat: add branch support to GH Actions/Workflows
* chore: fix schema for GH actions
* refactor: update route path per PR discussion
2019-11-27 07:36:37 -06:00
dependabot-preview[bot]
0f332413df
Build(deps-dev): bump prettier from 1.18.2 to 1.19.1 ( #4328 )
...
* Build(deps-dev): bump prettier from 1.18.2 to 1.19.1
Bumps [prettier](https://github.com/prettier/prettier ) from 1.18.2 to 1.19.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.18.2...1.19.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Build(deps-dev): bump prettier from 1.18.2 to 1.19.1
Bumps [prettier](https://github.com/prettier/prettier ) from 1.18.2 to 1.19.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.18.2...1.19.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: apply new prettier formatting
* chore: try prettier, again
2019-11-15 19:33:40 -06:00
Paul Melnikow
414a77f3a8
Fix [GithubRelease] not found case with include_prereleases ( #4304 )
...
With a couple minor stylistic changes for readability.
Closes #4303
2019-11-07 15:04:02 -07:00
Caleb Cartwright
5a4f705e8f
fix [GitHubHacktoberfest] service test ( #4299 )
...
* tests: fix hacktoberfest service test
* tests: update message for post-hacktoberfest, add couple unit tests
* chore: lgtm fix
* tests: fix unit test
2019-11-06 04:47:56 -06:00
Hubert Jagodziński
727a033a9b
Added [GithubGoModGoVersion GitHub] badge ( #4232 )
...
* Added Go version badge
* Using destructuring assignment
* Allowing a client to specify a filename
* Turned a test to live one
* Added golang to keywords
* Renamed parseContent to transform
* Added an example with branch and filename
2019-10-31 12:58:23 -05:00
Paul Melnikow
8d088a2672
Add filename override to [GithubPackageJson] ( #4233 )
...
Refs https://github.com/badges/shields/issues/2259#issuecomment-545485159
2019-10-24 23:19:45 +00:00
chris48s
a66e4f9e10
change query for fork count ( #4150 )
2019-10-08 19:15:29 +01:00
Paul Melnikow
76cb943858
Add a GitHub project badge for Hacktoberfest [GithubHacktoberfest] ( #4109 )
2019-10-02 22:05:56 -04:00
Paul Melnikow
33a6c5398d
Fix an undefined variable in [GithubPackageJson] ( #4113 )
...
* Fix an undefined variable in [GithubPackageJson]
Make sure this gets linted in the future.
* Run prettier
2019-10-02 21:26:12 +00:00
Paul Melnikow
a5b2f5436c
Optimize [GithubIssues] using GraphQL ( #4107 )
...
While playing around with a badge for Hacktoberfest I noticed the GitHub Issues badge fetches a huge amount of JSON to render just the total count. There doesn’t seem to be a way to limit the response size through the REST API, so I thought I’d switch this to use GraphQL instead.
2019-10-02 19:34:14 +00:00