Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bugfix] Some Pull Requests/Issues/CommitBlocks are missing when generating release notes#263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletionslib/src/Gren.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -354,11 +354,14 @@ class Gren {
.filter((tag) => tag && this.options.ignoreTagsWith.every(ignoreTag => !tag.name.match(ignoreTag)))
.map(tag => {
const tagRelease = releases ? releases.filter(release => release.tag_name === tag.name)[0] : false;

const releaseId = tagRelease ? tagRelease.id : null;
const releaseDate = tagRelease ? tagRelease.published_at : null;

return {
tag: tag,
releaseId: releaseId
releaseId: releaseId,
date: releaseDate
};
});

Expand DownExpand Up@@ -1126,7 +1129,7 @@ class Gren {

this._validateRequiredTagsExists(tags, this.options.tags);

const releaseDates = this._sortReleasesByDate(await Promise.all(this._getTagDates(tags)));
const releaseDates = this._sortReleasesByDate(this._transformTagsIntoReleaseObjects(tags));
const selectedTags = (this._getSelectedTags(releaseDates) || (releaseDates.length > 1 ? [releaseDates[0], releaseDates[1]] : releaseDates));

loaded(`Tags found: ${selectedTags.map(({ name }) => name).join(', ')}`);
Expand All@@ -1136,6 +1139,14 @@ class Gren {
);
}

_transformTagsIntoReleaseObjects(tags) {
return tags.map(tag => ({
id: tag.releaseId,
name: tag.tag.name,
date: tag.date
}));
}

/**
* Check that the require tags exist in tags
*
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp