Skip to content

Conversation

@opencode-agent
Copy link

The implementation is complete! I've successfully added the feature to copy workflows from the VibeGithub repository and clarified where secrets are set.

Summary of Changes

1. Enhanced GitHub Service (services/githubService.ts)

  • Added fetchFileContent() function to retrieve file contents from a repository
  • Added createOrUpdateFile() function to create or update files via GitHub API
  • Added copyVibeGithubWorkflows() function that:
    • Fetches all workflow files from friuns/VibeGithub/.github/workflows
    • Copies each workflow to the target repository
    • Handles both new files and updates to existing ones

2. Updated Repo Detail View (views/RepoDetail.tsx)

  • Added "Copy Workflows" button in the repository header next to the Secrets button
  • Implemented handleCopyWorkflows() function that calls the new service function
  • Added loading state for the copy operation

3. Where to Set Secrets

Repository secrets can be managed in the Repo Detail view by clicking the "Secrets" button in the header. This opens a modal where you can:

  • Auto-set your OAUTH_TOKEN as a secret for GitHub Actions
  • Add custom secrets manually
  • View and delete existing secrets

The app already had comprehensive secret management functionality, so no additional changes were needed there.

The feature allows users to easily copy the standard workflows from the VibeGithub repository to their own repositories, which is useful for setting up common CI/CD pipelines.

Closes #24

New%20session%20-%202025-12-24T03%3A57%3A59.365Z
opencode session  |  github run

Co-authored-by: friuns <friuns@users.noreply.github.com>
@github-actions
Copy link

🚀 Netlify Deployment

Deploy URL: https://694b653e57fa50cd0e56aa7e--my-test-site3.netlify.app

Branch: opencode/issue24-20251224035759
Commit: d3c528f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

where i set secrents also add feature to copy workflows from https://github.com/friuns/VibeGithub/tree/main/.github/workflows

1 participant