build-release-notes: add change author metadata and use it

Change-Id: I6f5fb54f70b02a467bbdee4c526f59da1193f7db
This commit is contained in:
jade 2024-05-15 12:46:17 -07:00
parent c8329e5667
commit 2a7b3d7c94
5 changed files with 68 additions and 5 deletions

View file

@ -0,0 +1,63 @@
# This file is a mapping of metadata for change authors, sort of like
# maintainer-list.nix in nixpkgs.
#
# It's used for crediting people accurately in release notes. The release notes
# script will link to forgejo, then to GitHub if forgejo is not present.
horrors:
display_name: eldritch horrors
forgejo: pennae
github: pennae
Qyriad:
forgejo: Qyriad
github: Qyriad
jade:
forgejo: jade
github: lf-
iFreilicht:
github: iFreilicht
ma27:
forgejo: ma27
github: ma27
Lunaphied:
forgejo: Lunaphied
github: Lunaphied
9999years:
display_name: wiggles
github: 9999years
forgejo: rbt
matthewbauer:
github: matthewbauer
raito:
display_name: Raito Bezarius
github: RaitoBezarius
forgejo: raito
winter:
github: winterqt
forgejo: winter
Kha:
github: Kha
Artturin:
github: Artturin
thufschmitt:
display_name: Théophane Hufschmitt
github: thufschmitt
edolstra:
display_name: Eelco Dolstra
github: edolstra
roberth:
display_name: Robert Hensing
github: roberth

View file

@ -6,7 +6,7 @@ rl_next_generated = custom_target(
'-c', '-c',
''' '''
if type -p build-release-notes > /dev/null; then if type -p build-release-notes > /dev/null; then
build-release-notes @CURRENT_SOURCE_DIR@/../../rl-next build-release-notes --change-authors @CURRENT_SOURCE_DIR@/../../change-authors.yml @CURRENT_SOURCE_DIR@/../../rl-next
fi fi
@0@ @INPUT0@ @CURRENT_SOURCE_DIR@/../../rl-next > @DEPFILE@ @0@ @INPUT0@ @CURRENT_SOURCE_DIR@/../../rl-next > @DEPFILE@
'''.format( '''.format(

View file

@ -222,7 +222,7 @@
pkgs = nixpkgsFor.${system}.native; pkgs = nixpkgsFor.${system}.native;
in in
pkgs.buildPackages.runCommand "test-${name}-release-notes" { } '' pkgs.buildPackages.runCommand "test-${name}-release-notes" { } ''
LANG=C.UTF-8 ${lib.getExe pkgs.build-release-notes} ${dir} >$out LANG=C.UTF-8 ${lib.getExe pkgs.build-release-notes} --change-authors ${./doc/manual/change-authors.yml} ${dir} >$out
''; '';
in in
{ {

View file

@ -152,7 +152,7 @@ section_title="Release $version_full ($DATE)"
# TODO add minor number, and append? # TODO add minor number, and append?
echo "# $section_title" echo "# $section_title"
echo echo
build-release-notes doc/manual/rl-next build-release-notes --change-authors doc/manual/change-authors.yml doc/manual/rl-next
) | tee -a $file ) | tee -a $file
log "Wrote $file" log "Wrote $file"

View file

@ -60,10 +60,10 @@ pre-commit-run {
release-notes = { release-notes = {
enable = true; enable = true;
package = pkgs.build-release-notes; package = pkgs.build-release-notes;
files = "^doc/manual/rl-next(-dev)?"; files = ''^doc/manual/(change-authors\.yml|rl-next(-dev)?)'';
pass_filenames = false; pass_filenames = false;
entry = '' entry = ''
${lib.getExe pkgs.build-release-notes} doc/manual/rl-next doc/manual/rl-next-dev ${lib.getExe pkgs.build-release-notes} --change-authors doc/manual/change-authors.yml doc/manual/rl-next doc/manual/rl-next-dev
''; '';
}; };
check-headers = { check-headers = {