From 20c6e32f915be1b6381fbac0953308266b97befd Mon Sep 17 00:00:00 2001 From: Tristan Jahnke Date: Mon, 12 Oct 2026 19:25:47 -0500 Subject: [PATCH 1/2] feat: add pull config and github config Signed-off-by: Tristan Jahnke --- plugins/atlas.lua | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/plugins/atlas.lua b/plugins/atlas.lua index 21824a9..6718a96 100644 --- a/plugins/atlas.lua +++ b/plugins/atlas.lua @@ -5,8 +5,53 @@ return { ui = { picker = "snacks", }, + pulls = { + default_merge_method = "squash", + default_delete_source_branch = true, + description = { + include_diffstat = true, + }, + diff = { + review_panel = { + hidden = false, + }, + layout = "side-by-side", + lsp = { + enabled = true, + }, + explorer = { + hidden = true, + show_commits = true, + }, + }, + repo_config = { + paths = { + ["RemoteRabbit/*"] = "~/Projects/personal/*", + ["RemoteRabbit/*"] = "~/Projects/*", + }, + }, + }, providers = { - github = {}, + github = { + views = { + { + name = "My PRs", + key = "1", + layout = "grouped", -- "compact", "grouped", or "plain" + current_repo = true, -- Limit this view to the local repository. + search = "author:@me sort:updated-desc", + }, + }, + bookmarks = { + key = "S", -- default + label = "Search", -- default + items = { + ["Drafts"] = "is:pr is:draft author:@me", + ["Recently merged"] = "is:pr is:merged author:@me sort:updated-desc", + ["Review requested"] = "is:pr is:open review-requested:@me", + }, + }, + }, }, keymaps = { ui = { From f893ad8c58e094bd37e32397aafe4af01e824283 Mon Sep 17 00:00:00 2001 From: Tristan Jahnke Date: Mon, 12 Oct 2026 19:29:38 -0500 Subject: [PATCH 2/2] feat: use my pr-description plugin instead of builtin Signed-off-by: Tristan Jahnke --- plugins/atlas.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/atlas.lua b/plugins/atlas.lua index 6718a96..c484741 100644 --- a/plugins/atlas.lua +++ b/plugins/atlas.lua @@ -59,5 +59,21 @@ return { }, }, }) + -- Atlas has no hook for custom PR bodies, so wrap its description builder + -- and swap in pr-description.nvim's output. Falls back to Atlas's body if + -- pr-description fails (e.g. no commits ahead of base). + local description = require("atlas.pulls.create.description") + local build = description.build + description.build = function(root, repo_slug, base, head, repository, on_done) + return build(root, repo_slug, base, head, repository, function(content, err) + if content then + local body = require("pr-description").generate_description() + if body then + content.body = body + end + end + on_done(content, err) + end) + end end, }