@@ -158,7 +158,7 @@ func Test_RunWorkflow(t *testing.T) {
158158{
159159name :"successful workflow run" ,
160160mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
161- PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
161+ PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
162162w .WriteHeader (http .StatusNoContent )
163163}),
164164}),
@@ -233,7 +233,7 @@ func Test_RunWorkflow_WithFilename(t *testing.T) {
233233{
234234name :"successful workflow run by filename" ,
235235mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
236- PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
236+ PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
237237w .WriteHeader (http .StatusNoContent )
238238}),
239239}),
@@ -248,7 +248,7 @@ func Test_RunWorkflow_WithFilename(t *testing.T) {
248248{
249249name :"successful workflow run by numeric ID as string" ,
250250mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
251- PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
251+ PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
252252w .WriteHeader (http .StatusNoContent )
253253}),
254254}),
@@ -429,7 +429,7 @@ func Test_ListWorkflowRunArtifacts(t *testing.T) {
429429{
430430name :"successful artifacts listing" ,
431431mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
432- GetReposActionsRunsArtifactsByOwnerByRepoByRunId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
432+ GetReposActionsRunsArtifactsByOwnerByRepoByRunID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
433433artifacts := & github.ArtifactList {
434434TotalCount :github .Ptr (int64 (2 )),
435435Artifacts : []* github.Artifact {
@@ -640,7 +640,7 @@ func Test_DeleteWorkflowRunLogs(t *testing.T) {
640640{
641641name :"successful logs deletion" ,
642642mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
643- DeleteReposActionsRunsLogsByOwnerByRepoByRunId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
643+ DeleteReposActionsRunsLogsByOwnerByRepoByRunID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
644644w .WriteHeader (http .StatusNoContent )
645645}),
646646}),
@@ -721,7 +721,7 @@ func Test_GetWorkflowRunUsage(t *testing.T) {
721721{
722722name :"successful workflow run usage" ,
723723mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
724- GetReposActionsRunsTimingByOwnerByRepoByRunId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
724+ GetReposActionsRunsTimingByOwnerByRepoByRunID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
725725usage := & github.WorkflowRunUsage {
726726Billable :& github.WorkflowRunBillMap {
727727"UBUNTU" :& github.WorkflowRunBill {
@@ -826,7 +826,7 @@ func Test_GetJobLogs(t *testing.T) {
826826{
827827name :"successful single job logs with URL" ,
828828mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
829- GetReposActionsJobsLogsByOwnerByRepoByJobId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
829+ GetReposActionsJobsLogsByOwnerByRepoByJobID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
830830w .Header ().Set ("Location" ,"https://github.com/logs/job/123" )
831831w .WriteHeader (http .StatusFound )
832832}),
@@ -847,7 +847,7 @@ func Test_GetJobLogs(t *testing.T) {
847847{
848848name :"successful failed jobs logs" ,
849849mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
850- GetReposActionsRunsJobsByOwnerByRepoByRunId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
850+ GetReposActionsRunsJobsByOwnerByRepoByRunID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
851851jobs := & github.Jobs {
852852TotalCount :github .Ptr (3 ),
853853Jobs : []* github.WorkflowJob {
@@ -871,7 +871,7 @@ func Test_GetJobLogs(t *testing.T) {
871871w .WriteHeader (http .StatusOK )
872872_ = json .NewEncoder (w ).Encode (jobs )
873873}),
874- GetReposActionsJobsLogsByOwnerByRepoByJobId :http .HandlerFunc (func (w http.ResponseWriter ,r * http.Request ) {
874+ GetReposActionsJobsLogsByOwnerByRepoByJobID :http .HandlerFunc (func (w http.ResponseWriter ,r * http.Request ) {
875875w .Header ().Set ("Location" ,"https://github.com/logs/job/" + r .URL .Path [len (r .URL .Path )- 1 :])
876876w .WriteHeader (http .StatusFound )
877877}),
@@ -898,7 +898,7 @@ func Test_GetJobLogs(t *testing.T) {
898898{
899899name :"no failed jobs found" ,
900900mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
901- GetReposActionsRunsJobsByOwnerByRepoByRunId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
901+ GetReposActionsRunsJobsByOwnerByRepoByRunID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
902902jobs := & github.Jobs {
903903TotalCount :github .Ptr (2 ),
904904Jobs : []* github.WorkflowJob {
@@ -976,7 +976,7 @@ func Test_GetJobLogs(t *testing.T) {
976976{
977977name :"API error when getting single job logs" ,
978978mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
979- GetReposActionsJobsLogsByOwnerByRepoByJobId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
979+ GetReposActionsJobsLogsByOwnerByRepoByJobID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
980980w .WriteHeader (http .StatusNotFound )
981981_ = json .NewEncoder (w ).Encode (map [string ]string {
982982"message" :"Not Found" ,
@@ -993,7 +993,7 @@ func Test_GetJobLogs(t *testing.T) {
993993{
994994name :"API error when listing workflow jobs for failed_only" ,
995995mockedClient :MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
996- GetReposActionsRunsJobsByOwnerByRepoByRunId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
996+ GetReposActionsRunsJobsByOwnerByRepoByRunID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
997997w .WriteHeader (http .StatusNotFound )
998998_ = json .NewEncoder (w ).Encode (map [string ]string {
999999"message" :"Not Found" ,
@@ -1067,7 +1067,7 @@ func Test_GetJobLogs_WithContentReturn(t *testing.T) {
10671067defer testServer .Close ()
10681068
10691069mockedClient := MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
1070- GetReposActionsJobsLogsByOwnerByRepoByJobId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
1070+ GetReposActionsJobsLogsByOwnerByRepoByJobID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
10711071w .Header ().Set ("Location" ,testServer .URL )
10721072w .WriteHeader (http .StatusFound )
10731073}),
@@ -1116,7 +1116,7 @@ func Test_GetJobLogs_WithContentReturnAndTailLines(t *testing.T) {
11161116defer testServer .Close ()
11171117
11181118mockedClient := MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
1119- GetReposActionsJobsLogsByOwnerByRepoByJobId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
1119+ GetReposActionsJobsLogsByOwnerByRepoByJobID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
11201120w .Header ().Set ("Location" ,testServer .URL )
11211121w .WriteHeader (http .StatusFound )
11221122}),
@@ -1165,7 +1165,7 @@ func Test_GetJobLogs_WithContentReturnAndLargeTailLines(t *testing.T) {
11651165defer testServer .Close ()
11661166
11671167mockedClient := MockHTTPClientWithHandlers (map [string ]http.HandlerFunc {
1168- GetReposActionsJobsLogsByOwnerByRepoByJobId :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
1168+ GetReposActionsJobsLogsByOwnerByRepoByJobID :http .HandlerFunc (func (w http.ResponseWriter ,_ * http.Request ) {
11691169w .Header ().Set ("Location" ,testServer .URL )
11701170w .WriteHeader (http .StatusFound )
11711171}),