Skip to content
Draft
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

![Commit history tracking](images/highlight-3.jpg)

4. Optionally back up GitHub Issues alongside code: independent metadata Git history, safe offline browsing, comments/timeline, and verified snapshot export. Enable it per source; attachments remain links only. See [Issues backup guide](docs/issues-backup.md).

## Quick start

1. Set a secret used to encrypt tokens:
Expand Down
6 changes: 3 additions & 3 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ managed:
- file_option: go_package_prefix
value: github.com/ImSingee/git-plus/pkg/rpc
plugins:
- remote: buf.build/protocolbuffers/go
- remote: buf.build/protocolbuffers/go:v1.36.11
out: pkg/rpc
opt:
- paths=source_relative
- remote: buf.build/connectrpc/go
- remote: buf.build/connectrpc/go:v1.19.1
out: pkg/rpc
opt:
- paths=source_relative
- remote: buf.build/bufbuild/es
- remote: buf.build/bufbuild/es:v2.11.0
out: frontend/src/rpc
include_imports: true
opt:
Expand Down
32 changes: 32 additions & 0 deletions db/migrations/20261015140526_wakeful_lake/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
CREATE TABLE `issue_sync_state` (
`repo_id` integer PRIMARY KEY,
`status` text DEFAULT 'idle' NOT NULL,
`latest_commit` text DEFAULT '' NOT NULL,
`issues_since` text DEFAULT '' NOT NULL,
`comments_since` text DEFAULT '' NOT NULL,
`last_successful_at` text DEFAULT '' NOT NULL,
`last_full_reconcile_at` text DEFAULT '' NOT NULL,
`last_error` text DEFAULT '' NOT NULL,
`issue_count` integer DEFAULT 0 NOT NULL,
`comment_count` integer DEFAULT 0 NOT NULL,
`updated_at` text NOT NULL,
CONSTRAINT `fk_issue_sync_state_repo_id_repos_id_fk` FOREIGN KEY (`repo_id`) REFERENCES `repos`(`id`) ON DELETE CASCADE
);
--> statement-breakpoint
CREATE TABLE `issues_current` (
`repo_id` integer NOT NULL,
`issue_id` text NOT NULL,
`number` integer NOT NULL,
`title` text NOT NULL,
`state` text NOT NULL,
`author_login` text NOT NULL,
`updated_at` text NOT NULL,
`availability` text NOT NULL,
`labels_json` text DEFAULT '[]' NOT NULL,
`assignees_json` text DEFAULT '[]' NOT NULL,
CONSTRAINT `fk_issues_current_repo_id_repos_id_fk` FOREIGN KEY (`repo_id`) REFERENCES `repos`(`id`) ON DELETE CASCADE
);
--> statement-breakpoint
CREATE UNIQUE INDEX `issues_current_repo_issue_unique` ON `issues_current` (`repo_id`,`issue_id`);--> statement-breakpoint
CREATE INDEX `issues_current_repo_number_idx` ON `issues_current` (`repo_id`,`number`);--> statement-breakpoint
CREATE INDEX `issues_current_repo_state_idx` ON `issues_current` (`repo_id`,`state`);
Loading
Loading