feat: add attachment upload and delete commands#36
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds CLI and client support for uploading and deleting Confluence page attachments, with accompanying tests and README updates to complete the attachment lifecycle feature requested in #35.
Changes:
- Added
uploadAttachmentanddeleteAttachmentmethods toConfluenceClient(multipart upload + delete endpoint). - Added
attachment-uploadandattachment-deleteCLI commands. - Added unit tests and README documentation; introduced
form-datadependency.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
lib/confluence-client.js |
Implements multipart attachment upload (with X-Atlassian-Token) and attachment delete support in the client. |
bin/confluence.js |
Exposes new attachment upload/delete commands in the CLI. |
tests/confluence-client.test.js |
Adds test coverage for multipart upload behavior, PUT vs POST, and delete endpoint usage. |
package.json |
Adds form-data runtime dependency needed for multipart uploads. |
package-lock.json |
Updates lockfile to include form-data (but currently has a version mismatch vs package.json). |
README.md |
Documents new commands and updates feature list/command table. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 13, 2026
# [1.17.0](v1.16.0...v1.17.0) (2026-02-13) ### Features * add attachment upload and delete commands ([#36](#36)) ([ed62bb4](ed62bb4))
|
🎉 This PR is included in version 1.17.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Pull Request Template
Description
Add attachment upload and delete commands with client support, tests, and documentation. Closes #35.
Type of Change
Testing
Checklist
Screenshots (if applicable)
N/A
Additional Context
Closes #35.