[7/7,pre-commit] Add check-news

Message ID 20261102163352.2416793-8-tdevries@suse.de
State New
Headers
Series Move NEWS items to gdb/doc/NEWS-* |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed

Commit Message

Tom de Vries Nov. 2, 2026, 4:33 p.m. UTC
  Add a pre-commit check that regenerates gdb/NEWS.
---
 .pre-commit-config.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
  

Patch

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d6f3eab2fd4..5ac2042c722 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -180,6 +180,18 @@  repos:
         files: *gdb_files
         exclude: *testsuite_files
         require_serial: true
+      - id: &id8 check-news
+        name: *id8
+        language: unsupported_script
+        entry: gdb/doc/gen-news.sh
+        pass_filenames: false
+        files: |
+          (?x)^(
+            gdb/NEWS|
+            gdb/doc/NEWS-.*|
+            gdb/doc/NEWS\.lst|
+            gdb/doc/gen-news\.sh
+          )$
 
 # Local Variables:
 # indent-tabs-mode: nil