Skip to content

Comments

Feature/harvesting metadata from a provided repository url via cloning#473

Open
Aidajafarbigloo wants to merge 5 commits intosoftwarepub:developfrom
Aidajafarbigloo:feature/harvesting-metadata-from-a-provided-repository-URL-via-cloning
Open

Feature/harvesting metadata from a provided repository url via cloning#473
Aidajafarbigloo wants to merge 5 commits intosoftwarepub:developfrom
Aidajafarbigloo:feature/harvesting-metadata-from-a-provided-repository-URL-via-cloning

Conversation

@Aidajafarbigloo
Copy link

This feature branch introduces functionality for harvesting metadata from a provided repository URL via cloning.

Changes:

  1. Accept a repository URL as a parameter in the hermes harvest command
  2. Accept a token (for GitHub/GitLab) as a parameter in the hermes harvest command (for the plugin githublab)
  3. Clone the repository locally
  4. Harvest metadata from the cloned repository (CFF and CodeMeta)

Added clone utility functions for repository cloning with error handling and cleanup.
Added new command-line arguments for URL and token in harvest command.
Add temporary directory handling for cloning repositories and update token management.
Added an explicit logging shutdown step before clearing the HERMES caches.
Without shutting down logging first, the `clean` command fails on Windows with:
`An error occurred during execution of clean (Find details in './hermes.log')`
"Original exception was: [WinError 32] The process cannot access the file because it is being used by another process: '.hermes\\audit.log'"
@Aidajafarbigloo
Copy link
Author

@sferenz
Could you please take a look at this pull request and share your feedback?

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.

1 participant