- write assignee correct
This commit is contained in:
@@ -137,18 +137,18 @@ For advanced usecases additional settings can be provided to the action
|
|||||||
|
|
||||||
Table of supported placeholders allowed to be used in the `template` configuration.
|
Table of supported placeholders allowed to be used in the `template` configuration.
|
||||||
|
|
||||||
| ****Placeholder**** | ****Description**** |
|
| **Placeholder** | **Description** |
|
||||||
|---------------------|-------------------------------------------------------------|
|
|------------------|-------------------------------------------------------------|
|
||||||
| `${{NUMBER}}` | The number referencing this pull request. E.g. 13 |
|
| `${{NUMBER}}` | The number referencing this pull request. E.g. 13 |
|
||||||
| `${{TITLE}}` | Specified title of the merged pull request |
|
| `${{TITLE}}` | Specified title of the merged pull request |
|
||||||
| `${{URL}}` | Url linking to the pull request on GitHub |
|
| `${{URL}}` | Url linking to the pull request on GitHub |
|
||||||
| `${{MERGED_AT}}` | The ISO time, the pull request was merged at |
|
| `${{MERGED_AT}}` | The ISO time, the pull request was merged at |
|
||||||
| `${{AUTHOR}}` | Author creating and opening the pull request |
|
| `${{AUTHOR}}` | Author creating and opening the pull request |
|
||||||
| `${{LABELS}}` | The labels associated with this pull request, joined by `,` |
|
| `${{LABELS}}` | The labels associated with this pull request, joined by `,` |
|
||||||
| `${{MILESTONE}}` | Milestone this PR was part of, as assigned on GitHub |
|
| `${{MILESTONE}}` | Milestone this PR was part of, as assigned on GitHub |
|
||||||
| `${{BODY}}` | Description/Body of the pull request as specified on GitHub |
|
| `${{BODY}}` | Description/Body of the pull request as specified on GitHub |
|
||||||
| `${{ASIGNEES}}` | Login names of assigned GitHub users, joined by `,` |
|
| `${{ASSIGNEES}}` | Login names of assigned GitHub users, joined by `,` |
|
||||||
| `${{REVIEWERS}}` | GitHub Login names of specified reviewers, joined by `,` |
|
| `${{REVIEWERS}}` | GitHub Login names of specified reviewers, joined by `,` |
|
||||||
|
|
||||||
### Template placeholders
|
### Template placeholders
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"pr_template": "${{TITLE}}\n${{NUMBER}}\n${{URL}}\n${{MERGED_AT}}\n${{AUTHOR}}\n${{LABELS}}\n${{MILESTONE}}\n${{BODY}}\n${{ASIGNEES}}\n${{REVIEWERS}}"
|
"pr_template": "${{TITLE}}\n${{NUMBER}}\n${{URL}}\n${{MERGED_AT}}\n${{AUTHOR}}\n${{LABELS}}\n${{MILESTONE}}\n${{BODY}}\n${{ASSIGNEES}}\n${{REVIEWERS}}"
|
||||||
}
|
}
|
||||||
+5
-5
@@ -948,6 +948,7 @@ const pullRequests_1 = __webpack_require__(4217);
|
|||||||
const core = __importStar(__webpack_require__(2186));
|
const core = __importStar(__webpack_require__(2186));
|
||||||
const configuration_1 = __webpack_require__(5527);
|
const configuration_1 = __webpack_require__(5527);
|
||||||
function buildChangelog(prs, config) {
|
function buildChangelog(prs, config) {
|
||||||
|
var _a;
|
||||||
// sort to target order
|
// sort to target order
|
||||||
prs = pullRequests_1.sortPullRequests(prs, (config.sort ? config.sort : configuration_1.DefaultConfiguration.sort).toUpperCase() ===
|
prs = pullRequests_1.sortPullRequests(prs, (config.sort ? config.sort : configuration_1.DefaultConfiguration.sort).toUpperCase() ===
|
||||||
'ASC');
|
'ASC');
|
||||||
@@ -961,10 +962,9 @@ function buildChangelog(prs, config) {
|
|||||||
}
|
}
|
||||||
// bring PRs into the order of categories
|
// bring PRs into the order of categories
|
||||||
const categorized = new Map();
|
const categorized = new Map();
|
||||||
if (config.categories) {
|
const categories = (_a = config.categories) !== null && _a !== void 0 ? _a : configuration_1.DefaultConfiguration.categories;
|
||||||
for (const category of config.categories) {
|
for (const category of categories) {
|
||||||
categorized.set(category, []);
|
categorized.set(category, []);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
const uncategorized = [];
|
const uncategorized = [];
|
||||||
// bring elements in order
|
// bring elements in order
|
||||||
@@ -1019,7 +1019,7 @@ function fillTemplate(pr, template) {
|
|||||||
transformed = transformed.replace('${{LABELS}}', (_b = (_a = pr.labels) === null || _a === void 0 ? void 0 : _a.join(', ')) !== null && _b !== void 0 ? _b : '');
|
transformed = transformed.replace('${{LABELS}}', (_b = (_a = pr.labels) === null || _a === void 0 ? void 0 : _a.join(', ')) !== null && _b !== void 0 ? _b : '');
|
||||||
transformed = transformed.replace('${{MILESTONE}}', (_c = pr.milestone) !== null && _c !== void 0 ? _c : '');
|
transformed = transformed.replace('${{MILESTONE}}', (_c = pr.milestone) !== null && _c !== void 0 ? _c : '');
|
||||||
transformed = transformed.replace('${{BODY}}', pr.body);
|
transformed = transformed.replace('${{BODY}}', pr.body);
|
||||||
transformed = transformed.replace('${{ASIGNEES}}', (_e = (_d = pr.assignees) === null || _d === void 0 ? void 0 : _d.join(', ')) !== null && _e !== void 0 ? _e : '');
|
transformed = transformed.replace('${{ASSIGNEES}}', (_e = (_d = pr.assignees) === null || _d === void 0 ? void 0 : _d.join(', ')) !== null && _e !== void 0 ? _e : '');
|
||||||
transformed = transformed.replace('${{REVIEWERS}}', (_g = (_f = pr.requestedReviewers) === null || _f === void 0 ? void 0 : _f.join(', ')) !== null && _g !== void 0 ? _g : '');
|
transformed = transformed.replace('${{REVIEWERS}}', (_g = (_f = pr.requestedReviewers) === null || _f === void 0 ? void 0 : _f.join(', ')) !== null && _g !== void 0 ? _g : '');
|
||||||
return transformed;
|
return transformed;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -110,7 +110,7 @@ function fillTemplate(pr: PullRequestInfo, template: string): string {
|
|||||||
transformed = transformed.replace('${{MILESTONE}}', pr.milestone ?? '')
|
transformed = transformed.replace('${{MILESTONE}}', pr.milestone ?? '')
|
||||||
transformed = transformed.replace('${{BODY}}', pr.body)
|
transformed = transformed.replace('${{BODY}}', pr.body)
|
||||||
transformed = transformed.replace(
|
transformed = transformed.replace(
|
||||||
'${{ASIGNEES}}',
|
'${{ASSIGNEES}}',
|
||||||
pr.assignees?.join(', ') ?? ''
|
pr.assignees?.join(', ') ?? ''
|
||||||
)
|
)
|
||||||
transformed = transformed.replace(
|
transformed = transformed.replace(
|
||||||
|
|||||||
Reference in New Issue
Block a user