brainiac-fizzy 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1056d8b7b4c49d9d894136c786cdcc06ac9afc2c99a4170c3853ba4fd5e00d6
|
|
4
|
+
data.tar.gz: fc14a297accc9f82468fc31ca9e3fe5ce450d42a3d5445fdda72cadf463862d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9020ce620ad63e672f7649e073e42ac173f2209ade3096b1e155f83bee296b3f54cb5e048da57bee7acba8c2a46e6e215b1d80544f9b65d0f6073a560906a2bc
|
|
7
|
+
data.tar.gz: a871635aa26480877c983cdb352d6267a474cd8e970dbead96881c5f2e45f8b6bf77bc2b58c777dcc6ba64cca4327b21bf2d773c4210371e9733617b4160ba17
|
|
@@ -44,7 +44,7 @@ def handle_card_assigned(payload, board_key: nil)
|
|
|
44
44
|
"creating worktree: #{branch} (model: #{detect_model(project_config, tags: tags) || "default"})"
|
|
45
45
|
|
|
46
46
|
react_to_assignment(card_number, repo_path, assigned_agent)
|
|
47
|
-
worktree_path = setup_assigned_worktree(repo_path, branch, card_internal_id, card_number, project_key, assigned_agent)
|
|
47
|
+
worktree_path = setup_assigned_worktree(repo_path, branch, card_internal_id, card_number, project_key, assigned_agent, board_key: board_key)
|
|
48
48
|
|
|
49
49
|
initial_cli = detect_cli_provider(tags: tags)
|
|
50
50
|
initial_model = detect_model(project_config, tags: tags)
|
|
@@ -110,14 +110,17 @@ def react_to_assignment(card_number, repo_path, agent_name)
|
|
|
110
110
|
end
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
-
def setup_assigned_worktree(repo_path, branch, card_internal_id, card_number, project_key, agent_name)
|
|
113
|
+
def setup_assigned_worktree(repo_path, branch, card_internal_id, card_number, project_key, agent_name, board_key: nil)
|
|
114
114
|
debounced_repo_fetch(repo_path)
|
|
115
115
|
worktree_path = File.join(File.dirname(repo_path), "#{File.basename(repo_path)}--#{branch}")
|
|
116
116
|
worktree_path = create_or_reuse_worktree(repo_path: repo_path, branch: branch, worktree_path: worktree_path)
|
|
117
117
|
|
|
118
|
+
source_data = { "card_internal_id" => card_internal_id, "card_number" => card_number }
|
|
119
|
+
source_data["board_key"] = board_key if board_key
|
|
120
|
+
|
|
118
121
|
register_work_item(
|
|
119
122
|
branch: branch, worktree: worktree_path, project: project_key, agent: agent_name,
|
|
120
|
-
source: :fizzy, source_data:
|
|
123
|
+
source: :fizzy, source_data: source_data
|
|
121
124
|
)
|
|
122
125
|
worktree_path
|
|
123
126
|
end
|
|
@@ -499,9 +499,12 @@ def setup_new_mention_worktree(ctx, card_number, card_title)
|
|
|
499
499
|
repo_path = ctx.project_config["repo_path"]
|
|
500
500
|
worktree_path, branch = resolve_or_create_worktree(ctx, card_number, card_title, repo_path)
|
|
501
501
|
|
|
502
|
+
source_data = { "card_internal_id" => ctx.card_internal_id, "card_number" => card_number }
|
|
503
|
+
source_data["board_key"] = ctx.board_key if ctx.board_key
|
|
504
|
+
|
|
502
505
|
register_work_item(
|
|
503
506
|
branch: branch, worktree: worktree_path, project: ctx.project_key, agent: ctx.agent_name,
|
|
504
|
-
source: :fizzy, source_data:
|
|
507
|
+
source: :fizzy, source_data: source_data
|
|
505
508
|
)
|
|
506
509
|
|
|
507
510
|
[worktree_path, branch]
|
|
@@ -130,6 +130,7 @@ module Brainiac
|
|
|
130
130
|
card_agent = card_info["agent"]
|
|
131
131
|
env = Helpers.fizzy_env_for(card_agent)
|
|
132
132
|
repo_path = ctx[:repo_path]
|
|
133
|
+
board_key = card_info.dig("sources", "fizzy", "board_key") || Config.board_key_for_project(ctx[:project_config])
|
|
133
134
|
|
|
134
135
|
# Post PR link comment
|
|
135
136
|
pr_url = ctx[:pr_url]
|
|
@@ -143,7 +144,8 @@ module Brainiac
|
|
|
143
144
|
# Move card to UAT
|
|
144
145
|
Helpers.move_card_to_column(card_number, "uat",
|
|
145
146
|
project_config: ctx[:project_config],
|
|
146
|
-
agent_name: card_agent
|
|
147
|
+
agent_name: card_agent,
|
|
148
|
+
board_key: board_key)
|
|
147
149
|
record_self_move(card_number)
|
|
148
150
|
|
|
149
151
|
# Clear deployment tracking
|