* devops: Add ci warning for swizzled docusaurus components
Add new action and workflow that runs on new dependabot PR.
The action checks changes in components of docusaurus-theme-openapi that are swizzled and warns maintainers to review those changes.
For more info see badges/shields#9287
Solves badges/shields#9287
* Fix table formating
* Fix order
* handle missing patch cases
* fix missing fetch in node16
* fix typo
* fix typo
* changed from diff parse to json usage
* fix keys issues
* fix parent dependency version check
* Apply suggestions from code review - Improve description and text format
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* Fix comment table format
* fix type
* Add docusaurus-swizzled-warning to dependabot
* refactor: remove node-fetch and use octokit insted
* improve code readability
* fix type
* change pull_request_target to pull_request
* Improve action log
Change core.debug to core.info so it always shows and not only when in debug.
* Log old and new version
Log old and new versions for the Docusaurus swizzled component changes warning workflow.
---------
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* devops: automate bug report tests
Devs run `npm run badge` often when getting a bug report for shields.io service.
This PR automates this tests so the maintainer can get test results automaticly when getting into a new ticket.
Add test-bug-run-badge.yml workflow for github actions automation.
Will only run if bug has the 'qeustion' label added by bug reporting template. And will only setup enviorment and perform the test if the link provided in the issue is valid and the issue is related to shields.io.
Link to job results is sent as a new comment on the issue.
Resolves#9351
* remove secrets to avoid secret leak
* change stage name
* remove unused id
* delete loads of really important stuff that we definitely need
* v basic MVP smoosh docusaurus PoC into repo
* TODO
* delete more really important stuff
* TODO
* tidyup: use run-s
* don't redirect images used in frontend to raster proxy
* fix routing
* preserve the /endpoint link
* delete the blog (for now)
I would quite like to re-add this at some point
but its not really the top priority thing right now
* content edits
* appease the lint gods
* update danger rules
* remove placeholder
* cypress tests
* dockerhub --> ghcr
* Revert "dockerhub --> ghcr"
This reverts commit ef74cbb26b.
* downgrade lockfile format
* implement defs/BASE_URL
* fix e2e build
* actually fix cypress tests
* always run cypress tests on build
* this never worked
* add command for docusaurus:clear
* delete more code we don't need any more
* update ESLint/prettier config
* delete unsused exports
* documentation updates
* delete a fairly large chunk of our dependency tree
* allow base_url as build arg to Dockerfile
* fixup dockerfile
* work out base url at runtime if not set
doing this at image build time is not the right approach
* remove gatsby monorepo from closebot
* rename HomepageFeatures to homepage-features
* 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>
* constrain auto-close and enforce-dependency-review triggers
we don't need to run these on PR close or when we apply labels, for example
* skip workflows on push to dependabot branch
* use PAT if available else fall back to workflow token
* further constrain pull_request triggers
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* run the core tests on windows
* fix glob with windows path seperator
* always use slash when slicing serviceClass matches
..and add comment explaining why we need to do this
* strip line endings (+ any other whitspace) before base64 encoding
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* 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>
* allow bot to modify PRs
* remove auto-approve logic
* approve bot doesn't approve any more
* only run this workflow for PRs from dependabot
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>