Answers.Body: <p>Indeed... <a href="https://github.com/pixelandtonic/Craft-Release/blob/master/app/models/EntryModel.php#L259" rel="nofollow">EntryModel->revisionNotes</a> is what you're looking for.</p>
  
  <p>Through PHP, that's:</p>
  
  <pre><code>$entry-&gt;revisionNotes
  </code></pre>
  
  <p>Through a template, that's:</p>
  
  <pre><code>{{ entry.revisionNotes }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-19T03:26:34.553Z
Answers.Text: Thanks, Brad. Is there a way to access that through a template tag? I tried variations of {{ entry.getAttribute('revisionNotes') }} without any luck.
Answers.UserDisplayName: Marc Sexton
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-19T03:54:44.657Z
Answers.Text: `{{ entry.revisionNotes }}` should do it.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-17T17:35:18.620Z
Answers.Text: @BradBell I have trouble getting this to work:
  `{% set myEntry = craft.entries.section('myEntries').first %}`
  `{{ myEntry.revisionNotes }}`
  
  Even though the entry in question has a revision note, nothing comes up.
Answers.UserDisplayName: medoingthings
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-24T21:53:16.170Z
Answers.Text: Hi, @BradBell. I know this is five years old and things have most likely changed, but when using your template code, I get this error: Getting write-only property: craft\elements\Entry::revisionNotes. Are revision notes no longer viewable in templates?
Answers.UserDisplayName: John Johnson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-19T02:52:42.190Z
Answers.LastActivityDate: 2015-03-19T04:03:09.330Z
Answers.LastEditDate: 2015-03-19T04:03:09.330Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <p>At least for Craft 3.x, <code>revisionNotes</code> element property is protected and PHPDoc flagged as write-only: <code>@property-write</code>. But you can access the <code>$entry-&gt;revisionNotes</code> using a <a href="https://www.php.net/manual/en/closure.call" rel="nofollow noreferrer">Closure::call</a> or in combination with an <a href="https://www.php.net/manual/en/functions.arrow.php" rel="nofollow noreferrer">arrow function</a></p>
  <p>Closure::call PHP 7.0+</p>
  <pre><code>echo (function() {return $this-&gt;revisionNotes;})-&gt;call($entry);
  </code></pre>
  <p>Arrow Function PHP 7.4+</p>
  <pre><code>echo (fn() =&gt; $this-&gt;revisionNotes)-&gt;call($entry);
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-23T18:12:42.560Z
Answers.LastActivityDate: 2022-05-23T18:18:08.730Z
Answers.LastEditDate: 2022-05-23T18:18:08.730Z
Answers.UserDisplayName: surfalot
Body: <p>I want to use the note that is optional when saving a versioned entry as part of an activity feed -- like a git commit message.</p>
  
  <p>Is there an entry model property for this?</p>
  
Tags: <entrymodel>
Title: Displaying the optional note from a versioned entry
ThreadText: # Displaying the optional note from a versioned entry
  
  (Asked by: username_0 on 2015-03-19)
  
  I want to use the note that is optional when saving a versioned entry as part of an activity feed -- like a git commit message.
  
  Is there an entry model property for this?
  
  **Tags:** entrymodel
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-03-19. Score: 5
  
  Indeed... [EntryModel->revisionNotes](https://github.com/pixelandtonic/Craft-Release/blob/master/app/models/EntryModel.php#L259) is what you're looking for.
  
  Through PHP, that's:
  
  ```
  $entry->revisionNotes
  
  ```
  
  Through a template, that's:
  
  ```
  {{ entry.revisionNotes }}
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks, username_1. Is there a way to access that through a template tag? I tried variations of {{ entry.getAttribute('revisionNotes') }} without any luck.  
  > **username_1**: `{{ entry.revisionNotes }}` should do it.  
  > **username_2**: @username_1 I have trouble getting this to work: `{% set myEntry = craft.entries.section('myEntries').first %}` `{{ myEntry.revisionNotes }}`  Even though the entry in question has a revision note, nothing comes up.  
  > **username_3**: Hi, @username_1. I know this is five years old and things have most likely changed, but when using your template code, I get this error: Getting write-only property: craft\elements\Entry::revisionNotes. Are revision notes no longer viewable in templates?  
  
  ---
  
  ### Answer by username_4 on 2022-05-23. Score: 1
  
  At least for Craft 3.x, `revisionNotes` element property is protected and PHPDoc flagged as write-only: `@property-write`. But you can access the `$entry->revisionNotes` using a [Closure::call](https://www.php.net/manual/en/closure.call) or in combination with an [arrow function](https://www.php.net/manual/en/functions.arrow.php)
  
  Closure::call PHP 7.0+
  
  ```
  echo (function() {return $this->revisionNotes;})->call($entry);
  
  ```
  
  Arrow Function PHP 7.4+
  
  ```
  echo (fn() => $this->revisionNotes)->call($entry);
  
  ```
  
  
  ---
  
  