Add download-attachment-files endpoint to complete Devin API support#4
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Add download-attachment-files endpoint to complete Devin API support#4devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
- Implement download_attachment_files function in devin-api.sh - Add attachment-uuid and attachment-name inputs to action.yml - Update documentation with download-attachment-files examples - Now supports all 19 Devin API endpoints This completes the implementation to support all functionalities described in the Devin API documentation. Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
devin-ai-integration Bot
added a commit
to samfert/BankingMicroservices
that referenced
this pull request
Nov 5, 2025
This workflow demonstrates the complete Devin API file operations including the newly implemented download-attachment-files endpoint. Features demonstrated: - Create Devin session for code analysis - Upload context files to session (upload-files) - Send additional instructions (send-message) - Download analysis deliverables (download-attachment-files) - Update session tags (update-tags) - Save downloaded files as workflow artifacts The workflow provides a practical example of using Devin for automated code analysis with file uploads and downloads, showcasing all file-related API operations in a real-world scenario. Related PR: samfert/DEVIN-GITHUB-ACTIONS#4 Requested by: Sam Fertig (@samfert-codeium) Devin session: https://app.devin.ai/sessions/de834578e708491d9e12a84dffc5d1c0 Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add download-attachment-files endpoint to complete Devin API support
Summary
This PR implements the missing
download-attachment-filesendpoint, completing support for all 19 Devin API endpoints. The action previously supported 18 endpoints; this adds the 19th endpoint for downloading files that were previously uploaded to Devin sessions.Changes:
download_attachment_files()function todevin-api.shthat callsGET /v1/attachments/{uuid}/{name}attachment-uuidandattachment-nametoaction.ymlREADME.mdwith usage examples and input descriptionsThe implementation follows the same pattern as existing endpoints and handles both 200 and 307 (redirect) HTTP responses.
Review & Testing Checklist for Human
upload-filesaction, then try to download it using the newdownload-attachment-filesaction with the returned UUIDechoto save files, which won't work for binary files. Test if there's a better way to handle the downloaded content in GitHub Actions-Lcurl flag correctly follows redirects and captures the file contentTest Plan Recommendation
Notes
curl -s -L, which should follow redirectsLink to Devin run: https://app.devin.ai/sessions/de834578e708491d9e12a84dffc5d1c0
Requested by: Sam Fertig (@samfert-codeium)