Skip to content

Commit

Permalink
Add build command to PR
Browse files Browse the repository at this point in the history
Add new build command to PR message
  • Loading branch information
mig4ng committed Aug 25, 2023
1 parent 1033305 commit 21ce630
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Update.hs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@ prMessage updateEnv isBroken metaDescription metaHomepage metaChangelog rewriteM
```
nix-build -A $attrPath https://github.com/$ghUser/nixpkgs/archive/$commitRev.tar.gz
```
Or:
```
nix build github:$ghUser/nixpkgs/$commitRev#$attrPath
```

After you've downloaded or built it, look at the files and if there are any, run the binaries:
```
Expand Down
4 changes: 4 additions & 0 deletions test_data/expected_pr_description_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ meta.changelog for foobar is: "https://foobar-homepage.com/changelog/v1.2.3"
```
nix-build -A foobar https://github.com/r-ryantm/nixpkgs/archive/af39cf77a0d42a4f6771043ec54221ed.tar.gz
```
Or:
```
nix build github:r-ryantm/nixpkgs/af39cf77a0d42a4f6771043ec54221ed#foobar
```

After you've downloaded or built it, look at the files and if there are any, run the binaries:
```
Expand Down
4 changes: 4 additions & 0 deletions test_data/expected_pr_description_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ meta.changelog for foobar is: "https://foobar-homepage.com/changelog/v1.2.3"
```
nix-build -A foobar https://github.com/r-ryantm/nixpkgs/archive/af39cf77a0d42a4f6771043ec54221ed.tar.gz
```
Or:
```
nix build github:r-ryantm/nixpkgs/af39cf77a0d42a4f6771043ec54221ed#foobar
```

After you've downloaded or built it, look at the files and if there are any, run the binaries:
```
Expand Down

0 comments on commit 21ce630

Please sign in to comment.