This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch v4 in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
The following commit(s) were added to refs/heads/v4 by this push: new a6f293b Fix NPE when milestone doesn't have a description a6f293b is described below commit a6f293b34f39d012256dc3a19f9140f30b1d6c4f Author: Slawomir Jaranowski <s.jaranow...@gmail.com> AuthorDate: Tue Feb 4 07:44:42 2025 +0100 Fix NPE when milestone doesn't have a description fix #133 --- .github/workflows/pr-automation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index aab56a9..5e7b80c 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -103,7 +103,7 @@ jobs: var milestone; if (milestones.data.length > 1) { - milestone = milestones.data.find(({description}) => description.includes('branch: ' + branch)); + milestone = milestones.data.find(({description}) => description?.includes('branch: ' + branch)); if (!milestone) { throw new Error('There are more then oen open milestones ... please add a "branch: ' + branch + '" to description in one milestone'); }