This content originally appeared on DEV Community and was authored by ladyofcode
Cobel's Automated Publishing Test
This is a test post created to verify that the automated cross-posting system is working correctly after implementing the improved git-based deletion detection.
What This Tests
- New post creation on both DevTo and Hashnode
- Frontmatter parsing and metadata extraction
- Platform-specific ID storage (dev_to_id and hashnode_id)
-
Git-based deletion detection using
git show --name-status HEAD
- Unpublishing workflow when the post is deleted
Recent Improvements
-
Fixed deletion detection - Now uses
git show --name-status HEAD
instead of complex diff comparisons - Simplified workflow - No more commit comparison, just looks at the latest commit
- Better error handling - More robust git history lookup for unpublishing
- Cleaner logic - Streamlined approach that's easier to debug
Expected Workflow
Publishing:
- ✅ GitHub Actions detects new post
- ✅ DevTo publisher creates new article
- ✅ Hashnode publisher creates new post
- ✅ Frontmatter updated with platform IDs
Unpublishing (when deleted):
- ✅ GitHub Actions detects deleted post via
git show --name-status HEAD
- ✅ Scripts find post in git history using improved logic
- ✅ Scripts extract platform IDs from frontmatter
- ✅ Scripts call unpublish APIs for both platforms
Test Content
Here's some test content to verify everything works:
// Test code block
function testCobelPost() {
console.log("Cobel's test post is working!");
return {
published: true,
platforms: ['devto', 'hashnode'],
deletionDetection: 'git show --name-status HEAD',
status: 'success'
};
}
Conclusion
If you're reading this on DevTo or Hashnode, then Cobel's automated publishing workflow is functioning perfectly! 🎉
The next step will be to delete this post and verify that the unpublishing works correctly with the new git-based detection.
This is an automated test post created to verify the publishing system functionality.
This content originally appeared on DEV Community and was authored by ladyofcode

ladyofcode | Sciencx (2025-09-11T18:42:18+00:00) Cobel’s Automated Publishing Test. Retrieved from https://www.scien.cx/2025/09/11/cobels-automated-publishing-test/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.