generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
published_at
being set even if published: true
already set
Fixes #310 Prevent setting `published_at` when `published: true` is already set. * **src/functions.ts** - Update `updateZennMetadata` to exclude `published_at` when `published: true`. - Add a check to skip updating `published_at` if `published: true` is already set. * **src/__tests__/main.test.ts** - Add a test to verify `published_at` is not set when `published: true`. - Update existing test to include `published: true` and verify `published_at` is updated only when `published: false`. * **.devcontainer.json** - Add a devcontainer configuration file with a test task. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/korosuke613/zenn-metadata-updater-action/issues/310?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
72d7956
commit 44005ef
Showing
3 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"tasks": { | ||
"test": "npm run test" | ||
} | ||
} |
This file contains 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
This file contains 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