Skip to content

Commit 0fa35fe

Browse files
authored
Deprecate allow issue (#22355)
* Update remove-liquid-statements.js * Update remove-liquid-statements.js * Update remove-liquid-statements.js
1 parent 5678793 commit 0fa35fe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

script/helpers/remove-liquid-statements.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ export default function removeLiquidStatements(content, release, nextOldestRelea
145145
// If the new conditional contains all the currently supported versions, no conditional
146146
// is actually needed, and it can be removed. Any `else` statements and their content should
147147
// also be removed.
148-
const containsAllSupportedVersions = supportedShortVersions.every((v) =>
149-
newCondWithLiquid.includes(v)
148+
const containsAllSupportedVersions = supportedShortVersions.every(
149+
(v) => newCondWithLiquid.includes(v) && !newCondWithLiquid.includes('issue')
150+
// The writers are using "issue" versions for upcoming GHAE releases
150151
)
151152

152153
if (!containsAllSupportedVersions) {

0 commit comments

Comments
 (0)