Commit Graph

259 Commits

Author SHA1 Message Date
chris48s
091ccfdbcd migrate token pooling to postgres (#8922)
* add ability to store token pool in Postgres DB

* update transitive ansi-regex dependencies
2023-02-23 17:18:39 +00:00
chris48s
c2fe2ffa2e documentation html fixes (#8887)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2023-02-12 18:47:16 +00:00
chris48s
e8c42e9ec1 migrate service tests to GH actions (#8421)
* run service tests with GHA

* rename GithubGist services to Gist

* completely delete circle ci config
2023-01-17 20:55:57 +00:00
chris48s
2fb9889742 update [githubpipenv] tests/examples (#8797)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2023-01-14 20:37:46 +00:00
chris48s
c3d08f7f8b Send X-GitHub-Api-Version when calling [GitHub] v3 API (#8669)
* send X-GitHub-Api-Version when calling GitHub v3 API

* TODO: invesitgate

* read baseUrl from config.service.baseUri

* add workflow to check for new GH api releases on schedule

* format config/default.yml to match yaml.dump() format

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-12-31 15:56:04 +00:00
chris48s
41c53c73c2 allow all numeric branch names in [githubactionsworkflowstatus] (#8734) 2022-12-21 17:49:20 +00:00
chris48s
dd3e2df00a switch [GithubActionsWorkflowStatus] to SVG scraper (#8738) 2022-12-21 17:17:18 +00:00
chris48s
6049ef64c8 handle workflow runs that do not have a conclusion (#8717)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-12-15 22:41:33 +00:00
chris48s
61dd6c0443 switch from github workflows to github actions workflows; test [githubactionsworkflowstatus githubworkflowstatus] (#8475)
* switch from github workflows to github actions workflows

* update github actions workflow badge to use api

* add test case for missing branch param

* custom deprecation message
2022-12-15 18:36:17 +00:00
chris48s
c8a0a8660e tidy up [GitHubGist] routes (#8510)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-11-04 19:43:14 +00:00
chris48s
3528e842d7 fix [githubpullrequestcheckstate] service tests (#8548)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-10-29 18:59:36 +00:00
chris48s
91a6b6d913 require array to have at least 1 item in [githublastcommit] (#8563)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-10-27 19:32:59 +00:00
Paula Barszcz
c0087cae67 Add [GitHubLastCommit] by committer badge (#8537)
* add github last commit by committer badge

* modify queryParam

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-10-20 19:08:48 +00:00
Paula Barszcz
a251357881 [GitHubReleaseDate] - published_at field (#8543)
* gh release date - published at

* example correction

* change published_at query param to display_date

* simplify the  statement
2022-10-20 19:52:44 +01:00
Martin Costello
bd6a04ba03 fix: Support WAITING status for GitHub deployments (#8521)
Fix "invalid response data" badge label for GitHub deployments pending approval.
2022-10-15 20:29:38 +01:00
Tejas Dhamecha
78b5a6bf46 [GitHubGistStars] add GitHub Gist Stars (#8471)
* add schema and fetch method to service class

* add transform, render and handle method to service class

* add documentation and examples

* add tester

* add suggeseted changes

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-10-04 18:48:26 +00:00
Tejas Dhamecha
882b8c92e3 feat: add 2022 support to GitHub Hacktoberfest (#8468) 2022-10-02 09:01:33 -05:00
Paula Barszcz
e8f151eafa [GitHub] Number of commits between branches/tags/commits (#8394)
closes #6901
2022-09-16 21:48:23 +01:00
Prashant Rawat
e3c938b4d7 return string instead of object from getDependencyVersion function (#8396)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-09-13 19:38:18 +00:00
chris48s
ae018cdddc conform to standard js quote rules (#8395)
* restore standardjs quote behaviour

* conform to standard js quote rules
2022-09-12 17:22:12 +01:00
Paula Barszcz
f985d2cc02 [GithubGistLastCommit] GitHub gist last commit (#8272)
* Add github-gist-last-commit.service.js

* Still having difficulty with the reponse in the test file for github-gist-last-commit  being in svg format, rather than json

* Yay, tests are greeeeen, the best sight for sore eyes xD

* Apply suggestions from code review - destructuring+rename and path change

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Removed the unnecessary test from github-gist-last-commit

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
2022-08-07 19:24:50 -05:00
Paula Barszcz
fa3839cdab [GitHub] GitHub file size for a specific branch (#8262)
* Modify github-size.service.js

* Add tests for Github Size Service to test the new ref parameter

* Modified request for a file size: ref is now sent only if if was specified
2022-08-02 21:33:13 +00:00
Jonah Lawrence
e8686395b1 refactor(deps): Replace moment with dayjs (#8192) 2022-07-14 20:34:38 -05:00
Jonah Lawrence
e7aecb1a3b Use GraphQL to fix GitHub file count badges [github] (#8112)
* fix: Use graphQL for github file count badges

* Add test for repo not found and update transform tests

* Fix extensions in transform test

* Mark type and extension as required

* Simpler type transform since only file, dir supported
2022-06-22 18:57:56 +01:00
Alexander Wert
5b0777918a [GitHub] Added milestone property to GitHub issue details service (#7864)
* Added milestone property to GitHub issue details service

* Fixed case when no milestone is available

* fixing unit test

* fixed service test for milestone property

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-21 00:53:27 +00:00
Paul Melnikow
4f219f1b92 Stringify [githublanguagecount] message (#7881) 2022-04-23 13:52:52 -05:00
Paul Melnikow
1fcc7e4b98 Stringify and trim whitespace from a few services (#7880) 2022-04-22 18:19:04 -04:00
chris48s
9186f0d262 improve python version formatting (#7682) 2022-03-06 20:25:29 +00:00
Pierre-Yves Bigourdan
2cf35912c1 Clarify GitHub All Contributors badge (#7690)
* Clarify GitHub All Contributors badge

* Add documentation text
2022-03-06 18:52:17 +00:00
Pierre-Yves Bigourdan
98c98efd45 Fix GitHub Deployments example color (#7691) 2022-03-06 10:53:09 -06:00
chris48s
d3ca453712 remove suspended [github] tokens from the pool (#7654)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-02-27 22:28:49 +00:00
Caleb Cartwright
b751cc6c57 fix: github pipenv service test (#7627)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-02-20 17:12:47 +00:00
Caleb Cartwright
24355a0773 change closed GitHub issue color to purple (#7374)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-18 20:43:02 +00:00
aaronweldy
b53ac49f4a [GithubPackageJson] Get version from monorepo subfolder package.json (#7350)
* Add filename query params for subdirectory of monorepo

* Rename query param schema

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-05 20:51:12 +00:00
chris48s
99bffd3a86 Send better user-agent values (and got config changes) (#7309)
* expose fetchLimitBytes/userAgent in got-config module

* export a function not a factory

* send better user-agent values

- add userAgentBase setting
- send short SHA in user agent on heroku
- set a version (tag or short SHA) in Dockefile and use
  it to report server version in UA for docker users

* add a comment explaining fileSize

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-25 17:11:49 +00:00
chris48s
6d22389e88 rename sendAndCacheRequest (#7277) 2021-11-17 20:00:29 +00:00
chris48s
c73072deed Remove requestOptions2GotOptions compatibility layer (#7270)
* gzip --> decompress

* strictSSL --> https.rejectUnauthorized

* auth --> username/password

* qs --> searchParams

* fix base service auth docs

* completely remove requestOptions2GotOptions layer

* update the docs

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-15 19:56:08 +00:00
chris48s
0e38eab8df migrate request --> got in [github] auth acceptor (#7248) 2021-11-12 18:04:03 +00:00
chris48s
f1b643df0d remove request from legacy request handler (#7233)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-06 10:59:58 +00:00
chris48s
eb07b60cf0 migrate github badges to use got instead of request; affects [github librariesio] (#7212)
* migrate github badges to use got instead of request

* simplify creation of requestFetcher in libraries.io base

* improve libraries.io connection error test

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-31 16:19:09 +00:00
Caleb Cartwright
c294b12f42 fix: GitHub Package Json test (#7198)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-29 02:19:31 +00:00
Caleb Cartwright
e4e7b09009 Add a render helper for downloads badges, run [amo ansible apm chromewebstore clojars conda crates docker dub eclipse gem githubdownloads] (#7163)
* refactor: add render helper for downloads badges

* refactor: use new helper in some download badge classes

* doc renderer function

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-26 23:19:20 +00:00
chris48s
a8214b74cf fix [github] release/tag/download schema (#7170)
closes #7169
2021-10-18 19:20:25 -05:00
Caleb Cartwright
bfc2f96dc0 support using release or tag name in [GitHub] Release version badge (#7075)
* feat: support using release or tag name in GitHubRelease version badge

* add comment to query param test

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-14 22:41:27 +00:00
chris48s
0ce98396d7 remove [github] admin routes (#7105) 2021-10-05 17:17:26 +01:00
Caleb Cartwright
42a9ca6444 feat: add 2021 support to GitHub Hacktoberfest (#7086)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-04 15:00:14 +00:00
Pierre-Yves B
ca63f21113 Stop attempting to override Accept header in [GitHub] API provider (#7013) 2021-09-12 20:48:23 +01:00
chris48s
042ae1c45f update branch in [githublernajson] test (#7012)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-09-12 18:17:58 +00:00
Caleb Cartwright
76ca283775 refactor(GitHubCommitActivity): switch to v4/GraphQL API (#6959)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-08-29 17:59:36 +00:00
chris48s
45a9c90782 Revert "prefer release.name in [Github] release badge (#6879)" (#6880)
This reverts commit a4c93c56e7.
2021-08-10 07:48:27 -05:00