githubsetup

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package githubsetup creates Codog-compatible GitHub Actions setup reports.

Index

Constants

View Source
const (
	DefaultSecretName = "ANTHROPIC_API_KEY"
	DocsURL           = "https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Workspace  string
	SecretName string
	Workflows  []string
	Force      bool
	DryRun     bool
}

type Report

type Report struct {
	Kind         string         `json:"kind"`
	Action       string         `json:"action"`
	Status       string         `json:"status"`
	Workspace    string         `json:"workspace"`
	Repo         string         `json:"repo,omitempty"`
	SecretName   string         `json:"secret_name"`
	DryRun       bool           `json:"dry_run"`
	DocsURL      string         `json:"docs_url"`
	Workflows    []WorkflowFile `json:"workflows"`
	Instructions []string       `json:"instructions"`
	Warnings     []string       `json:"warnings,omitempty"`
}

func Setup

func Setup(opts Options) (Report, error)

type WorkflowFile

type WorkflowFile struct {
	Name        string `json:"name"`
	Path        string `json:"path"`
	Exists      bool   `json:"exists"`
	Created     bool   `json:"created"`
	Overwritten bool   `json:"overwritten"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL