Closed Nimbly8836 closed 3 months ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
The recent updates introduce a GitHub Actions workflow to automate packaging and releasing processes, update the version in package.json
, and modify the PuppetWechat4u
class to improve handling of emoticon and image messages. Additionally, a utility for mapping MIME types to file extensions is added, streamlining file handling within the project.
Files | Change Summary |
---|---|
.github/workflows/pack.yml | Added a workflow for automating packaging and release processes on tag pushes matching 'v..*'. |
package.json | Updated the version of "wechaty-puppet-wechat4u" from "1.14.14" to "1.14.16". |
src/puppet-wechat4u.ts | Commented out parseEmotionMessagePayload , added getExtensionFromMimeType , and updated message handling logic. |
src/wechat4u/utils/mim-to-extension.ts | Introduced a utility for mapping MIME types to file extensions and retrieving extensions based on MIME type. |
sequenceDiagram
participant Developer
participant GitHub
participant GitHub Actions
participant Node.js
participant Test Runner
participant GitHub Release
Developer->>GitHub: Push tag v1.14.16
GitHub->>GitHub Actions: Trigger "Package and Release" workflow
GitHub Actions->>Node.js: Set up environment
GitHub Actions->>Node.js: Install dependencies
GitHub Actions->>Test Runner: Run tests
Test Runner-->>GitHub Actions: Report test results
GitHub Actions->>GitHub Release: Create release and upload assets
In the land of code, where changes bloom,
A workflow dances, dispelling gloom.
With tags and tests, it takes its flight,
To package and release in the night.
MIME types now find their place,
Extensions match with elegant grace.
Version bumped, the journey anew,
A rabbit's joy in code so true. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Subject: Please Ignore the Pull Request
Dear [Repository Owner/Team],
I hope this message finds you well.
I accidentally made a pull request to your repository after forking and making some modifications. It was an error on my part, and I kindly ask you to ignore this pull request. I apologize for any inconvenience this may have caused.
Thank you for your understanding.
Best regards
Summary by CodeRabbit
New Features
Improvements
Summary:
This PR updates workflows, refactors code for message handling, and introduces a utility for MIME type to file extension mapping, alongside a version bump.
Key points:
.github/workflows/npm.yml
.github/workflows/pack.yml
for handling package and release on tag pushpackage.json
version to1.14.16
src/puppet-wechat4u.ts
:src/wechat4u/utils/mim-to-extension.ts
for mapping MIME types to file extensionsGenerated with :heart: by ellipsis.dev