Closed megasanjay closed 1 month ago
Thank you for submitting this pull request! We appreciate your contribution to the project. Before we can merge it, we need to review the changes you've made to ensure they align with our code standards and meet the requirements of the project. We'll get back to you as soon as we can with feedback. Thanks again!
This pull request implements several bug fixes and improvements to the Zenodo workflow, focusing on error handling, data consistency, and user interface enhancements. The changes span across multiple files in the bot and UI components of the application.
sequenceDiagram
actor User
participant App
participant DB as Database
participant Console
User->>App: Open pull request
App->>DB: Check installation action count
alt Action count > 0
App->>Console: Log "Action limit still applied, ignoring..."
App-->>User: Return
end
App->>DB: Update licenseRequest
alt Update fails
App->>Console: Log "Error updating the license request PR URL"
App-->>User: Return
else Update succeeds
App->>Console: Log "License PR badge added to the issue body"
App->>App: Append license PR badge to issue body
end
App->>DB: Update codeMetadata
alt Update fails
App->>Console: Log "Error updating the code metadata PR URL"
App-->>User: Return
else Update succeeds
App->>App: Append metadata PR badge to issue body
end
App->>App: Update issue with new body
App-->>User: Issue updated
classDiagram
class DB {
+updateLicenseRequest(data)
+updateCodeMetadata(data)
+findUniqueCodeMetadata(repository_id)
}
class App {
+handlePullRequestOpened()
+handlePullRequestClosed()
}
DB <|-- App : uses
class Console {
+info(message)
+error(message)
}
App <|-- Console : logs
class Context {
+payload
+octokit
}
App <|-- Context : uses
class Issue {
+createIssue(owner, repository, title, body)
}
App <|-- Issue : updates
Change | Details | Files |
---|---|---|
Improved error handling and logging in the bot's pull request handling |
|
bot/index.js |
Enhanced the pull request closed event handler |
|
bot/index.js |
Updated metadata handling in the bot |
|
bot/metadata/index.js |
Enhanced the code metadata UI page |
|
ui/pages/add/code-metadata/[identifier].vue |
Updated the Zenodo release page in the UI |
|
ui/pages/dashboard/[owner]/[repo]/release/zenodo.vue |
Fixed typos and improved error handling in utility functions |
|
bot/utils/renderer/index.js bot/archival/index.js |
Removed sensitive data from API response |
|
ui/server/api/[owner]/[repo]/release/zenodo/index.get.ts |
Thanks for making updates to your pull request. Our team will take a look and provide feedback as soon as possible. Please wait for any GitHub Actions to complete before editing your pull request. If you have any additional questions or concerns, feel free to let us know. Thank you for your contributions!
Thanks for closing this pull request! If you have any further questions, please feel free to open a new issue. We are always happy to help!
Summary by Sourcery
Fix issues in the Zenodo workflow by correcting conditional checks and database update logic. Enhance logging and metadata handling to improve process transparency and reliability.
Bug Fixes:
Enhancements: