Skip to content

Commit

Permalink
Merge pull request #1 from Nullify-Platform/installation-id-commit-co…
Browse files Browse the repository at this point in the history
…mment-issue-comment-issues-payloads

added changes for installation id struct
  • Loading branch information
tim-thacker-nullify authored Jul 13, 2023
2 parents 5f67a8f + cb6399f commit e990e35
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci-require-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Require labels to be added to a PR before merging
# This is configured as a branch protection setting
name: CI Require Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
merge_group:
run-name: CI Require Labels ${{ github.sha }} by @${{ github.actor }}
jobs:
require-labels:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
outputs:
status: ${{ steps.require-labels.outputs.status }}
steps:
- uses: actions/checkout@v3
- name: Require Labels
id: require-labels
uses: nullify-platform/github-actions/actions/require-labels@main
13 changes: 11 additions & 2 deletions github/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@ type CommitCommentPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation struct {
ID int64 `json:"id"`
} `json:"installation"`
}

// CreatePayload contains the information for GitHub's create hook event
Expand Down Expand Up @@ -2117,6 +2120,9 @@ type IssueCommentPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation struct {
ID int64 `json:"id"`
} `json:"installation"`
}

// IssuesPayload contains the information for GitHub's issues hook event
Expand Down Expand Up @@ -2289,8 +2295,11 @@ type IssuesPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Assignee *Assignee `json:"assignee"`
Label *Label `json:"label"`
Assignee *Assignee `json:"assignee"`
Label *Label `json:"label"`
Installation struct {
ID int64 `json:"id"`
} `json:"installation"`
}

// LabelPayload contains the information for GitHub's label hook event
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/go-playground/webhooks/v6
module github.com/nullify-platform/webhooks

go 1.15

Expand Down

0 comments on commit e990e35

Please sign in to comment.