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 c391f24  fix syntax error in PR Automation
c391f24 is described below

commit c391f2442b1fcca6ee2a4c5457693251142d645c
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Thu Jun 26 14:42:43 2025 +0200

    fix syntax error in PR Automation
---
 .github/workflows/pr-automation.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/pr-automation.yml 
b/.github/workflows/pr-automation.yml
index 4ae4413..053780f 100644
--- a/.github/workflows/pr-automation.yml
+++ b/.github/workflows/pr-automation.yml
@@ -78,9 +78,9 @@ jobs:
                 repo: context.repo.repo,
                 issue_number: context.issue.number,
                 body: '@' + context.payload.pull_request.merged_by.login +
-                ' The PR can't be associated to a milestone, because there is 
no open milestone. Please create a new milestone before merge.'
+                ' The PR can\'t be associated to a milestone, because there is 
no open milestone. Please create a new milestone before merge.'
               });
-              throw new Error('The PR can't be associated to a milestone, 
because there is no open milestone. Please create a new milestone before 
merge.')
+              throw new Error('The PR can\'t be associated to a milestone, 
because there is no open milestone. Please create a new milestone before 
merge.')
             }
 
             var milestone;
@@ -92,9 +92,9 @@ jobs:
                   repo: context.repo.repo,
                   issue_number: context.issue.number,
                   body: '@' + context.payload.pull_request.merged_by.login +
-                  ' The PR can't be associated to a milestone, because there 
are multiple open milestones. Please add the text "branch: ' + branch + '" to 
the description to the milestone where this PR belongs to.'
+                  ' The PR can\'t be associated to a milestone, because there 
are multiple open milestones. Please add the text "branch: ' + branch + '" to 
the description to the milestone where this PR belongs to.'
                 });
-                throw new Error('The PR can't be associated to a milestone, 
because there are multiple open milestones. Please add the text "branch: ' + 
branch + '" to the description to the milestone where this PR belongs to.');
+                throw new Error('The PR can\'t be associated to a milestone, 
because there are multiple open milestones. Please add the text "branch: ' + 
branch + '" to the description to the milestone where this PR belongs to.');
               }
             } else {
               milestone = milestones.data[0];

Reply via email to