diff options
| author | Michael Albinus | 2020-08-25 15:19:11 +0200 |
|---|---|---|
| committer | Michael Albinus | 2020-08-25 16:26:30 +0200 |
| commit | f9754ef74a0afea1ea46e06ec39e09f094152df6 (patch) | |
| tree | 4994b9a3fb6aaa99459cc083a53f2bf5985b1a36 | |
| parent | 36f2f67c96d44c82ce31dafb38cd4e2622a5a372 (diff) | |
| download | emacs-f9754ef74a0afea1ea46e06ec39e09f094152df6.tar.gz emacs-f9754ef74a0afea1ea46e06ec39e09f094152df6.zip | |
* admin/admin.el (reminder-for-release-blocking-bugs): New command.
| -rw-r--r-- | admin/admin.el | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/admin/admin.el b/admin/admin.el index 310cd54e957..728aab8b1ae 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -921,6 +921,51 @@ changes (in a non-trivial way). This function does not check for that." | |||
| 921 | 'help-echo "Mouse-2: visit this definition" | 921 | 'help-echo "Mouse-2: visit this definition" |
| 922 | :type 'cusver-xref))))))) | 922 | :type 'cusver-xref))))))) |
| 923 | 923 | ||
| 924 | |||
| 925 | ;; Reminder message for open release-blocking bugs. This requires the | ||
| 926 | ;; GNU ELPA package `debbugs'. | ||
| 927 | |||
| 928 | (defun reminder-for-release-blocking-bugs (version) | ||
| 929 | "Submit a reminder message for release-blocking bugs of Emacs VERSION." | ||
| 930 | (interactive | ||
| 931 | (list (completing-read | ||
| 932 | "Emacs release: " | ||
| 933 | (mapcar #'identity debbugs-gnu-emacs-blocking-reports) | ||
| 934 | nil t debbugs-gnu-emacs-current-release))) | ||
| 935 | |||
| 936 | (require 'reporter) | ||
| 937 | (require 'debbugs-gnu) | ||
| 938 | |||
| 939 | (when-let ((id (alist-get version debbugs-gnu-emacs-blocking-reports | ||
| 940 | nil nil #'string-equal)) | ||
| 941 | (status-id (debbugs-get-status id)) | ||
| 942 | (blockedby-ids (debbugs-get-attribute (car status-id) 'blockedby)) | ||
| 943 | (blockedby-status | ||
| 944 | (apply #'debbugs-get-status (sort blockedby-ids #'<)))) | ||
| 945 | |||
| 946 | (reporter-submit-bug-report | ||
| 947 | "<emacs-devel@gnu.org>" ; to-address | ||
| 948 | nil nil nil | ||
| 949 | (lambda () ; posthook | ||
| 950 | (goto-char (point-min)) | ||
| 951 | (mail-position-on-field "subject") | ||
| 952 | (insert (format "Release-blocking bugs for Emacs %s" version)) | ||
| 953 | (mail-text) | ||
| 954 | (delete-region (point) (point-max)) | ||
| 955 | (insert " | ||
| 956 | The following bugs are regarded as release-blocking for Emacs " version ". | ||
| 957 | People are encouraged to work on them with priority.\n\n") | ||
| 958 | (dolist (_ blockedby-status) | ||
| 959 | (unless (equal (debbugs-get-attribute _ 'pending) "done") | ||
| 960 | (insert (format "bug#%d %s\n" | ||
| 961 | (debbugs-get-attribute _ 'id) | ||
| 962 | (debbugs-get-attribute _ 'subject))))) | ||
| 963 | (insert " | ||
| 964 | If you use the debbugs package from GNU ELPA, you can apply the | ||
| 965 | following form to see all bugs which block a given release: | ||
| 966 | |||
| 967 | (debbugs-gnu-emacs-release-blocking-reports \"" version "\")\n"))))) | ||
| 968 | |||
| 924 | (provide 'admin) | 969 | (provide 'admin) |
| 925 | 970 | ||
| 926 | ;;; admin.el ends here | 971 | ;;; admin.el ends here |