Skip to content

Commit

Permalink
chore: unify the PR structure and PRTarget structure into the Paths type
Browse files Browse the repository at this point in the history
  • Loading branch information
smorihira committed Sep 6, 2024
1 parent 95ee13f commit b3e57bf
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions hack/actions/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ type (
}

On struct {
Schedule Schedule `yaml:"schedule,omitempty"`
Push Push `yaml:"push"`
PullRequest PullRequest `yaml:"pull_request"`
PullRequestTarget PullRequestTarget `yaml:"pull_request_target"`
Schedule Schedule `yaml:"schedule,omitempty"`
Push Push `yaml:"push"`
PullRequest Paths `yaml:"pull_request"`
PullRequestTarget Paths `yaml:"pull_request_target"`
}

Schedule []struct {
Expand All @@ -79,11 +79,7 @@ type (
Tags []string `yaml:"tags"`
}

PullRequest struct {
Paths []string `yaml:"paths"`
}

PullRequestTarget struct {
Paths struct {
Paths []string `yaml:"paths"`
}

Expand Down

0 comments on commit b3e57bf

Please sign in to comment.