Michael Daniels
687ba35b18
ci/github-script/bot: don't count PR author as a default reviewer
...
See https://github.com/NixOS/nixpkgs/pull/567241#issuecomment-6387518337
2026-10-26 15:15:09 -04:00
Grayson Tinker
4708e43402
ci/github-script/prepare: qualify recommendation to retarget from nixos-*
2026-10-26 09:10:46 +00:00
Philip Taron
ccbe490e25
ci/github-script/check-target-branch-policy: add exemption for kernel config ( #572634 )
2026-10-22 17:27:25 +00:00
zowoq
c611bb7bac
ci/github-script/check-target-branch-policy: add exemption for kernel config
...
Co-authored-by: Michael Daniels <mdaniels5757@gmail.com >
2026-10-18 10:30:56 +10:00
Matt Sturgeon
3734a342e0
ci/github-script/reminders: don't remind on cherry-picks ( #572900 )
2026-10-14 06:33:43 +00:00
Michael Daniels
9e37f67efc
ci/github-script/reminders: don't remind on cherry-picks
...
Addresses https://github.com/NixOS/nixpkgs/pull/562912#issuecomment-6101844681
2026-10-11 17:04:34 -04:00
Michael Daniels
4149fe388b
ci/github-script/reminders: improve style guide reminder ( #571317 )
2026-10-11 20:29:00 +00:00
Leonard Sheng Sheng Lee
ec81376b20
ci/github-script/reminders: improve style guide reminder
2026-10-11 16:24:00 -04:00
Michael Daniels
e051ed5d72
ci/github-script/commits: extract cherry-pick logic to functions
2026-10-11 13:42:12 -04:00
Jack Rosenberg
a3edf85590
ci/github-script: consider whether PR is mergable in 'eligible' maintainers comment
...
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk >
2026-10-07 15:37:08 +01:00
Michael Daniels
148a05c8b7
ci/github-script/{bot,merge,reviewers}: convert to TypeScript
...
Assisted-by: gpt-6.1-sol (Codex, light)
2026-10-03 22:31:08 -04:00
Philip Taron
46ed4a2ccb
ci/github-script: convert more to TypeScript ( #567584 )
2026-10-02 21:02:21 +00:00
Michael Daniels
00954dbca6
ci/github-script: convert more to TypeScript
2026-10-02 16:53:03 -04:00
Martin Fischer
bf338732f2
nixpkgs-update: update links after move to NixOS org
2026-10-02 08:21:41 +02:00
Matt Sturgeon
37d1dadbcc
ci/github-script/merge: indicate how to join nixos/nixpkgs-maintainers ( #519945 )
2026-10-01 06:31:55 +00:00
Peder Bergebakken Sundt
470629541d
ci/github-script/merge: indicate how to join nixos/nixpkgs-maintainers
...
Many simply never saw the invite email from github, and this error message is pretty unactionable.
It would also be a good idea to update the "About" description in https://github.com/orgs/NixOS/teams/nixpkgs-maintainers to indicate how to join.
2026-10-01 00:28:30 +02:00
Victor Engmark
795f334f07
doc: Use more common spelling of "style guide"
...
See
[trend](https://trends.google.com/explore?q=styleguide%2Cstyle%2520guide&date=all&geo=Worldwide )
for one indication that the new spelling is much more common.
2026-09-27 10:17:36 +02:00
Michael Daniels
da1f7a1117
ci/github-script: convert various to TypeScript ( #567205 )
2026-09-27 03:45:59 +00:00
Michael Daniels
5a6dae1394
ci/github-script/bot: replace "unmaintained" label with "no default reviewers"
2026-09-26 16:52:35 -04:00
Michael Daniels
32675f4b92
ci/github-script: convert various to TypeScript
2026-09-26 12:48:43 -04:00
Michael Daniels
b7a3adaa10
ci/github-script/commits: convert to TypeScript ( #559961 )
2026-09-26 00:21:56 +00:00
Matt Sturgeon
8eafff1303
ci/github-script/bot: label PRs for unmaintained packages ( #565394 )
2026-09-23 14:02:32 +00:00
Ryan Hendrickson
db2eedfcba
ci/github-script/bot: label PRs for unmaintained packages
2026-09-22 20:32:37 -04:00
Matt Sturgeon
27ed56e84d
ci: point documentation PRs at the styleguide ( #562912 )
2026-09-22 13:02:06 +00:00
Johannes Kirschbauer
40bb73107d
ci: post a reminder for updated paths
...
docs are the first example
Assisted-by: Oh My Pi (Claude Opus 5)
2026-09-22 14:41:40 +02:00
Michael Daniels
7f822c9dc8
ci/github-script/commits: convert to TypeScript
...
Assisted-by: gpt-5.6-terra (Codex)
2026-09-19 11:33:08 -04:00
Michael Daniels
4a7ddd0795
ci/github-script/manual-file-edits: convert to TypeScript
2026-09-18 19:24:33 -04:00
Michael Daniels
b5a80c77fb
ci/github-script/bot.js: make llm-assisted label sticky ( #559739 )
2026-09-06 15:52:07 +00:00
Michael Daniels
2e4bd2166b
ci/github-script/bot: fix pagination
2026-09-04 19:57:11 -04:00
Michael Daniels
8cc85b1852
ci/github-script/bot: log pagination cursor
...
This doesn't seem to change, even when it should.
I suspect this is related to the rate limit errors.
2026-09-04 16:33:09 -04:00
Ihar Hrachyshka
9686621d1b
ci/github-script/bot.js: make llm-assisted label sticky
...
By popular demand, this patch lets folks manually label PRs with the
label and make it stick, even if auto-labeler wouldn't label it itself
(presumably because the author didn't mark their commits according to
automation policy).
Assisted-by: Codex gpt-5.6-sol medium
2026-09-03 23:35:08 -04:00
zowoq
5a4d138f79
ci/github-script/check-target-branch-policy: add exemption for kernels
...
kernel updates go to staging-nixos, they shouldn't be flagged
2026-09-03 09:38:44 +10:00
Michael Daniels
375b60d66b
ci/github-script/commits.js: unbreak
...
This succeeded before the ESM conversion because we weren't in strict mode
(and therefore `line` was added to the global scope).
ES Modules run in strict mode by default, so this is a `ReferenceError` now.
TypeScript would have caught this! I will keep working on converting to it.
2026-09-01 19:27:05 -04:00
Matt Sturgeon
05e7795a4a
ci/commits: CJS __dirname → ESM
...
ESM modules no longer support CJS-style `__dirname` or `__filename`,
instead we should use `import.meta.dirname` and `import.meta.filename`
respectively.
https://nodejs.org/api/esm.html#no-__filename-or-__dirname
2026-09-01 02:18:58 +01:00
Michael Daniels
eb501c45ae
ci/github-script: convert to ES modules
...
ES modules work better with TypeScript than CommonJS modules do.
Assisted-by: GPT 5.6 Luna & Terra (Codex)
2026-08-31 18:09:18 -04:00
Michael Daniels
2d813b7719
ci/supportedBranches.js: move to ci/github-script
...
This way it will be covered by our package.json when we configure ES Modules
in the next commit.
2026-08-31 18:06:11 -04:00
Ihar Hrachyshka
30a8636adf
ci/github-script/check-target-branch: evaluate exemptions in policy
...
Assisted-by: Codex gpt-5.6-sol medium
2026-08-21 18:32:31 -04:00
Ihar Hrachyshka
221930c60c
ci/github-script/check-target-branch: check staging-nixos mass rebuilds
...
Assisted-by: Codex gpt-5.6-sol medium
2026-08-21 18:32:29 -04:00
Ihar Hrachyshka
403d5922cf
ci/github-script/check-target-branch: simplify policy decisions
...
This commit hopefully improves readability: encapsulates some
intermediary decisions in variable, plus adopts early return decision
tree.
Assisted-by: Codex gpt-5.6-sol medium
2026-08-21 18:32:27 -04:00
Ihar Hrachyshka
e1aa8c4d16
ci/github-script/check-target-branch: add policy tests
...
Tests reflect status quo. They establish baseline for later policy
changes. Some test cases are obvious bugs (e.g. mass rebuild checks are
skipped on staging-nixos), others may also be questionable.
Assisted-by: Codex gpt-5.6-sol medium
2026-08-21 18:32:26 -04:00
Ihar Hrachyshka
198d0cd473
ci/github-script: add npm scripts
...
Allows running `npm run typecheck` or `npm test`.
2026-08-20 17:33:22 -04:00
Ihar Hrachyshka
3d17eabf1a
ci/github-script/check-target-branch: extract policy decision
...
This is in preparation to test the extracted pure function in the next
commit.
Assisted-by: Codex gpt-5.6-sol medium
2026-08-20 17:32:55 -04:00
Ihar Hrachyshka
d003d54dc4
ci/github-script/check-target-branch: extract review helpers
...
Assisted-by: Codex gpt-5.6-sol medium
2026-08-20 17:32:53 -04:00
Michael Daniels
7b972175eb
ci/github-script: add *.tsbuildinfo to gitignore
2026-08-18 18:20:04 -04:00
Michael Daniels
2496d47b76
ci/github-script/check-target-branch: convert to TypeScript
...
Only doing this one for now as a proof-of-concept.
2026-08-10 20:26:01 -04:00
Michael Daniels
7045e3afe1
ci/github-script: check types by default
2026-08-10 20:26:01 -04:00
Michael Daniels
578ac00958
ci/github-script/run: correct variable name
2026-08-10 20:26:01 -04:00
Michael Daniels
78df5b944f
ci/github-script/.gitignore: add comparison artifact
...
Needed by check-target-branch.
2026-08-10 20:26:00 -04:00
Michael Daniels
f746c52b23
ci/github-script: fix types for context
2026-08-08 09:30:32 -04:00
Michael Daniels
03bf53cdb5
Revert "ci/github-script/get-pr-commit-details: output file list for merge commits"
2026-08-05 17:33:01 -04:00