Repository navigation
ci: close issues named by a pull request merged into develop - #700
Merged
Merged
Conversation
…t the rule (actionlint clean)
neuromechanist
added a commit
that referenced
this pull request
Nov 11, 2026
neuromechanist
added a commit
that referenced
this pull request
Nov 11, 2026
…failure and ends red, ignores keywords in code, accepts the issue URL form; docs
Member
Author
|
Review round 1 outcomes (fixes in 8219639):
|
… ~~~ fences and one-line triple-backtick spans
Member
Author
|
Review round 2 outcomes (fixes in d9e83ed):
Re-checked with actionlint (clean) and fifteen sample bodies, including both new cases, a tilde fence, an indented fence with a language tag and a one-line triple-backtick span followed by a real keyword. |
…-develop-merge # Conflicts: # CHANGELOG.md
neuromechanist
added a commit
that referenced
this pull request
Nov 11, 2026
…696) * feat: seed a new chat session from prior_turns and restore its tier (E1.6) POST /{community}/chat takes optional prior_turns (24 turns, 4,000 chars each) and mode. A session the request just created is started from one fenced message built by reseeded_message; a live session ignores both. Tested against the real app and graph. * test: llm reseed test against the real NEMAR community (E1.6) Skipped here, no ANTHROPIC_API_KEY; not run. * feat: widget sends prior_turns and mode until the server confirms the session (E1.6) Newest 12 turns, text only, each cut from the middle at 2,000 chars; sent on the first request of a page load, after opening a chat from History or the resume card, and after a day without a server answer. New test-widget-reseed.js (54 checks) wired into CI; the other widget suites still pass. * docs: changelog and widget docs for reseeding a forgotten conversation (E1.6) * fix: summarize a reseeded session from its turns, widen the fence strip, drop whole oldest turns (tested) * fix: widget sends whole turns within the server's transcript budget; test widget limits against the server's (tested) * test: clean up the llm reseed sessions and explain the no-code instruction (not run: no API key) * ci: close issues named by a pull request merged into develop; document the rule (actionlint clean) * docs: state the reseed gap after server confirmation (#698), the turn budget and api-structure fields; changelog * fix: match fence tags with one whitespace class (quadratic backtracking); tested * fix: do not carry an error-only assistant bubble as a reseed turn; tested (bun test-widget-reseed.js) * refactor: drop redundant reseeding variable in chat; tested * docs: state the live-session transcript bound as 12,000 characters * ci: move the close-issues workflow and AGENTS.md step 8 to their own pull request (#700) * docs: the close-issues changelog entry moves to #700
Merged
13 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub honours closing keywords only when a pull request merges into the default branch (
main). Feature work merges intodevelop, so those keywords never fired: the NEMAR AI UX issues stayed open after their pull requests merged, and older ones did too (#593 is still open after release #606).This adds
.github/workflows/close-issues-on-develop-merge.yml. When a pull request intodevelopis merged, it reads the closing keywords in the body (close, fix and resolve in their usual forms, followed by#N,OpenScience-Collective/osa#Nor the issue URL) and closes each open issue with a comment linking the pull request. It follows GitHub's own reading: references with no keyword and other repositories' issues are left alone, and after one keyword only the first number counts. It also skips keywords inside code spans and fenced blocks, and numbers that are pull requests. One failed close does not stop the others; the job ends red if any failed or an issue could not be read (a missing issue is skipped).AGENTS.md gains step 8 (an issue closes when its pull request merges into
develop; one keyword per issue; a feature pull request should not name its epic; an issue that needs checking on develop-demo first uses a reference without a keyword), and CONTRIBUTING.md says the same in one line.Security:
pull_request_targetruns from the base branch with a token that can write issues (the only permission granted), so the job checks out and runs nothing from the pull request. It reads only the number and body, and the body reaches the shell through an environment variable, never through${{ }}interpolation. It acts only on a merged pull request.Split out of #696, where it was added beside the reseed work.
Tested: actionlint and shellcheck are clean. The parsing step was run on twelve sample bodies (two keywords on two lines, a keyword after a plain reference, a colon and the owner/name form, another repository, a word ending in a keyword, a comma list, a number followed by letters, both URL forms, a keyword in a fenced block and in inline code, upper case with a CR line end) and gave the expected numbers for each. The closing loop runs only once the file is on
develop.