Skip to content

Commit

Permalink
feat(cmd/ci): make lstn ci run also on GitHub events different that p…
Browse files Browse the repository at this point in the history
…ull_request

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
  • Loading branch information
leodido committed Jul 30, 2024
1 parent 3a7bcc7 commit 178afa5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/ci/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ This command requires a listen.dev pro account.`,
io := c.Context().Value(pkgcontext.IOStreamsKey).(*iostreams.IOStreams)
cs := io.ColorScheme()

if !info.IsGitHubPullRequest() {
c.PrintErrln(cs.WarningIcon(), "lstn ci only runs on GitHub pull requests at the moment")

return nil
}
// Block when running on fork pull requests
if info.HasReadOnlyGitHubToken() {
c.PrintErrln(cs.WarningIcon(), "lstn ci doesn not run on fork pull requests at the moment")
Expand Down

0 comments on commit 178afa5

Please sign in to comment.