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

ref: semi-automated removal of unused request #909

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Conversation

coolaj86
Copy link
Member

A mostly automated removal of unused request vars:

  1. Get a list of files referencing request that use github or githubish (which already use fetch)
    rg -F 'github(request' | grep '' | cut -d':' -f1 | sort -u > ref-request.sh
  2. Add replaces to the beginning of each file
    sd -s 'github(request' 'github(null' _example/releases.js
    
    sd -s ' function (request) ' ' function () ' _example/releases.js
    
    sd -s "module.exports(require('@root/request'))" 'module.exports()' _example/releases.js

@coolaj86 coolaj86 changed the title ref: automated removal of unused request ref: smi-automated removal of unused request Oct 14, 2024
@coolaj86 coolaj86 changed the title ref: smi-automated removal of unused request ref: semi-automated removal of unused request Oct 14, 2024
@coolaj86 coolaj86 merged commit f4ec7ca into main Oct 14, 2024
3 checks passed
@coolaj86 coolaj86 deleted the ref-unused-request branch October 14, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants