Skip to content

Commit

Permalink
chore: add changelog for di
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Sep 9, 2024
1 parent 0634cf2 commit 1c820a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/ci-github-release/src/github-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ export async function githubRelease<
throw new Error("No semver tags found");
}

const { releaseCount = 1 } = changelogOpts;
if (releaseCount !== 0) {
gitRawCommitsOpts = { from: tags[releaseCount], ...gitRawCommitsOpts };
if (changelogOpts.releaseCount) {
gitRawCommitsOpts = {
from: tags[changelogOpts.releaseCount],
...gitRawCommitsOpts,
};
}

gitRawCommitsOpts.to = gitRawCommitsOpts.to || tags[0];
Expand Down
4 changes: 4 additions & 0 deletions packages/di/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const logger = provider.getService(Logger);
logger.log("Hello world!");
```

## Changelog

All notable changes to this project will be documented in the [CHANGELOG](./CHANGELOG.md) file.

## License

This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.

0 comments on commit 1c820a0

Please sign in to comment.