Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
a843fccf
Commit
a843fccf
authored
6 years ago
by
Evan Read
Browse files
Options
Downloads
Patches
Plain Diff
Continue addressing review feedback
parent
9ca5909d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/api/award_emoji.md
+42
-42
42 additions, 42 deletions
doc/api/award_emoji.md
doc/user/award_emojis.md
+2
-3
2 additions, 3 deletions
doc/user/award_emojis.md
with
44 additions
and
45 deletions
doc/api/award_emoji.md
+
42
−
42
View file @
a843fccf
...
...
@@ -28,10 +28,10 @@ GET /projects/:id/snippets/:snippet_id/award_emoji
Parameters:
| Attribute | Type | Required | Description
|
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable.
|
| Attribute | Type | Required | Description |
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable. |
Example request:
...
...
@@ -90,11 +90,11 @@ GET /projects/:id/snippets/:snippet_id/award_emoji/:award_id
Parameters:
| Attribute | Type | Required | Description
|
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable.
|
|
`award_id`
| integer | yes | ID of the award emoji.
|
| Attribute | Type | Required | Description |
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable. |
|
`award_id`
| integer | yes | ID of the award emoji. |
Example request:
...
...
@@ -135,11 +135,11 @@ POST /projects/:id/snippets/:snippet_id/award_emoji
Parameters:
| Attribute | Type | Required | Description
|
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable.
|
|
`name`
| string | yes | Name of the emoji without colons.
|
| Attribute | Type | Required | Description |
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable. |
|
`name`
| string | yes | Name of the emoji without colons. |
```
sh
curl
--request
POST
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/projects/1/issues/80/award_emoji?name
=
blowfish
...
...
@@ -181,11 +181,11 @@ DELETE /projects/:id/snippets/:snippet_id/award_emoji/:award_id
Parameters:
| Attribute | Type | Required | Description
|
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable.
|
|
`award_id`
| integer | yes | ID of an award emoji.
|
| Attribute | Type | Required | Description |
|:---------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`awardable_id`
| integer | yes | ID (
`iid`
for merge requests/issues,
`id`
for snippets) of an awardable. |
|
`award_id`
| integer | yes | ID of an award emoji. |
```
sh
curl
--request
DELETE
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/projects/1/issues/80/award_emoji/344
...
...
@@ -209,11 +209,11 @@ GET /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji
Parameters:
| Attribute | Type | Required | Description
|
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue.
|
|
`note_id`
| integer | yes | ID of a comment (note).
|
| Attribute | Type | Required | Description |
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue. |
|
`note_id`
| integer | yes | ID of a comment (note). |
Example request:
...
...
@@ -254,12 +254,12 @@ GET /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji/:award_id
Parameters:
| Attribute | Type | Required | Description
|
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue.
|
|
`note_id`
| integer | yes | ID of a comment (note).
|
|
`award_id`
| integer | yes | ID of the award emoji.
|
| Attribute | Type | Required | Description |
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue. |
|
`note_id`
| integer | yes | ID of a comment (note). |
|
`award_id`
| integer | yes | ID of the award emoji. |
Example request:
...
...
@@ -298,12 +298,12 @@ POST /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji
Parameters:
| Attribute | Type | Required | Description
|
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue.
|
|
`note_id`
| integer | yes | ID of a comment (note).
|
|
`name`
| string | yes | Name of the emoji without colons.
|
| Attribute | Type | Required | Description |
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue. |
|
`note_id`
| integer | yes | ID of a comment (note). |
|
`name`
| string | yes | Name of the emoji without colons. |
Example request:
...
...
@@ -345,12 +345,12 @@ DELETE /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji/:award_id
Parameters:
| Attribute | Type | Required | Description
|
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------
--------------------------------
|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue.
|
|
`note_id`
| integer | yes | ID of a comment (note).
|
|
`award_id`
| integer | yes | ID of an award_emoji.
|
| Attribute | Type | Required | Description |
|:------------|:---------------|:---------|:-----------------------------------------------------------------------------|
|
`id`
| integer/string | yes | ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
. |
|
`issue_iid`
| integer | yes | Internal ID of an issue. |
|
`note_id`
| integer | yes | ID of a comment (note). |
|
`award_id`
| integer | yes | ID of an award_emoji. |
Example request:
...
...
This diff is collapsed.
Click to expand it.
doc/user/award_emojis.md
+
2
−
3
View file @
a843fccf
...
...
@@ -7,13 +7,12 @@
When you're collaborating online, you get fewer opportunities for high-fives
and thumbs-ups. Emoji can be awarded to
[
issues
](
project/issues/index.md
)
,
[
merge requests
](
project/merge_requests/index.md
)
,
[
snippets
](
snippets.md
)
, and
virtually everywhere
where you can have a discussion.
[
snippets
](
snippets.md
)
, and
any
where you can have a discussion.

Award emoji make it much easier to give and receive feedback without a long
comment thread. Comments that are only emoji will automatically become
award emoji.
comment thread.
For information on the relevant API, see
[
Award Emoji API
](
../api/award_emoji.md
)
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment