emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/zuul ef4dba22c6 11/17: Increase anonymity


From: ELPA Syncer
Subject: [elpa] externals/zuul ef4dba22c6 11/17: Increase anonymity
Date: Tue, 30 Aug 2022 11:58:25 -0400 (EDT)

branch: externals/zuul
commit ef4dba22c6de7a0f5cacb2a89a5f0cb120e26319
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Increase anonymity
---
 notes.org | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/notes.org b/notes.org
index 34aa58d165..a013454e9d 100644
--- a/notes.org
+++ b/notes.org
@@ -142,12 +142,20 @@ Add functions used to =anonymize= data.
         (insert command)
         (unpackaged/lorem-ipsum-overlay t)
         (buffer-string))))
+
+  (defun zuul-anonymize-playbook-name (data)
+    (with-temp-buffer
+      (insert (let-alist (plist-get data ':playbook)
+                .playbook))
+      (unpackaged/lorem-ipsum-overlay t)
+      (buffer-string)))
 #+end_src
 
 Add =advices= around functions that could be sensitive.
 
 #+begin_src elisp :results none
   (advice-add 'zuul--data-host-cmd-str :override #'zuul-anonymize-task-command)
+  (advice-add 'zuul--data-playbook-name-str :override 
#'zuul-anonymize-playbook-name)
   (advice-add 'url-insert-file-contents :around 
#'zuul-anonymize-silence-messages)
   (advice-add 'compile-goto-error :around #'zuul-anonymize-silence-messages)
   (advice-add 'compile-goto-error :after #'zuul-anonymize-buffer)
@@ -160,6 +168,7 @@ Remove advices and settings to restore original behavior.
 
 #+begin_src elisp :results none
   (advice-remove 'zuul--data-host-cmd-str #'zuul-anonymize-task-command)
+  (advice-remove 'zuul--data-playbook-name-str #'zuul-anonymize-playbook-name)
   (advice-remove 'url-insert-file-contents #'zuul-anonymize-silence-messages)
   (advice-remove 'compile-goto-error #'zuul-anonymize-silence-messages)
   (advice-remove 'compile-goto-error #'zuul-anonymize-buffer)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]