Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit 6452613

Browse files
committed
Regenerated library to pick up latest schema changes
1 parent e4b9640 commit 6452613

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

codegenerator/model/model-data.txt

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3093,6 +3093,11 @@ Properties
30933093
Type = 'string'
30943094
TypeName = 'Created'
30953095
SourceURL = 'http://schemas.taskcluster.net/github/v1/build-list.json#/properties/builds/items/properties/created'
3096+
Property 'eventType' =
3097+
Description = 'Type of Github event that triggered the build (i.e. push, pull_request.opened).'
3098+
Type = 'string'
3099+
TypeName = 'EventType'
3100+
SourceURL = 'http://schemas.taskcluster.net/github/v1/build-list.json#/properties/builds/items/properties/eventType'
30963101
Property 'organization' =
30973102
Description = 'Github organization associated with the build.'
30983103
MaxLength = '100'
@@ -3275,6 +3280,14 @@ Properties
32753280
Type = 'object'
32763281
TypeName = 'Details'
32773282
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-pull-request-message.json#/properties/details'
3283+
Property 'installationId' =
3284+
Description = 'The installation which had an event.
3285+
'
3286+
Maximum = '10000000000'
3287+
Minimum = '0'
3288+
Type = 'integer'
3289+
TypeName = 'InstallationId'
3290+
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-pull-request-message.json#/properties/installationId'
32783291
Property 'organization' =
32793292
Description = 'The GitHub `organization` which had an event.
32803293
'
@@ -3299,7 +3312,7 @@ Properties
32993312
Type HAS NOT BEEN SET!!!
33003313
TypeName = 'Version'
33013314
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-pull-request-message.json#/properties/version'
3302-
Required = '[version organization repository action]'
3315+
Required = '[version organization repository action installationId]'
33033316
Schema = 'http://json-schema.org/draft-04/schema#'
33043317
Title = 'GitHub Pull Request Message'
33053318
Type = 'object'
@@ -3320,6 +3333,14 @@ Properties
33203333
Type = 'object'
33213334
TypeName = 'Details'
33223335
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-push-message.json#/properties/details'
3336+
Property 'installationId' =
3337+
Description = 'The installation which had an event.
3338+
'
3339+
MaxLength = '10000000000'
3340+
MinLength = '0'
3341+
Type = 'integer'
3342+
TypeName = 'InstallationId'
3343+
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-push-message.json#/properties/installationId'
33233344
Property 'organization' =
33243345
Description = 'The GitHub `organization` which had an event.
33253346
'
@@ -3344,7 +3365,7 @@ Properties
33443365
Type HAS NOT BEEN SET!!!
33453366
TypeName = 'Version'
33463367
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-push-message.json#/properties/version'
3347-
Required = '[version organization repository]'
3368+
Required = '[version organization repository installationId]'
33483369
Schema = 'http://json-schema.org/draft-04/schema#'
33493370
Title = 'GitHub Push Message'
33503371
Type = 'object'
@@ -3365,6 +3386,14 @@ Properties
33653386
Type = 'object'
33663387
TypeName = 'Details'
33673388
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-release-message.json#/properties/details'
3389+
Property 'installationId' =
3390+
Description = 'The installation which had an event.
3391+
'
3392+
Maximum = '10000000000'
3393+
Minimum = '0'
3394+
Type = 'integer'
3395+
TypeName = 'InstallationId'
3396+
SourceURL = 'http://schemas.taskcluster.net/github/v1/github-release-message.json#/properties/installationId'
33683397
Property 'organization' =
33693398
Description = 'The GitHub `organization` which had an event.
33703399
'

src/main/java/org/mozilla/taskcluster/client/github/Builds.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ public class BuildsEntry {
1818
*/
1919
public Date created;
2020

21+
/**
22+
* Type of Github event that triggered the build (i.e. push, pull_request.opened).
23+
*
24+
* See http://schemas.taskcluster.net/github/v1/build-list.json#/properties/builds/items/properties/eventType
25+
*/
26+
public String eventType;
27+
2128
/**
2229
* Github organization associated with the build.
2330
*

src/main/java/org/mozilla/taskcluster/client/githubevents/GitHubPullRequestMessage.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ public class GitHubPullRequestMessage {
3232
*/
3333
public Object details;
3434

35+
/**
36+
* The installation which had an event.
37+
*
38+
* Mininum: 0
39+
* Maximum: 10000000000
40+
*
41+
* See http://schemas.taskcluster.net/github/v1/github-pull-request-message.json#/properties/installationId
42+
*/
43+
public int installationId;
44+
3545
/**
3646
* The GitHub `organization` which had an event.
3747
*

src/main/java/org/mozilla/taskcluster/client/githubevents/GitHubPushMessage.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ public class GitHubPushMessage {
1414
*/
1515
public Object details;
1616

17+
/**
18+
* The installation which had an event.
19+
*
20+
* Min length: 0
21+
* Max length: 10000000000
22+
*
23+
* See http://schemas.taskcluster.net/github/v1/github-push-message.json#/properties/installationId
24+
*/
25+
public int installationId;
26+
1727
/**
1828
* The GitHub `organization` which had an event.
1929
*

src/main/java/org/mozilla/taskcluster/client/githubevents/GitHubReleaseMessage.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ public class GitHubReleaseMessage {
1414
*/
1515
public Object details;
1616

17+
/**
18+
* The installation which had an event.
19+
*
20+
* Mininum: 0
21+
* Maximum: 10000000000
22+
*
23+
* See http://schemas.taskcluster.net/github/v1/github-release-message.json#/properties/installationId
24+
*/
25+
public int installationId;
26+
1727
/**
1828
* The GitHub `organization` which had an event.
1929
*

0 commit comments

Comments
 (0)