<p>A pull request for <a href="https://github.com/openstreetmap/openstreetmap-website/issues/534" class="issue-link" title="Make /api/.../history also return the changeset comment">#534</a>.</p>
<p>Adds attribute <code>changeset_comment</code> to <code><node></code>/<code><way></code>/<code><relation></code> for <code>/api/0.6/[node|way|relation]/#id</code> and <code>/api/0.6/[node|way|relation]/#id/history</code>.</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/simon04/openstreetmap-website changeset_comment</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/584'>https://github.com/openstreetmap/openstreetmap-website/pull/584</a></p>
<h4>Commit Summary</h4>
<ul>
<li>API: de-duplicate metadata code for n/w/r</li>
<li>API: extract changeset_comment for node/way/rel</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/584/files#diff-0">app/models/node.rb</a>
(50)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/584/files#diff-1">app/models/old_node.rb</a>
(29)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/584/files#diff-2">app/models/old_relation.rb</a>
(28)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/584/files#diff-3">app/models/old_way.rb</a>
(28)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/584/files#diff-4">app/models/relation.rb</a>
(26)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/584/files#diff-5">app/models/way.rb</a>
(26)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/584.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/584.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/584.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/584.diff</a></li>
</ul>