Skip to content

Commit 7e05eb8

Browse files
committed
fix: Update trackers when linked issue is of type Story
1 parent 02f80d7 commit 7e05eb8

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

dist/action.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/action.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,8 @@ async function action(
173173
}
174174

175175
const isSeveritySet = trackerController.adapter.isSeveritySet();
176-
if (
177-
!isSeveritySet &&
178-
trackerController.adapter.issueDetails?.type === 'Story'
179-
) {
176+
const isStoryType = trackerController.adapter.issueDetails?.type === 'Story';
177+
if (!isSeveritySet && isStoryType) {
180178
message.push(
181179
`🟠 Tracker ${trackerController.adapter.getMarkdownUrl()} is missing severity, but it is of type Story`
182180
);
@@ -198,7 +196,11 @@ async function action(
198196
);
199197
}
200198

201-
if (isMatchingProduct && isMatchingComponent && isSeveritySet) {
199+
if (
200+
isMatchingProduct &&
201+
isMatchingComponent &&
202+
(isSeveritySet || isStoryType)
203+
) {
202204
debug(`Linking PR with tracker.`);
203205
const linkMessage = await trackerController.adapter.addLink(
204206
'https://github.com/',

0 commit comments

Comments
 (0)