pipelines-as-code icon indicating copy to clipboard operation
pipelines-as-code copied to clipboard

tkn pac info install simply doesn't work

Open chmouel opened this issue 8 months ago • 2 comments

% tkn pac info install Pipelines as Code: Install Version: devel Install Namespace: pipelines-as-code

Github Application: Name: URL: HomePage: Description: Error: template: Describe Repository:11:18: executing "Describe Repository" at <.Info.App.CreatedAt.Format>: error calling Format: runtime error: invalid memory address or nil pointer dereference

chmouel avatar Nov 14 '23 10:11 chmouel

I see its working for me

$ tkn pac info install
Pipelines as Code:
 Install Version: devel
 Install Namespace: pipelines-as-code

Github Application:
 Name: testgitopspr
 URL: https://github.com/apps/testgitopspr
 HomePage: https://hook.pipelinesascode.com/PCoifdgYPYpS
 Description: Pipeline as Code Application
 Created: Tue, 14 Nov 2023
 Installations Count: 1
 Webhook URL: https://hook.pipelinesascode.com/PCoifdgYPYpS

No repos CR installed on Cluster

rkn pac version is

$ tkn pac version
0.19.6

savitaashture avatar Nov 14 '23 10:11 savitaashture

yeah I should have say it crashes when using it with GHE, but:

  1. it should not crash
  2. we should add a flag to query app information on a ghe url endpoint
  3. instead of crashing offer to the user to use the flag to set url (no interactiveness just an error message)

you should not leak your hook.pac.com url to the public

chmouel avatar Nov 14 '23 10:11 chmouel