Commit Graph

11 Commits

Author SHA1 Message Date
Scott Edlund
503f7b0d94
prMessage: suggest 👍 reaction to important pr (#436) 2024-08-06 14:35:27 -04:00
zowoq
b528afd663 update repo default branch 2024-04-07 11:02:58 +10:00
zowoq
82eab417ab don't hide checks done section 2023-12-21 08:29:41 +10:00
Miguel Carneiro
21ce630720 Add build command to PR
Add new build command to PR message
2023-08-25 01:46:55 +01:00
Ryan Mulligan
68cce28e0e add link to maintainer documentation in PR text
closes #267
2021-08-21 10:23:24 -07:00
Ryan Mulligan
ac08383b9c fix test data newline at end of file 2020-12-12 06:49:05 -08:00
Benjamin Hipple
0b0e919328 Cleanup whitespace in PR comment function
Since we have an interpolated string, let's try to keep the newlines inside the
interpolation region, rather than attached to the variables -- particularly when
it's multiple newlines. This makes it easier to read/visualize what the PR
description will look like.

Updated and trimmed some excessive whitespace. This doesn't cause a rendering
diff on the UI, but makes the raw output cleaner.
2020-05-10 20:27:21 -04:00
Benjamin Hipple
ebee2aa0d4 Link to meta.changelog in PR description
We now have the bot:

1. Doing the automated upgrade (bump version, src, recomputing hash)
2. Doing a full nixpkgs-review reverse closure rebuild

The next step for a human is to review the upstream changelog. Right now they
have to find it manually, but if `meta.changelog` is set, this commit adds a
link to it directly in the PR description .

Resolves #44
2020-05-10 19:58:57 -04:00
Benjamin Hipple
7f312dc1ff Hide section about NixPkgs review when it was skipped
We're no longer running this on `staging` PRs, and users doing single-package
updates have the option to omit `nixpkgs-review`, so we should only include the
PR comment section if it was actually run.

This continues to enhance the automated tests for the PR comment formatting,
so you can see what the diff looks like just by looking at the test suite!
2020-05-03 12:05:21 -04:00
Benjamin Hipple
0feb0e7051 Fix several bugs with single-package updates
1. We should always use `~/.cache/nixpkgs`, since if we do it in PWD the hard
resets risk blowing away user work!

2. Previously, we weren't fetching and resetting to up-to-date master, which
   meant cmds would fail if your nixpkgs checkout was stale.

3. Previously, we were ignoring the `--pr` option entirely. This fixes that bug
by passing the bool into the UpdateEnv, and also cleans up the selected options
in the logger so it's easier to see.

4. We were including the title PR twice, like this:
   https://github.com/NixOS/nixpkgs/pull/86624

There are still some issues and things to improve, but with this PR I've managed
to get a working usage here:
https://github.com/NixOS/nixpkgs/pull/86625
2020-05-03 00:30:22 -04:00
Benjamin Hipple
286f040859 Refactoring PR description helper and starting to add tests
Having the tests makes it easier to visualize what's going on, because we can
just look at the test output data. This is not foolproof, since one of the IO
helper functions could generate bad data to pass to the pure helper, but it's
better than nothing.

This refactors as much as possible to keep the PR description logic in the pure
`prComment` function, rather than computing it in multiple places, which also
increases out unit test coverage.
2020-04-22 23:46:17 -04:00