Skip to content

Commit

Permalink
print github_context
Browse files Browse the repository at this point in the history
  • Loading branch information
amenocal committed Jul 23, 2024
1 parent e15da89 commit c6854f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ func UploadAssetViaURL(uploadURL string, asset *github.ReleaseAsset) error {
func WriteToIssue(issueNumber int, comment string) error {
//client := newGHRestClient(viper.GetString("TARGET_TOKEN"), "")

ctx := context.WithValue(context.Background(), github.SleepUntilPrimaryRateLimitResetWhenRateLimited, true)
fmt.Printf("context: %v", ctx)
//ctx := context.WithValue(context.Background(), github.SleepUntilPrimaryRateLimitResetWhenRateLimited, true)
fmt.Printf("github context: %v", os.Getenv("GITHUB_CONTEXT"))
fmt.Printf("comment: %v", comment)
//_, _, err := client.Issues.CreateComment(ctx, viper.Get("TARGET_ORGANIZATION").(string), viper.Get("REPOSITORY").(string), issueNumber, &github.IssueComment{Body: &comment})
// if err != nil {
Expand Down

0 comments on commit c6854f2

Please sign in to comment.