Commit d92ef1f4 authored by tom's avatar tom

[skip ci] label released issues workflow: don't override release tag if it exists

parent 9c4c16ac
...@@ -57,7 +57,7 @@ jobs: ...@@ -57,7 +57,7 @@ jobs:
outputs: outputs:
issues: ${{ steps.linked_issues.outputs.result }} issues: ${{ steps.linked_issues.outputs.result }}
steps: steps:
- name: Getting tags of the two latestest releases - name: Getting tags of the two latest releases
id: tags id: tags
uses: actions/github-script@v7 uses: actions/github-script@v7
env: env:
...@@ -189,9 +189,14 @@ jobs: ...@@ -189,9 +189,14 @@ jobs:
merged merged
closingIssuesReferences(first: 10) { closingIssuesReferences(first: 10) {
nodes { nodes {
number number
title title
closed closed
labels(first: 5) {
nodes {
description
}
}
} }
} }
} }
...@@ -215,6 +220,7 @@ jobs: ...@@ -215,6 +220,7 @@ jobs:
const issues = associatedPullRequests const issues = associatedPullRequests
.nodes .nodes
.filter(({ closingIssuesReferences: { nodes: issues } }) => !issues?.some(({ labels }) => labels?.nodes?.some(({ description }) => description.toLowerCase().startsWith('release'))))
.map(({ closingIssuesReferences: { nodes: issues } }) => issues.map(({ number }) => number)) .map(({ closingIssuesReferences: { nodes: issues } }) => issues.map(({ number }) => number))
.flat(); .flat();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment