diff --git a/.github/scripts/release_notes_check.py b/.github/scripts/release_notes_check.py index ceb36ca4a..0739f984d 100644 --- a/.github/scripts/release_notes_check.py +++ b/.github/scripts/release_notes_check.py @@ -53,7 +53,7 @@ def ci_check(pr_number, access_token): if release_notes_match: release_notes_text = release_notes_match.group(1).strip() if release_notes_text and release_notes_text != "": - comment = "Pull requests must include at least one of the required labels: `internal` (no release notes required), `highlight`, `enhancement`, `bug`, `deprecation`, `documentation`." + comment = "Pull requests must include at least one of the required labels: `internal` (no release notes required), `highlight`, `enhancement`, `bug`, `deprecation`, `documentation`. Except for `internal`, pull requests must also include a description in the release notes section." pr.create_issue_comment(comment) return False # Pull request has neither a label nor a description diff --git a/.github/workflows/release_notes_check.yaml b/.github/workflows/release_notes_check.yaml index 792697140..38bb167e6 100644 --- a/.github/workflows/release_notes_check.yaml +++ b/.github/workflows/release_notes_check.yaml @@ -6,7 +6,7 @@ on: permissions: contents: read - pull-requests: read + pull-requests: write jobs: ci_check: