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 FOSS
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
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 FOSS
Commits
24704acc
Commit
24704acc
authored
7 years ago
by
sue445
Browse files
Options
Downloads
Patches
Plain Diff
Expose target_iid in Events API
parent
886b0744
No related branches found
No related tags found
1 merge request
!13247
Expose target_iid in Events API
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelogs/unreleased/13247-api_project_events_target_iid.yml
+4
-0
4 additions, 0 deletions
...gelogs/unreleased/13247-api_project_events_target_iid.yml
doc/api/events.md
+2
-0
2 additions, 0 deletions
doc/api/events.md
lib/api/entities.rb
+1
-1
1 addition, 1 deletion
lib/api/entities.rb
with
7 additions
and
1 deletion
changelogs/unreleased/13247-api_project_events_target_iid.yml
0 → 100644
+
4
−
0
View file @
24704acc
---
title
:
Expose target_iid in Events API
merge_request
:
13247
author
:
sue445
This diff is collapsed.
Click to expand it.
doc/api/events.md
+
2
−
0
View file @
24704acc
...
...
@@ -302,6 +302,7 @@ Example response:
"project_id"
:
1
,
"action_name"
:
"opened"
,
"target_id"
:
160
,
"target_iid"
:
160
,
"target_type"
:
"Issue"
,
"author_id"
:
25
,
"data"
:
null
,
...
...
@@ -322,6 +323,7 @@ Example response:
"project_id"
:
1
,
"action_name"
:
"opened"
,
"target_id"
:
159
,
"target_iid"
:
159
,
"target_type"
:
"Issue"
,
"author_id"
:
21
,
"data"
:
null
,
...
...
This diff is collapsed.
Click to expand it.
lib/api/entities.rb
+
1
−
1
View file @
24704acc
...
...
@@ -483,7 +483,7 @@ class CommitStatus < Grape::Entity
class
Event
<
Grape
::
Entity
expose
:title
,
:project_id
,
:action_name
expose
:target_id
,
:target_type
,
:author_id
expose
:target_id
,
:target_iid
,
:target_type
,
:author_id
expose
:data
,
:target_title
expose
:created_at
expose
:note
,
using:
Entities
::
Note
,
if:
->
(
event
,
options
)
{
event
.
note?
}
...
...
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