-
Notifications
You must be signed in to change notification settings - Fork 0
Rely on linux-packages action for release artefacts #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
leynos
wants to merge
1
commit into
main
Choose a base branch
from
codex/update-release-workflow-and-documentation-reb9nx
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| //! Stages the packaged client man page for installation. | ||
| use std::{env, fs, path::PathBuf}; | ||
|
|
||
| fn main() { | ||
| if let Err(error) = copy_man_page() { | ||
| panic!("failed to stage man page: {error}"); | ||
| } | ||
| } | ||
|
|
||
| fn copy_man_page() -> std::io::Result<()> { | ||
| let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR")); | ||
| let source = manifest_dir.join("../../packaging/man/comenq.1"); | ||
| let out_dir = PathBuf::from(env::var("OUT_DIR").expect("OUT_DIR")); | ||
| let dest = out_dir.join("comenq.1"); | ||
| fs::copy(&source, &dest)?; | ||
| println!("cargo:rerun-if-changed={}", source.display()); | ||
| Ok(()) | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| //! Stages the packaged daemon man page for installation. | ||
| use std::{env, fs, path::PathBuf}; | ||
|
|
||
| fn main() { | ||
| if let Err(error) = copy_man_page() { | ||
| panic!("failed to stage man page: {error}"); | ||
| } | ||
| } | ||
|
|
||
| fn copy_man_page() -> std::io::Result<()> { | ||
| let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR")); | ||
| let source = manifest_dir.join("../../packaging/man/comenqd.1"); | ||
| let out_dir = PathBuf::from(env::var("OUT_DIR").expect("OUT_DIR")); | ||
| let dest = out_dir.join("comenqd.1"); | ||
| fs::copy(&source, &dest)?; | ||
| println!("cargo:rerun-if-changed={}", source.display()); | ||
| Ok(()) | ||
| } | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| .TH COMENQ 1 "May 2024" "comenq" "User Commands" | ||
| .SH NAME | ||
| comenq \- enqueue a GitHub pull request comment for the comenqd daemon | ||
| .SH SYNOPSIS | ||
| .B comenq | ||
| .I owner/repo | ||
| .I pr-number | ||
| .I comment | ||
| [ | ||
| .B --socket | ||
| .I path | ||
| ] | ||
| .SH DESCRIPTION | ||
| The | ||
| .B comenq | ||
| command enqueues a comment request for the | ||
| .BR comenqd (8) | ||
| daemon. It takes the target repository in | ||
| .I owner/repo | ||
| format, the pull request number, and the comment body to submit. | ||
| .PP | ||
| Use | ||
| .B --socket | ||
| to override the Unix Domain Socket path used to contact the daemon. The | ||
| socket defaults to | ||
| .I /run/comenq/comenq.sock | ||
| which matches the packaged systemd service configuration. | ||
| .SH EXAMPLES | ||
| Send a comment to pull request 42 of example/repo: | ||
| .PP | ||
| .RS | ||
| .nf | ||
| comenq example/repo 42 "Queued for review" | ||
| .fi | ||
| .RE | ||
| .SH SEE ALSO | ||
| .BR comenqd (8) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| .TH COMENQD 8 "May 2024" "comenqd" "System Administration" | ||
| .SH NAME | ||
| comenqd \- daemon that posts queued GitHub pull request comments | ||
| .SH SYNOPSIS | ||
| .B comenqd | ||
| [ | ||
| .B --config | ||
| .I file | ||
| ] | ||
| [ | ||
| .B --github-token | ||
| .I token | ||
| ] | ||
| [ | ||
| .B --socket-path | ||
| .I path | ||
| ] | ||
| [ | ||
| .B --queue-path | ||
| .I path | ||
| ] | ||
| .SH DESCRIPTION | ||
| The | ||
| .B comenqd | ||
| daemon consumes comment requests queued by the | ||
| .BR comenq (1) | ||
| CLI and posts them to GitHub. Configuration is loaded from | ||
| .I /etc/comenqd/config.toml | ||
| and may be overridden through command line options or | ||
| environment variables prefixed with | ||
| .BR COMENQD_. | ||
| .PP | ||
| The daemon is designed to run as a system service using the packaged | ||
| systemd unit. When launched manually it logs its effective socket and | ||
| queue locations to the terminal. | ||
| .SH FILES | ||
| .TP | ||
| .I /etc/comenqd/config.toml | ||
| Default configuration file. | ||
| .TP | ||
| .I /var/lib/comenq/queue | ||
| On-disk queue storage used for persistence across restarts. | ||
| .SH SEE ALSO | ||
| .BR comenq (1) |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Consider using a more descriptive error message for failed man page staging.
Including the source and destination paths in the panic message will make it easier to identify the cause of the failure.