Fix inconsistency in hashtags event name and hook documentation

In the stream events documentation the hashtags changed event is named
"hashtags-changed", but the code was using "hashtags-edited". Update
the code to match the documentation.

In the hooks documentation the example was showing "hashtags-edited".
Correct it.

Change-Id: I84fc51b260c9a3d054ce3f23737e3098bd75a021
This commit is contained in:
David Pursehouse
2014-12-25 11:57:26 +09:00
parent d6d6d880bf
commit 1db6d97d37
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ Called whenever hashtags are added to or removed from a change from the Web UI
or via the REST API.
====
hashtags-edited --change <change id> --change-owner <change owner> --project <project name> --branch <branch> --editor <editor> --added <hashtag> --removed <hashtag> --hashtag <hashtag>
hashtags-changed --change <change id> --change-owner <change owner> --project <project name> --branch <branch> --editor <editor> --added <hashtag> --removed <hashtag> --hashtag <hashtag>
====
The `--added` parameter may be passed multiple times, once for each

View File

@@ -22,7 +22,7 @@ import com.google.gerrit.server.data.AccountAttribute;
import com.google.gerrit.server.data.ChangeAttribute;
public class HashtagsChangedEvent extends ChangeEvent {
public final String type = "hashtags-edited";
public final String type = "hashtags-changed";
public ChangeAttribute change;
public AccountAttribute editor;
public String[] added;