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

Clean get_repos() #5

Open
wants to merge 51 commits into
base: dev
Choose a base branch
from
Open

Clean get_repos() #5

wants to merge 51 commits into from

Conversation

hsonne
Copy link
Member

@hsonne hsonne commented May 25, 2021

I did some major cleaning:

  • Almost all URLs are now composed using a compose_url_*() function
  • Almost all tokens are now retrieved using a get*_token() function
  • Helper functions are used to create Markdown or HTML syntax, such as:
    • image_link()
    • named_link()
    • html_img()
    • html_a()
  • Function duplicates were removed! 60ab4c5
  • Function get_repo_infos() was refactored: d636624

I also added new functions:

  • list_files_in_github_repo(): List the files in a GitHub repository
  • get_names_of_r_packages_on_github(): What repositories represent (public/private) R packages?
  • make_github_package_db() Create package database from GitHub packages

This change is Reviewable

hsonne and others added 7 commits May 25, 2021 16:55
- Use inline function endpoint()
- Avoid helper variable "page"
- Use new variable page in while condition
- Rename repo_list to all_repos
- Rename result to repos
- Add comments
@mrustl mrustl changed the base branch from dev-outdated to dev February 25, 2022 11:33
Copy link

gitguardian bot commented Apr 29, 2024

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
2769913 Triggered Generic High Entropy Secret e1b4331 _pkgdown.yml View secret
2769913 Triggered Generic High Entropy Secret e1b4331 _pkgdown.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

- add "section lines" for each function
- improve indentation and spacing
@hsonne hsonne requested a review from mrustl April 29, 2024 18:59
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.

None yet

1 participant