Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fine-fans-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ryanatkn/fuz_gitops': minor
---

rework some interfaces
25 changes: 14 additions & 11 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,14 @@ conflicts on git commits and changeset files.
```ts
// gitops.config.ts
export default {
repos: ["https://github.com/owner/repo", {
repo_url: "...",
repo_dir: "...",
branch: "main",
}],
repos: [
'https://github.com/owner/repo',
{
repo_url: '...',
repo_dir: '...',
branch: 'main',
},
],
};
```

Expand Down Expand Up @@ -321,15 +324,15 @@ utilities) while preventing runtime dependency issues.

```ts
interface Repo extends Pkg {
check_runs: GithubCheckRunsItem | null;
pull_requests: Array<GithubPullRequest> | null;
check_runs: GithubCheckRunsItem | null;
pull_requests: Array<GithubPullRequest> | null;
}

interface LocalRepo {
repo_name: string;
repo_dir: string;
repo_url: string;
pkg: Pkg;
repo_name: string;
repo_dir: string;
repo_url: string;
pkg: Pkg;
}
```

Expand Down
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,25 @@ npm i -D @ryanatkn/fuz_gitops
in either `process.env`, a project-local `.env`, or the parent directory at `../.env`
(currently optional to read public repos, but it's recommended regardless,
and you'll need to select options to support private repos)
- re-export the `gro gitops_sync` task by creating `$lib/gitops_sync.task.ts` with
the contents `export * from '@ryanatkn/fuz_gitops/gitops_sync.task.js';`
- re-export the gitops tasks by creating files in `$lib/`:

```ts
// gitops_sync.task.ts
export * from '@ryanatkn/fuz_gitops/gitops_sync.task.js';

// gitops_analyze.task.ts
export * from '@ryanatkn/fuz_gitops/gitops_analyze.task.js';

// gitops_plan.task.ts
export * from '@ryanatkn/fuz_gitops/gitops_plan.task.js';

// gitops_publish.task.ts
export * from '@ryanatkn/fuz_gitops/gitops_publish.task.js';

// gitops_validate.task.ts
export * from '@ryanatkn/fuz_gitops/gitops_validate.task.js';
```

- run `gro gitops_sync` to sync repos and update the local data

## Architecture
Expand Down
37 changes: 29 additions & 8 deletions gitops.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,42 @@ import type {CreateGitopsConfig} from './src/lib/gitops_config.js';
const config: CreateGitopsConfig = () => {
return {
repos: [
// 'https://github.com/ryanatkn/zzz',
// {
// repo_url: 'https://github.com/ryanatkn/zzz',
// branch: 'upgrade-deps',
// },
'https://github.com/ryanatkn/moss',
'https://github.com/ryanatkn/fuz',
'https://github.com/ryanatkn/gro',
'https://github.com/ryanatkn/belt',
'https://github.com/ryanatkn/fuz_template',
'https://github.com/ryanatkn/fuz_blog',
'https://github.com/ryanatkn/fuz_mastodon',
'https://github.com/ryanatkn/fuz_code',
// {
// repo_url: 'https://github.com/ryanatkn/fuz_template',
// branch: 'upgrade-deps',
// },
// {
// repo_url: 'https://github.com/ryanatkn/fuz_blog',
// branch: 'upgrade-deps',
// },
// {
// repo_url: 'https://github.com/ryanatkn/fuz_mastodon',
// branch: 'upgrade-deps',
// },
// {
// repo_url: 'https://github.com/ryanatkn/fuz_code',
// branch: 'upgrade-deps',
// },
{
repo_url: 'https://github.com/ryanatkn/fuz_gitops',
branch: 'migration-scripts',
branch: 'upgrade-deps',
},
'https://github.com/ryanatkn/webdevladder.net',
// 'https://github.com/ryanatkn/ryanatkn.com',
// {
// repo_url: 'https://github.com/ryanatkn/webdevladder.net',
// branch: 'upgrade-deps',
// },
// {
// repo_url: 'https://github.com/ryanatkn/ryanatkn.com',
// branch: 'upgrade-deps',
// },
],
};
};
Expand Down
Loading