Skip to content

tasks: make robust to accept empty body#5332

Merged
Watson1978 merged 1 commit into
fluent:masterfrom
kenhys:ci-pr-body-abort
Apr 20, 2026
Merged

tasks: make robust to accept empty body#5332
Watson1978 merged 1 commit into
fluent:masterfrom
kenhys:ci-pr-body-abort

Conversation

@kenhys

@kenhys kenhys commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:

In the previous backporter, it assumes that
PR template was filled in pull request body,
but there was a case that it does not satisfy it in practical use case (fix a typo).

It will fix the following error:

  NoMethodError: undefined method 'gsub' for nil (NoMethodError)
            body = pull_request["body"].gsub(/\*\*Which issue\(s\) this PR fixes\*\*: \r\n/,
                                       ^^^^^

Docs Changes:

N/A

Release Note:

N/A

In the previous backporter, it assumes that
PR template was filled in pull request body,
but there was a case that it does not satisfy it in
practical use case (fix a typo).

It will fix the following error:

  NoMethodError: undefined method 'gsub' for nil (NoMethodError)
            body = pull_request["body"].gsub(/\*\*Which issue\(s\) this PR fixes\*\*: \r\n/,
                                       ^^^^^

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys

kenhys commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

e.g. https://github.com/fluent/fluentd/actions/runs/24618312025/job/71984358030 will be fixed in the next try.

@Watson1978 Watson1978 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@Watson1978 Watson1978 merged commit ead4c3d into fluent:master Apr 20, 2026
20 of 21 checks passed
@kenhys kenhys deleted the ci-pr-body-abort branch April 20, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants