instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
alexbrainman__sspi__3
alexbrainman/sspi
3
defect
05f02589e649d91a0b4cdea4bb46e7c64d94862a
88a0f0595fdfac0e1ea9ab9327ad00d518462781
Add MakeSignature and VerifySignature calls
I'm in the process of making some existing GSSAPI code use your SSPI library on Windows. I've used your Negotiate library to establish a context successfully however I now need to use `MakeSignature` & `VerifySignature` and noticed they weren't present. This PR is the result of me updating `syscall.go` and running `...
diff --git a/syscall.go b/syscall.go index 990fa05..5f9861e 100644 --- a/syscall.go +++ b/syscall.go @@ -149,3 +149,5 @@ type SecBufferDesc struct { //sys EncryptMessage(context *CtxtHandle, qop uint32, message *SecBufferDesc, messageseqno uint32) (ret syscall.Errno) = secur32.EncryptMessage //sys DecryptMessage(cont...
2
1
0
[{"id": "G0", "claim": "The zsyscall wrapper was generated as ValidateSignature while the //sys directive in syscall.go names it VerifySignature, so the checked-in zsyscall_windows.go does not match what `go generate` produces and should be regenerated.", "category": "correctness", "verdict": "uncertain", "priority": "...
null
alexbrainman__sspi__4
alexbrainman/sspi
4
defect
4729b3d4d8581b2db83864d1018926e4154f9406
4d952230a8212b3391c5f3801f1fcbefb49fe97f
Negotiate improvements
Hi, This branch contains various changes / improvements to the negotiate package (FYI those changes were added in order to implement both Web SPNEGO and SASL GSS-SPNEGO support, using the native windows api). Please merge if you feel those are appropriate, thanks !
diff --git a/negotiate/negotiate.go b/negotiate/negotiate.go index 3d22b0c..23e39f9 100644 --- a/negotiate/negotiate.go +++ b/negotiate/negotiate.go @@ -147,6 +147,49 @@ func makeSignature(c *sspi.Context, msg []byte, qop, seqno uint32) ([]byte, erro return b[1].Bytes(), nil } +func encryptMessage(c *sspi.Context,...
1
1
1
[{"id": "G0", "claim": "Add a test covering the new EncryptMessage and DecryptMessage methods.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alexcrichton__tar-rs__107
alexcrichton/tar-rs
107
defect
babe0c8118a8d58c1c5e25a7663560153a78e51d
3531782a1081f855874db7b247100a7e3299bb0e
Include file mode in items filtered for deterministic headers
For our usecase of the `Deterministic` header mode, we're not interested in including anything except the `execute` bit of appended files (in particular, we're trying to align with what `git` persists for files). See https://github.com/pantsbuild/pants/issues/4610 for more color. The change introduces a mask that dr...
diff --git a/src/header.rs b/src/header.rs index b4330c10..9e077a6a 100644 --- a/src/header.rs +++ b/src/header.rs @@ -10,6 +10,8 @@ use std::mem; use std::path::{Path, PathBuf, Component}; use std::str; +use libc; + use EntryType; use other; @@ -131,6 +133,9 @@ pub struct GnuExtSparseHeader { pub padding:...
2
2
1
[{"id": "G0", "claim": "The libc-constant mask is wonky to read and octal notation should work well here instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The libc constants used in the new mask (S_IFMT, S_IXUSR, S_IXGRP, S_IXOTH) may not ...
null
alexcrichton__tar-rs__184
alexcrichton/tar-rs
184
defect
c7b31b28d42631a39af6b3f3f05891abc104fdd3
4b464a97129decd5c40e24ed1c96e0f05a3d8c1f
builder: handle long link names
As already implemented for long path names, handle packing long link with the GNU extension (entry type 'K') in append_fs function.
diff --git a/src/builder.rs b/src/builder.rs index 1e3a4432..6e1f87ff 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -157,7 +157,7 @@ impl<W: Write> Builder<W> { path: P, data: R, ) -> io::Result<()> { - prepare_header(self.get_mut(), header, path.as_ref())?; + prepare_header_p...
5
4
1
[{"id": "G0", "claim": "A comment should be added explaining why the size is set to `size + 1` in the new prepare_header helper.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `././@LongLink` string and its hard-coded 13 length should be dedup...
null
alexcrichton__tar-rs__346
alexcrichton/tar-rs
346
defect
34744459084c1fffb03d6c742f5a5af9a6403bc4
7bd8318589c2eb914d5dfc572c71d1bf3602d3f0
Unify `mtime` constant used on Unix and Windows
fix #341
diff --git a/src/header.rs b/src/header.rs index 7e507fc7..63ee12be 100644 --- a/src/header.rs +++ b/src/header.rs @@ -825,7 +825,7 @@ impl Header { HeaderMode::Deterministic => { self.set_uid(0); self.set_gid(0); - self.set_mtime(123456789); // see above in...
2
1
0
[{"id": "G0", "claim": "Hoist the deterministic timestamp into a single explicitly shared constant (e.g. `ARBITRARY_DETERMINISTIC_TIMESTAMP`) instead of repeating the literal at each `HeaderMode::Deterministic` call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
alexcrichton__tar-rs__382
alexcrichton/tar-rs
382
defect
97d5033eb80bf90c746a8b76dd31ca8a39326991
f804ba96f87f13acb3f0a55cb853de64e5110d44
Very basic Pax header writer
Basic implem of PaxBuilder that can add the header with the data provided, implem on tar::builder Today the lib is able to read the pax headers, even if they have arbitrary values but can't write some headers back. This update lets you do that very simply. Usage: ```rust let mut pax_builder: PaxBuilder = PaxBui...
diff --git a/src/lib.rs b/src/lib.rs index 52251cd2..0fa9e00f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,7 @@ pub use crate::entry::{Entry, Unpacked}; pub use crate::entry_type::EntryType; pub use crate::header::GnuExtSparseHeader; pub use crate::header::{GnuHeader, GnuSparseHeader, Header, HeaderMode, Ol...
7
5
2
[{"id": "G0", "claim": "The `updated` flag on PaxBuilder buys nothing over a plain Vec<u8> since it is always equivalent to `!data.is_empty()`, so the stored status field should be dropped in favor of an emptiness check.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
alexcrichton__tar-rs__390
alexcrichton/tar-rs
390
defect
2064e86eb331966e916ceb31244758187b58b038
e2445778bf792e6e3010c970c5422130f18be7f7
fix for archiving long paths that have path components starting with ".." crossing the 100-character mark
The gnu tar supports arbirary path length by putting path truncated to standard 100 chars into the header and the rest is appended to contents. `tar-rs` validates that no path components should be exactly ".." but in this case when a component starting with ".." (for example file named "..some_file") gets truncated af...
diff --git a/src/builder.rs b/src/builder.rs index 82e73541..569b14e6 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -768,7 +768,7 @@ fn prepare_header_path(dst: &mut dyn Write, header: &mut Header, path: &Path) -> Ok(s) => s, Err(e) => str::from_utf8(&data[..e.valid_up_to()]).unwrap(), ...
5
4
0
[{"id": "G0", "claim": "The ParentDir rejection in copy_path_into would read better as a single positive guard (e.g. `if is_long_path && iter.peek.is_some() { return Err(...) }`) instead of an empty `{}` block with the error in an else.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":...
null
alexcrichton__tar-rs__426
alexcrichton/tar-rs
426
defect
20a650970793e56238b58ac2f51773d343b02117
be5ba9aefc3c7883c657cc1e99aefdaa788686a3
Add support of absolute paths
Add `preserve_absolute` to builder's options to let it add files with absolute path. By default `preserve_absolute` sets false, to keep current behavior, but it can be set as true via passing `true` to builder's method `preserve_absolute`. Closes: #326, #413
diff --git a/src/builder.rs b/src/builder.rs index f2d29464..8c6b8cc4 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -23,6 +23,7 @@ pub struct Builder<W: Write> { #[derive(Clone, Copy)] struct BuilderOptions { mode: HeaderMode, + preserve_absolute: bool, follow: bool, sparse: bool, } @@ -35,6 ...
5
2
1
[{"id": "G0", "claim": "Add an integration test that generates a tar containing an absolute path with an external packer (GNU tar, which is explicit about absolute-path support), unpacks it with this crate and verifies the file actually exists.", "category": "testing", "verdict": "supported", "priority": "P2", "scope":...
null
alexcrichton__tar-rs__62
alexcrichton/tar-rs
62
defect
7f8696e33f33306216bb429ff2a2c14a8f4185ee
4c6cdcab8407343d3bab701feef61000c4060ce1
Implement sparse files support
This adds a Read trait which emits all zeros on non-existing chunks of file. Any ideas how to provide an interface where you could actually produce a sparse file on a filesystem? As far as I know there is no cross-platform way to create a sparse file, and so no way to do it with standard library. So maybe we should pr...
diff --git a/examples/extract_file.rs b/examples/extract_file.rs new file mode 100644 index 00000000..51c9aa56 --- /dev/null +++ b/examples/extract_file.rs @@ -0,0 +1,20 @@ +extern crate tar; + +use std::io::{stdin, stdout, copy}; +use std::env::args_os; +use std::path::Path; + +use tar::Archive; + + +fn main() { + ...
8
4
1
[{"id": "G0", "claim": "GnuExtSparseHeader should explicitly include the 7 bytes of padding so the struct spans the full 512-byte header.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sparse-chunk offset/numbytes octal parsing inline in EntriesField...
null
alexcrichton__tar-rs__90
alexcrichton/tar-rs
90
defect
dbe15dfddfa496bc3926109e832dc39b0356d75d
f2e48a186ba5ced5ef4ce5e6edddc82f82e6e442
entry: relax symlink target constraints
This allows the creation and extraction of symlinks pointing to targets outside of the destination directory, including absolute paths and `../` chains. Path traversal is now checked at unpack time, by canonicalizing the target path and ensuring that it is nested below destination path. Fixes #87
diff --git a/src/entry.rs b/src/entry.rs index 4ebdbea5..8e6bf207 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -2,9 +2,9 @@ use std::borrow::Cow; use std::cmp; use std::fs; use std::io::prelude::*; -use std::io::{self, SeekFrom}; +use std::io::{self, Error, ErrorKind, SeekFrom}; use std::marker; -use std::path::...
3
2
2
[{"id": "G0", "claim": "The stray println! of the symlink source and destination that this pull request re-adds in src/entry.rs should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new symlink assertion in tests/entry.rs is fail...
null
alexei-led__ccgram__83
alexei-led/ccgram
83
defect
e272d5109b59b56e51e69c1d2954780079c16217
30ca19f583d2c7a20a73516dc0c8f6e8090c6ae9
fix(gemini): extract question from boxed prompts (#75)
Fixes #75. ## Problem Gemini interactive prompts show the navigation keyboard in Telegram but **not the question**. Intermittent for the reporter (~2/30 displayed). ## Root cause (reproduced on real Gemini 0.42) Ran Gemini in a tmux window, captured the actual permission-prompt pane + OSC title, fed both through `G...
diff --git a/src/ccgram/providers/gemini.py b/src/ccgram/providers/gemini.py index a09f4373..668ff496 100644 --- a/src/ccgram/providers/gemini.py +++ b/src/ccgram/providers/gemini.py @@ -146,6 +146,84 @@ ] +# ── Boxed-prompt extraction (Gemini CLI ≥ 0.42) ───────────────────────── +# +# Modern Gemini wraps every i...
1
1
0
[{"id": "G0", "claim": "On a torn capture where the active box's bottom border isn't drawn yet but an older complete box sits above it, `_extract_active_box` can extract the stale earlier box, and a still-visible older interactive box in scrollback could briefly surface.", "category": "correctness", "verdict": "support...
null
alexellis__arkade__1074
alexellis/arkade
1,074
defect
e2b961172892782e1eb712b9429f494868576ffd
d04da9e45d93755c6e88a51fefb1dcddec07cd6d
add support of kubecolor binary
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Add support of kubecolor ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --...
diff --git a/README.md b/README.md index 147fd1854..842848b9a 100644 --- a/README.md +++ b/README.md @@ -842,6 +842,7 @@ There are 56 apps that you can install on your cluster. | [kube-score](https://github.com/zegl/kube-score) | A tool that performs static code analysis of your Kubernetes ...
3
1
0
[{"id": "G0", "claim": "The pull request unintentionally dropped the README note telling contributors to run `arkade get --format markdown` to generate the tools list, and it should be kept.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The e2e t...
null
alexellis__arkade__124
alexellis/arkade
124
defect
78f63388c4ad7688793d1cc2ff068725e283ab0b
628ee58b3d7b431173629006b5cbede2caa55324
tool: add kubectx
Attempt to fix #122: add kubectx tool ## Description Add kubectx tool ## Motivation and Context Attempt to fix #122 - [ ] I have raised an issue to propose this change ([required](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md)) ## How Has This Been Tested? `./arkade get kubectx`...
diff --git a/README.md b/README.md index 8b1c7bce8..3bd207bad 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ arkade will determine the correct URL to download a CLI tool of your choice taki ```bash arkade get kubectl arkade get faas-cli +arkade get kubectx ``` This is a time saver compared to searching...
5
5
3
[{"id": "G0", "claim": "The pull request must fill out the PR template's testing section explaining how the change was tested.", "category": "process", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The commit message should be a brief sentence starting with a verb in the imper...
null
alexellis__arkade__296
alexellis/arkade
296
defect
e65f1e4d78d754e17e6e9baffbe278b93f2290d9
ae40e335336210af7c612cb10fe9df4cc027e810
Add mc - minio client as download option
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Closes #294 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it...
diff --git a/pkg/get/tools.go b/pkg/get/tools.go index faa489cfd..55f750550 100644 --- a/pkg/get/tools.go +++ b/pkg/get/tools.go @@ -836,12 +836,42 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}} Repo: "opa", Name: "opa", BinaryTemplate: `{{ if HasPrefix .OS "ming" -}} ...
3
2
1
[{"id": "G0", "claim": "The new mc tool entry cannot specify a version and fetches the minio latest release URL — could a version be specified?", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a unit test for the custom mc URL template this pull request ...
null
alexellis__arkade__355
alexellis/arkade
355
defect
59b30d8df2cf7b048fd8e4af47682c28af2d0eb4
ef0cd0de3bdc5a4fa3564f17498f9f7e3593aec5
Included support of istioctl
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com> <!--- Provide a general summary of your changes in the Title above --> We are including support of Istioctl 1.9.1 and upgrading istio app installation to use istioctl ## Description <!--- Describe your changes in detail --> 1. `arkade get istioctl` ...
diff --git a/cmd/apps/istio_app.go b/cmd/apps/istio_app.go index c2ff7a8a6..33f75c1ca 100644 --- a/cmd/apps/istio_app.go +++ b/cmd/apps/istio_app.go @@ -4,22 +4,24 @@ package apps import ( + "bufio" + "errors" "fmt" "io/ioutil" "log" "os" - "path" - "time" - - "github.com/alexellis/arkade/pkg/k8s" "gith...
5
5
2
[{"id": "G0", "claim": "The Istio app should not be built on helm, which arkade no longer uses, and should end up looking like the Linkerd app.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The --manifests flag's hard-coded amd64-only archive URL is a...
null
alexellis__arkade__370
alexellis/arkade
370
defect
a7418b1652e1f96c6f86985572c828a96d136836
5d4f7c114cdf107691f7f388c72610e25f69124f
add initial tests for inletsoperator_app
## Description Add initial tests per follow up comment https://github.com/alexellis/arkade/pull/367#pullrequestreview-637506447 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> - [ ] I have raised an i...
diff --git a/cmd/apps/inletsoperator_app_test.go b/cmd/apps/inletsoperator_app_test.go new file mode 100644 index 000000000..c2eafc5f7 --- /dev/null +++ b/cmd/apps/inletsoperator_app_test.go @@ -0,0 +1,40 @@ +// Copyright (c) arkade author(s) 2021. All rights reserved. +// Licensed under the MIT license. See LICENSE fi...
5
4
2
[{"id": "G0", "claim": "Replace the testify/require assertions with plain if statements and test an extracted private validation function instead of driving the CLI flags.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please run a quick end-to-end test ...
null
alexellis__arkade__401
alexellis/arkade
401
defect
426546ce181648f68380e06c572ae529f5cd6eba
64464c4a6ef6566f57963a06e10a5b42b86aede4
Polaris cli added
Signed-off-by: Engin Diri <engin.diri@mail.schwarz> ## Description Polaris cli added ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> Fixes https://github.com/alexellis/arkade/issues/400 - [x] I ha...
diff --git a/README.md b/README.md index bb5e47bdd..1be41bb5b 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ With automatic detection of: Windows / MacOS / Linux / Intel / ARM. arkade get APP Use "arkade get TOOL" to download a tool or application: argocd + arkade buildx civo docker-compose @@ ...
3
3
1
[{"id": "G0", "claim": "The polaris entry should use BinaryTemplate instead of URLTemplate because it is easier to maintain, and the author should convert it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 386 architecture support should be ...
null
alexellis__arkade__516
alexellis/arkade
516
defect
5ba2290a4a6bfc413b51c4cbfd301c976b09abd2
097b13211435b7a09152aa4a31f7373c7d2c8b3e
Add multi-tool download support
This change enables arkade to download multiple tools with a single command. This change only consists of sequential download mode, will be working on a parallel mode once this gets merged. Signed-off-by: Yankee Maharjan <yankee.exe@gmail.com> Closes #470 <!--- Provide a general summary of your changes i...
diff --git a/README.md b/README.md index cfccba061..976cbfe85 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ Here's a few examples of apps you can install, for a complete list run: `arkade * `arkade install` - install an app * `arkade info` - the post-install screen for an app -* `arkade get` - install ...
8
8
1
[{"id": "G0", "claim": "Change the README bullet to read 'Install CLI tools' instead of 'install a CLI tool/s'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a plain multi-tool example (arkade get APP1 APP2 APP3) before the versioned example ...
null
alexellis__arkade__539
alexellis/arkade
539
defect
ef3938e08a51af9eacb3c920c1f5222eac76f0ab
71f7e3417b7cdad0dd31cdf143b74a50cdf8ce5b
Support --arch and --os flags for arkade get
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> By default, the `arkade get` command will use the client cpu architecture and os (using `uname` command). The new flags will allow to override the default behavior, and download diff...
diff --git a/README.md b/README.md index dab14db21..e6ba2daf2 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,9 @@ arkade get APP@VERSION arkade get APP1 APP2 APP3 arkade get APP1 APP2@VERSION APP3 + +# Override machine os/arch +arkade get APP --arch ARCH --os OS ``` | TOOL | ...
5
4
1
[{"id": "G0", "claim": "The two new validation error messages start with a capital letter and print the arch/os lists as a raw Go array, and the reviewer asks that they be reformatted (lowercase start, human readable list).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
alexellis__arkade__548
alexellis/arkade
548
defect
aa4ddbb05dbf9affd068d6065de5ae92296d1870
404903703a61551be84980976a23e9a50362e7c6
Adding operator-sdk to list of tools
Signed-off-by: S. Shyam Sundar <!--- Provide a general summary of your changes in the Title above --> ## Description Adding new tool `operator-sdk` to arkade ## Motivation and Context - [x] I have raised an issue #547 to propose this change ([required](https://github.com/openfaas/faas/blob/master/CONTRI...
diff --git a/README.md b/README.md index 785adf8b1..401798535 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,7 @@ arkade get APP1 APP2@VERSION APP3 | nerdctl | Docker-compatible CLI for containerd, with support for Compose | | ...
2
2
0
[{"id": "G0", "claim": "The expected URLs in Test_DownloadOperatorSDK should be written as actual literal URLs instead of being constructed from owner/repo/version, so they can be copied and pasted when the upstream format changes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
alexellis__arkade__604
alexellis/arkade
604
defect
c6588f3311ca2fb6f747884ad0a8ba1a7ec4ca3b
8644c40f965017b0f890593cb81b07edc5c98d98
Add new tools: ekstctl
This tools help to create and manage Amazon EKS kubernetes cluster ## Description Add new entry for eksctl. ## Motivation and Context Fixes: #605 ## How Has This Been Tested? Run fine when trying it with the following command: arkade get eksctl ``` ./bin/arkade get eksctl Download...
diff --git a/README.md b/README.md index a5e375833..2cbd7b28c 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ arkade get faas-cli \ | dive | A tool for exploring each layer in a docker image | | docker-compo...
3
3
1
[{"id": "G0", "claim": "Before merge, unit tests must be added for the new eksctl tool covering all the download URLs on the GitHub releases page and in the template, including darwin_arm64.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The arm64 line ...
null
alexellis__arkade__611
alexellis/arkade
611
defect
7875bdd97b8e11340123719f35bc54be8c19864d
a5580c9bf0385e2250d73ec5dbd306f9a183b85b
Update kubeseal template
Signed-off-by: Yankee Maharjan <yankee.exe@gmail.com> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Closes #603 `kubeseal` updated their release format: - previous: binary - now: tar.gz Update the template to get the l...
diff --git a/pkg/get/get_test.go b/pkg/get/get_test.go index 6a486f7d6..873dff58d 100644 --- a/pkg/get/get_test.go +++ b/pkg/get/get_test.go @@ -412,24 +412,24 @@ func Test_DownloadKubeseal(t *testing.T) { tests := []test{ {os: "mingw64_nt-10.0-18362", arch: arch64bit, - version: "v0.12.4", - url: "...
1
1
1
[{"id": "G0", "claim": "The kubeseal entry should drop its pinned Version field so the version can be auto-detected, and the change should be tested again.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alexellis__arkade__629
alexellis/arkade
629
defect
378e19209bbd68a3dd4246ed90a67d4b4b82af40
09279a0c57396cd58cea43c732258473965772ff
add kubecm to `arkade get`
Signed-off-by: karthick-kk <kkzone@gmail.com> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Related to https://github.com/alexellis/arkade/issues/623, it adds the `kubecm` cli tool to arkade get ## Motivation and Context <!---...
diff --git a/README.md b/README.md index 679726dc9..cea5193d4 100644 --- a/README.md +++ b/README.md @@ -540,6 +540,7 @@ Note to contributors, run `arkade install --print-table` to generate this list | krew | Package manager for kubectl plugins. ...
3
3
2
[{"id": "G0", "claim": "If the kubecm tool's Version property is removed, the test's version literal should be changed to \"v0.16.2\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The kubecm tool entry should not set the Version property, since Gi...
null
alexellis__arkade__638
alexellis/arkade
638
defect
f0e67fa825e4c14bfab00029c82dd71922f0a211
09a8e19035655786300ae40301fe16dd9400441d
Add mkcert to arkade get
Signed-off-by: karthick-kk <kkzone@gmail.com> <!--- Provide a general summary of your changes in the Title above --> Related to https://github.com/alexellis/arkade/issues/637, it adds the mkcert cli tool to arkade get ## Description <!--- Describe your changes in detail --> ## Motivation and Context <!--- Why...
diff --git a/README.md b/README.md index cea5193d4..c57f494a2 100644 --- a/README.md +++ b/README.md @@ -553,6 +553,7 @@ Note to contributors, run `arkade install --print-table` to generate this list | mc | MinIO Client is a replacement for ls, cp, mkdir, diff and rsync commands for filesystems and objec...
2
1
1
[{"id": "G0", "claim": "Indicate in the pull request's 'How Has This Been Tested?' section that unit tests were added as well.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is an arm binary for mkcert, so add it to the download template and...
null
alexellis__arkade__679
alexellis/arkade
679
defect
be5a8cc594cbe860055ede8ec36635fcf36ae283
ece0bc309e001bf11d0a27f6d534f162532589f3
Add nats-server binary
## Description Add nats-server binary. ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> - [X] I have raised an issue to propose this change, which has been given a label of `design/approved` by a maint...
diff --git a/README.md b/README.md index 50a52fc66..e072d4e29 100644 --- a/README.md +++ b/README.md @@ -604,6 +604,7 @@ Note to contributors, run `arkade install --print-table` to generate this list | minikube | Runs the latest stable release of Kubernetes, with support for standard Kubernetes features. ...
1
1
1
[{"id": "G0", "claim": "The nats-server entry for Windows/ARM64 (os \"ming\", arch archARM64) should be removed, since nats-server publishes no Windows ARM binaries for the time being.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alexellis__arkade__710
alexellis/arkade
710
defect
59a76063c4321b53334636d83cf509f8eeb79c64
5eb180bcf899a67d3d842930e486377d338c8cd1
Add gomplate to `arkade get`
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> - [x] I have raised a...
diff --git a/README.md b/README.md index 53adcc293..47d0299e5 100644 --- a/README.md +++ b/README.md @@ -562,6 +562,7 @@ Note to contributors, run `arkade install --print-table` to generate this list | faas-cli | Official CLI for OpenFaaS. ...
1
1
0
[{"id": "G0", "claim": "The gomplate URLTemplate should not include the armv6l -> armv6 case, since armv6l is dropped by many projects nowadays and arkade has started to exclude it too.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alexellis__arkade__735
alexellis/arkade
735
defect
b004f9adb0f90c89ef1440f988685fd6b6111d3f
97ab89f182b72961e7c5141aa9e76bd11a92403b
feat: add Bun to tools
Signed-off-by: Engin Diri <engin.diri@mail.schwarz> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Add Bun to the list of available tools ## How Has This Been Tested? <!--- Please describe in detail how you tested your change...
diff --git a/README.md b/README.md index cac784fc6..5f39256ad 100644 --- a/README.md +++ b/README.md @@ -197,6 +197,7 @@ Run the following to see what's available `arkade system install`: containerd Install containerd firecracker Install Firecracker go Install Go + node Install No...
1
1
1
[{"id": "G0", "claim": "The new Bun template should not map the OS through ming*/linux/darwin cases that all echo .OS back, since bun does not support windows and the mapping adds unnecessary complexity; use {{ .OS }} directly in the final value.", "category": "correctness", "verdict": "supported", "priority": "P1", "s...
null
alexellis__arkade__793
alexellis/arkade
793
defect
2078d381b2c6a559273da840b632b5c6d7b97e96
b4402fc30ed5f9a2d5f5806cf3cb86ad9388ecba
add eksctl-anywhere
<!--- Provide a general summary of your changes in the Title above --> ## Description add eksctl-anywhere CLI solve #792 ## How Has This Been Tested? ``` make test ...
diff --git a/README.md b/README.md index f40c573bf..951e758c6 100644 --- a/README.md +++ b/README.md @@ -607,6 +607,7 @@ There are 56 apps that you can install on your cluster. | docker-compose | Define and run multi-container applications with Docker. ...
3
2
2
[{"id": "G0", "claim": "The pull request has not provided sufficient testing evidence - no console output from manual testing (hack/test-tool.sh) or the end-to-end test (make e2e) for the added tool - so it cannot be merged until that output is shown.", "category": "testing", "verdict": "supported", "priority": "P1", "...
null
alexellis__arkade__810
alexellis/arkade
810
defect
4203981d9aba373917eb7f77553467765dcffa7f
b152178aa9593c3b22491178983664e4a56ed314
Add support for clusterawsadm
Signed-off-by: Christophe Jauffret <reg-github@geo6.net> <!--- Provide a general summary of your changes in the Title above --> ## Description Add support for `clusterawsadm` CLI in arkade ## Motivation and Context - [X] I have raised an issue to propose this change, which has been given a label of `desi...
diff --git a/README.md b/README.md index cb1b8e24e..c6b175362 100644 --- a/README.md +++ b/README.md @@ -684,6 +684,7 @@ There are 56 apps that you can install on your cluster. | caddy | Caddy is an extensible server platform that uses TLS by default ...
2
2
1
[{"id": "G0", "claim": "windows x amd64 is missing from the clusterawsadm tool config even though that binary is published on the upstream releases page.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "arkade only supports ming x amd64, so the ming x...
null
alexellis__arkade__837
alexellis/arkade
837
defect
0f3b38e5ff7a58fb7ed60b44e096ffb0fcaf1084
bdb2118cfe3fed0630518e1c9a55efd7e6f4ae8e
Fix krew on Apple silicon
Signed-off-by: Richard Gee <richard@technologee.co.uk> ## Description Adds `arm64` for `darwin` into the tool templates as #836 looks like a possible Apple silicon gap. There was a `darwin_arm64` entry under the `ming` path in the template, so the `or` has been added in there too. ## Motivation and Context - [...
diff --git a/pkg/get/get_test.go b/pkg/get/get_test.go index 7e06485ac..23ffaf272 100644 --- a/pkg/get/get_test.go +++ b/pkg/get/get_test.go @@ -3312,38 +3312,56 @@ func Test_DownloadKrew(t *testing.T) { { os: "darwin", arch: arch64bit, - version: "v0.4.2", - url: `https://github.com/kubernet...
3
3
1
[{"id": "G0", "claim": "The url checker fails for kail because arkade's kail URL template omits the v prefix in the filename version (kail_0.16.1... instead of kail_v0.16.1...), producing a 404.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The n...
null
alexellis__arkade__924
alexellis/arkade
924
defect
f497d2e645f66376c1d85000884f14bce953003b
234a476a390d74476316fda82d7e0b9ff297be57
fix: arkade get inletsctl on linux aarch64 and mingw
## Description Fix `arkade get inletsctl` on linux aarch64 and mingw ## Motivation and Context Fixes #922 ## How Has This Been Tested? make e2e ``` --- PASS: Test_CheckTools/Download_of_inletsctl (0.62s) PASS github.com/alexellis/arkade/pkg/get coverage: 54.9% of statements ok github...
diff --git a/pkg/get/tools.go b/pkg/get/tools.go index 52dc2ba01..53e53d7f5 100644 --- a/pkg/get/tools.go +++ b/pkg/get/tools.go @@ -463,7 +463,7 @@ https://storage.googleapis.com/kubernetes-release/release/{{.Version}}/bin/{{$os {{- end -}} https://github.com/inlets/inletsctl/releases/download/{{.Version}}/{{$fileNa...
2
1
1
[{"id": "G0", "claim": "The pull request changes the inletsctl BinaryTemplate without any unit test covering the binary name it produces; add unit tests for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The test-runner for loop duplicated across mo...
null
alexellis__arkade__931
alexellis/arkade
931
defect
8618dcee2d882444269398d6b80089ba755ec019
c5996903e5a4e8c1349b46e94a20faee070a9a84
add vhs to arkade get
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> This PR adds vhs to arkade get ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue ...
diff --git a/README.md b/README.md index 31496eb58..e30c2f7ac 100644 --- a/README.md +++ b/README.md @@ -832,6 +832,7 @@ There are 56 apps that you can install on your cluster. | [vagrant](https://github.com/hashicorp/vagrant) | Tool for building and distributing development environments. ...
2
2
0
[{"id": "G0", "claim": "The pull request description is missing the required output of building and testing the tool (`go build && ./hack/test-tool.sh TOOL_NAME`), which arkade asks for when adding a new CLI to `arkade get`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
alexellis__arkade__959
alexellis/arkade
959
defect
a4dd6013ddcd55eb470776694a398f856afb47e4
303ddd1c391cf153187b9f5b8e17ef295f2306ef
Add etcd CLI to arkade
<!--- Provide a general summary of your changes in the Title above --> ## Description Add etcd CLI to arkade ## Motivation and Context Existing install process is clunky. Before (from [here](https://docs.k3s.io/advanced#using-etcdctl) and [here](https://etcd.io/docs/v3.5/install/)) ```bash ETCD_VERSI...
diff --git a/README.md b/README.md index d57c33236..556eda9b0 100644 --- a/README.md +++ b/README.md @@ -711,7 +711,6 @@ There are 56 apps that you can install on your cluster. | [bun](https://github.com/oven-sh/bun) | Bun is an incredibly fast JavaScript runtime, bundler, transp...
3
2
0
[{"id": "G0", "claim": "The new Test_DownloadEtcd table appears to duplicate the windows test: the 'ming' entry and the 'windows' entry generate the same windows-amd64 URL.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case for the d...
null
alexellis__arkade__998
alexellis/arkade
998
defect
59b0991f29e97847c7d62a03da64f37101b4c37c
0638b554c60a782ec7980bf1a7e2eea65bf40af2
`kwok` and `kwokctl` tools
resolves #991 ## Description Add `kwok` and `kwokctl` tools to arkade ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> - [X] I have raised an issue to propose this change, which has been given a l...
diff --git a/README.md b/README.md index bd15c0956..98d5ca46e 100644 --- a/README.md +++ b/README.md @@ -814,6 +814,8 @@ There are 56 apps that you can install on your cluster. | [kubeval](https://github.com/instrumenta/kubeval) | Validate your Kubernetes configuration files, supports multip...
2
1
1
[{"id": "G0", "claim": "The boz/kail release pipeline is failing so its latest release ships no binaries, and the author asks whether to pin a version for kail in this PR or handle it in a separate one.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": ...
null
alexellis__derek__104
alexellis/derek
104
defect
e7e86049220da32610bafa31977e35bb8cfe842d
68aff0664f79a3ad96d2084ce69be7a75bcbc40b
Add pr_content_check to features
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> This commit adds a new feature for pr_content_check This feature will verify that the incoming PR has something in the description (aka body) If there is no description, the invalid ...
diff --git a/USER_GUIDE.md b/USER_GUIDE.md index 62c79a9..2d5a770 100644 --- a/USER_GUIDE.md +++ b/USER_GUIDE.md @@ -60,6 +60,10 @@ redirect: https://raw.githubusercontent.com/openfaas/faas/master/.DEREK.yml If `dco_check` is specified in the feature list then Derek will inform you when a PR is submitted with commit...
11
7
1
[{"id": "G0", "claim": "The feature name should be more descriptive than `no_empty_pr`/`pr_content_check`, ending up as something like `pr_description_required` since the feature only checks the PR description.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
alexellis__derek__105
alexellis/derek
105
defect
e7e86049220da32610bafa31977e35bb8cfe842d
e3270adf765146757ef096fe3c34958ad66b9f7d
Turn on validate customers and hmac by default
Setting the customer validation and hmac validation on by default also moving customer validation into its own function so it can be tested more easily and extending the tests to showcase the logic the work was started by @ivanayov Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com> <!--- Provide a genera...
diff --git a/auth/customers.go b/auth/customers.go index 234d988..06592cc 100644 --- a/auth/customers.go +++ b/auth/customers.go @@ -32,10 +32,8 @@ func buildCustomerURL() string { // IsCustomer returns true if a customer is listed in the customers file. // The validation is controlled by the 'validate_customers' env...
2
2
0
[{"id": "G0", "claim": "The helper function `customerValidation` could be renamed to `useCustomerValidation` or `customerValidationEnabled` to show intent, since its name sounds like an action.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
alexellis__derek__114
alexellis/derek
114
defect
e89414b60bbf8fc5868bb7466592379620124bd6
6ffea8174ba418dc68ba3caefb34cde41695fea6
Allow slash alias all the time
Signed-off-by: Alex Ellis <alexellis2@gmail.com> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> - enables use of / as an alias for Derek commands all the time whether configured or otherwise - updates Makefile to run all unit t...
diff --git a/Makefile b/Makefile index 129585d..c6738f8 100644 --- a/Makefile +++ b/Makefile @@ -2,5 +2,8 @@ all: test build build: go build -o derek +docker: + faas-cli build -f derek.yml + test: - go test -cover + go test -v $(shell go list ./... | grep -v /vendor/ | grep -v /build/ | grep -v /template/) -cover...
1
1
1
[{"id": "G0", "claim": "getCommandTriggers should return the default trigger as \"Derek \" (with a trailing space) instead of \"Derek\", since commands are built by concatenating the trigger with the command text and the original default trigger included that space.", "category": "correctness", "verdict": "supported", ...
null
alexellis__derek__120
alexellis/derek
120
defect
0f7b1eccfe6944afe9e9d30330cd2ae00b377bc9
93d0304024dadb0616829f830f8b442fb8f8c6d1
Check if commit was signed by an anonymous email
Signed-off-by: Matias Pan <matias.pan26@gmail.com> <!--- Provide a general summary of your changes in the Title above --> This PR adds a check for when commits have an anonymous email address. ## Description <!--- Describe your changes in detail --> If at least one of the commits was signed with an email addre...
diff --git a/handler/pullRequestHandler.go b/handler/pullRequestHandler.go index b8440f7..5eb64a5 100644 --- a/handler/pullRequestHandler.go +++ b/handler/pullRequestHandler.go @@ -6,6 +6,7 @@ package handler import ( "context" "fmt" + "regexp" "strings" "os" @@ -23,6 +24,8 @@ const ( openedPRAction ...
2
2
1
[{"id": "G0", "claim": "Test_hasAnonymousSign should add a third test case covering the use-case where the commit message has no sign-off message at all.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Extract each comment message into its own function g...
null
alexellis__derek__125
alexellis/derek
125
defect
9b7c534e3fab211554fbdeef5e96587aea4264f6
2857122449773385941b48ab0501a919a6d6f18f
Add messages option
Adding messages option to the derek bot in order to apply tempaltes or boilerplate things that we write all the time. Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Ex...
diff --git a/USER_GUIDE.md b/USER_GUIDE.md index 76640cd..f38d0b0 100644 --- a/USER_GUIDE.md +++ b/USER_GUIDE.md @@ -53,6 +53,24 @@ If `comments` is given in the `features` list then this enables all commenting f > Note: All commands can be given with a prefix of either `Derek <command>` or `/<command>`. +### Feat...
11
10
0
[{"id": "G0", "claim": "In the YAML files the key `message` should perhaps be `messages`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Could we have an alias of `Derek msg`, so less typing is needed (e.g. on mobile)?", "category": "design", "verdict": ...
null
alexellis__derek__134
alexellis/derek
134
defect
938da6596fcb4759bb2e75293cde6c4d94a10f87
043f263b51d47432e9ff2104e8d7107822f8ec96
Add Hacktoberfest feature
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> This change adds the new feature `hacktoberfest` The goal of this feature is to find flyby pull requests that are considered spam. A pull request that is a first time contributor, not si...
diff --git a/handler/pullRequestHandler.go b/handler/pullRequestHandler.go index e7cf7cb..ad9b749 100644 --- a/handler/pullRequestHandler.go +++ b/handler/pullRequestHandler.go @@ -26,6 +26,49 @@ const ( var anonymousSign = regexp.MustCompile("Signed-off-by:(.*)noreply.github.com") +// HandleHacktoberfestPR checks...
7
4
2
[{"id": "G0", "claim": "fetchPullRequestCommits() does not return the list of changed files although the struct carries them, so the feature needs another method for getting the pull request files.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Dere...
null
alexellis__derek__136
alexellis/derek
136
defect
041b877400596f1b46ed68fcc6105925366b3349
22ec3e9e45f38362c3f46ce34963d1715690d486
Hacktoberfest update
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Updates to the Hacktoberfest feature from the comments on the original PR #134 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If ...
diff --git a/handler/hacktoberfest_handler.go b/handler/hacktoberfest_handler.go index fa0adac..56794b1 100644 --- a/handler/hacktoberfest_handler.go +++ b/handler/hacktoberfest_handler.go @@ -16,19 +16,18 @@ import ( ) const ( - prDescriptionRequiredLabel = "invalid" - openedPRAction = "opened" + hackt...
3
2
1
[{"id": "G0", "claim": "The hacktoberfest handler runs the sign-off spam-comment path regardless of the sign-off check, so the spam comment (and label) keeps being added no matter what happens — the author suspects a race where isSpam is not yet returned before the next feature runs.", "category": "correctness", "verdi...
null
alexellis__derek__16
alexellis/derek
16
defect
07f58c6728331ee309bff46a23a429eab60e871e
b95bc5ed646cf1609b96682977759cb3a5ebf3b2
Provision to use bespoke maintainers file through maintainers_file envVar
Signed-off-by: rgee0 <richard@technologee.co.uk> Enables users to specify a maintainers file via a maintainers_file Env Var. Also added a test for the new getEnv function and consolidated earlier tests into the same file, adding additional cases in the process.
diff --git a/commentHandler.go b/commentHandler.go index e2d65fc..95c902d 100644 --- a/commentHandler.go +++ b/commentHandler.go @@ -16,6 +16,8 @@ import ( const open = "open" const closed = "closed" +const maintFileEnvName = "maintainers_file" +const defaultMaintFile = "MAINTAINERS" func makeClient() (*github.C...
5
2
0
[{"id": "G0", "claim": "The env var constant should be named maintainersEnv or maintainersFileEnv instead of maintFileEnvName.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use the http.MethodGet constant instead of the \"GET\" string literal i...
null
alexellis__derek__27
alexellis/derek
27
defect
35d732d8f1643acd3fb2d971fc87159a93c04623
da8ae96a4ce3948b20d2328ee9d3a624b2300496
Set title / double action bug / pullRequest tests / lock issue
Fixes #21 Fixes #24 Fixes #15 Fixes #28 Summary of changes: * Added `go test` to Dockerfile. * Added a check that the issue_comment webhook action isn't `deleted` before taking action, as this was causing Derek to re-trigger when comments originally aimed at Derek deleted. * Added a check that the pull_re...
diff --git a/Dockerfile b/Dockerfile index 6f17a26..cbf17f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ FROM golang:1.9.2-alpine as build RUN mkdir -p /go/src/github.com/alexellis/derek WORKDIR /go/src/github.com/alexellis/derek COPY . . + +RUN go test $(go list ./...) -cover + RUN CGO_ENABLED=0 GOOS=l...
3
1
0
[{"id": "G0", "claim": "Rename `assessState` (and the `validAction` variable) to clearer names such as `isValidAction` or `validTransition`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Break the growing inline comment-handling block out into ...
null
alexellis__derek__34
alexellis/derek
34
defect
58340d5b6b05bdd0d393a8b8e2bde51dbbdaeef6
274b6cc75b74d33f28f6507e7c7ee15ddd38b1df
Moved out handleComment code into separate functions. Added edit title.
Summary of changes: Moved out handleComment code into separate functions. Added tests for new helper functions. Added edit title as an alias for set title Updated README Factored out log.Fatal Altered main.go such that a http 500 is not longer seen when an unexpected X_Github_Event is received Extracted co...
diff --git a/README.md b/README.md index 3d51827..eaa18f3 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,10 @@ Let's say a user raised an issue with the title `I can't get it to work on my co ``` Derek set title: Question - does this work on Windows 10? ``` +or +``` +Derek edit title: Question - does this work ...
6
4
1
[{"id": "G0", "claim": "The assignment message should print the issue number with a '#' as in 'issue #%d', consistent with the other messages.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The log message 'X_Github_Event was uninteresting' is t...
null
alexellis__derek__49
alexellis/derek
49
defect
19222339aa39b4688fabb9e26de50975eba8931b
a61c57a7a314a4880a382dee4b1cc43f172b9fd1
Add support for `assign reviewer`
This adds support for comments like `Derek assign reviewer: username`. Works only with a single reviewer for the moment. Raised in issue [#48](https://github.com/alexellis/derek/issues/48) Signed-off-by: Ivana Yovcheva <iyovcheva@vmware.com> <img width="924" alt="screen shot 2018-11-22 at 17 18 53" src="ht...
diff --git a/commentHandler.go b/commentHandler.go index a0a810f..772f8f4 100644 --- a/commentHandler.go +++ b/commentHandler.go @@ -24,6 +24,8 @@ const assignConstant string = "Assign" const unassignConstant string = "Unassign" const removeLabelConstant string = "RemoveLabel" const addLabelConstant string = "AddLab...
5
4
2
[{"id": "G0", "claim": "The command would be briefer as `Derek review: <user>` instead of `Derek assign reviewer`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`ClosedConstant` should not be capitalised when the other constants are lowercase.", "catego...
null
alexellis__derek__54
alexellis/derek
54
defect
32ab31824e44ce93b8e3eb9ff014deaac5c4ef4b
e3752b6fb6c1a6adba3b3a6d8ddb6b4f9e38e2f0
[Merge/release] Accommodate custom .CUSTOMERS via ENV var
The existing location of the .CUSTOMERS file is hard-coded which means that anyone self hosting will need to either add an entry into the project .CUSTOMERS, or alter the source code to point at their own location. This change enables an over-ride of the default .CUSTOMERS location by setting an `customers_url` e...
diff --git a/GET.md b/GET.md index e2e8780..6ac9af3 100644 --- a/GET.md +++ b/GET.md @@ -40,7 +40,7 @@ $ docker build -t derek . ### Configure stack.yml: -This is where Derek finds the details he needs to do the work he does. The main area that will need to be updated is the application variable. The gateway val...
4
2
0
[{"id": "G0", "claim": "The env var and identifiers should be renamed from customers_yaml/customerYAML to customers_url/customersURL, since the destination is a URL to a newline-separated file rather than YAML, to avoid ambiguity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
alexellis__derek__73
alexellis/derek
73
defect
2e8848775a3d6a4d2386bf96a34130bf035dcc41
caed36313ca506f16e80f628bb356de09bc117f6
Remove newlines from file where webhook secret is stored
We need to check if newlines are present in the file where we load our docker secrets from.Some editors may add extra newline at the end making the secret invalid. Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com> <!--- Provide a general summary of your changes in the Title above --> Adding check to s...
diff --git a/main.go b/main.go index cd0d115..a5a8b9d 100644 --- a/main.go +++ b/main.go @@ -9,6 +9,7 @@ import ( "io/ioutil" "net/http" "os" + "strings" log "github.com/Sirupsen/logrus" "github.com/alexellis/derek/auth" @@ -69,6 +70,10 @@ func main() { os.Exit(1) } + if newLine := strings.Index(s...
2
2
1
[{"id": "G0", "claim": "The secret should be cast to a string only once, stored in a variable and re-used, ideally by extracting a small function for the newline-removal logic so that it can be unit tested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
alexellis__derek__75
alexellis/derek
75
defect
fa1f0e667a2418dcacabb8708075bf1e296c34d1
1fc76084ec80539e962baf194bad665c22ec17be
Mrtind/74 milestones support
<!--- Provide a general summary of your changes in the Title above --> We needed to add support for managing milestones. ## Description <!--- Describe your changes in detail --> I added function manageMilestones to support the milestones. Extended types.go fields adding milestones to get the title of the mi...
diff --git a/commentHandler.go b/commentHandler.go index d122895..f6c0e77 100644 --- a/commentHandler.go +++ b/commentHandler.go @@ -17,17 +17,19 @@ import ( ) const ( - openConstant string = "open" - closedConstant string = "closed" - closeConstant string = "close" - reopenConstant string = ...
14
11
1
[{"id": "G0", "claim": "Add examples for the new milestone commands to README.md, right under the existing examples for labels.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite the nilMilestone call site as a single if statement that checks ...
null
alexellis__derek__86
alexellis/derek
86
defect
ba1f6c6ef80e514dd9d5a5ff3712e307066aefeb
e712cb81b7170dc690f0e0d3241bcff60abe0b43
Prevent maintainers to remove the no-dco label
Checks if the maintainer wants to remove no-dco label and if so it prevents them from doing that. Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com> <!--- Provide a general summary of your changes in the Title above --> Prevents maintainers to remove no-dco label with ```Derek remove label: no-dco```. ...
diff --git a/commentHandler.go b/commentHandler.go index a910453..2da8686 100644 --- a/commentHandler.go +++ b/commentHandler.go @@ -142,7 +142,12 @@ func manageLabel(req types.IssueCommentOuter, cmdType string, labelValue string) if cmdType == addLabelConstant { _, _, err = client.Issues.AddLabelsToIssue(ctx, req...
3
2
1
[{"id": "G0", "claim": "The forbidden-removal message should be returned to the user and the log/message should include the user who requested the removal (and ideally advise that signing the commit lets Derek remove the label).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
alexellis__k3sup__142
alexellis/k3sup
142
defect
1930f657babb99c2e4de7c1c17fb45bd64a8bea4
9751b155050262ad26ac744dc5e94259c4352d5d
Adds --set flag to openfaas command
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Add a `--set` flag to `k3sup app install openfaas` command. The current implementation contains hard-coded flags that are being passed to `openfaas` installation. This command lets the us...
diff --git a/pkg/cmd/openfaas_app.go b/pkg/cmd/openfaas_app.go index 82409ef8..7970144b 100644 --- a/pkg/cmd/openfaas_app.go +++ b/pkg/cmd/openfaas_app.go @@ -10,8 +10,8 @@ import ( "github.com/sethvargo/go-password/password" - "github.com/alexellis/k3sup/pkg/env" "github.com/alexellis/k3sup/pkg/config" + "gith...
4
4
1
[{"id": "G0", "claim": "The pull request deleted the PR template and provides no testing evidence; restore the template and add testing console output so the PR can be merged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the mergeFlags pa...
null
alexellis__k3sup__164
alexellis/k3sup
164
defect
aacbb62f00b21a8f72b8106bf58e2279f63c6523
029e8e2e47850d478509d45b0843c7f08a41e635
apps: add crossplane
Signed-off-by: hasheddan <georgedanielmangum@gmail.com> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Adds an `app install` command for installing Crossplane into a k3s cluster. ## Motivation and Context <!--- Why is this ch...
diff --git a/README.md b/README.md index afe3214b..ca66d517 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,7 @@ Apps that you can install today: * postgresql * kubernetes-dashboard * istio +* crossplane Want to request an app? [Raise an issue](https://github.com/alexellis/k3sup/issues) or let me know on [S...
3
2
0
[{"id": "G0", "claim": "Maybe put out a message and error out when the node architecture is not PC, since there is no support for armhf and similar architectures.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "This is my crude filtering of compati...
null
alexellis__k3sup__278
alexellis/k3sup
278
defect
e6946222e5419bd9defc864fac510bc9805fd2a6
589d9950fbcd6565b9bbea3d4725d1075904867d
Add makeJoinExec function to scaffold SSH commands
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Added `makeJoinExec` function to scaffold SSH commands replacing string interpolated command generation. Added tests for both `setupAdditionalServer` and `setupAgent`. ## Motivation ...
diff --git a/cmd/join.go b/cmd/join.go index 2a2212e7..7b8fefbc 100644 --- a/cmd/join.go +++ b/cmd/join.go @@ -98,6 +98,8 @@ func MakeJoin() *cobra.Command { sudoPrefix = "sudo " } + fmt.Println("sudo prefix", sudoPrefix) + sshKeyPath := expandPath(sshKey) authMethod, closeSSHAgent, err := loadPublick...
5
5
0
[{"id": "G0", "claim": "The `curl -sfL https://get.k3s.io` URL is repeated across the agent, agent-server and server install commands instead of being defined in one place.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "makeJoinExec should build...
null
alexellis__k3sup__40
alexellis/k3sup
40
defect
7d954414def98c52ae1f6de08ac5317e4260e673
281de33479ba41590bd6a5aca5f2f0be64492c62
Add context flag to server command
## Description This flag can be used to define what name to use as context in the generated kubeconfig file. The default is default. Closes #39 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> - [...
diff --git a/README.md b/README.md index f986eec0..35120d05 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ Other options for `install`: * `--skip-install` - if you already have k3s installed, you can just run this command to get the `kubeconfig` * `--ssh-key` - specify a specific path for the SSH key for re...
4
3
1
[{"id": "G0", "claim": "The PR should show evidence of testing and of the kubeconfig file between runs with the default and an overridden context.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Setting --context to the empty string would replace t...
null
alexellis__k3sup__65
alexellis/k3sup
65
defect
b4754d3c689ef0fa8b18162df4499511e6d1a628
832ce210bdec3f42cdab472dd35cad833c93d71c
Add openfaas-ingress app installation command
Signed-off-by: Alistair Hey <alistair.hey@gmail.com> Closes #57 <!--- Provide a general summary of your changes in the Title above --> Created a k3sup app that installs OpenFaas ingress and a cert-manager ClusterIssuer for a https endpoint ## Description <!--- Describe your changes in detail --> ## Motiv...
diff --git a/.gitignore b/.gitignore index fe34d670..7f771778 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ k3sup bin/** kubeconfig .DS_Store +.idea/ diff --git a/pkg/cmd/apps.go b/pkg/cmd/apps.go index 788f3536..f651e2b0 100644 --- a/pkg/cmd/apps.go +++ b/pkg/cmd/apps.go @@ -41,10 +41,11 @@ func MakeApps...
13
13
4
[{"id": "G0", "claim": "The deprecated certmanager.k8s.io/acme-challenge-type: http01 annotation should be removed (the reviewer asked whether it had moved to cert-manager.io, and the author confirmed the new solver syntax makes it obsolete).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
alexevanczuk__packs__103
alexevanczuk/packs
103
defect
0dc82f6a12175d2c7443b1b4740f8120d36dcaa8
dba8615aab9281a9768322cd927dc8ba471718a8
Add option to ignore recorded violations
This adds a command-line option `--ignore-recorded-violations` to `check` and `check-contents` commands that skips filtering out recorded violations. This is especially useful in editor integrations to see all the violations, even those recorded in `package_todo.yml`.
diff --git a/src/packs/checker.rs b/src/packs/checker.rs index 121fba0d..97beca85 100644 --- a/src/packs/checker.rs +++ b/src/packs/checker.rs @@ -112,10 +112,17 @@ pub(crate) fn check_all( let recorded_violations = &configuration.pack_set.all_violations; debug!("Filtering out recorded violations"); - le...
1
1
1
[{"id": "G0", "claim": "Add a test for the new ignore-recorded-violations behavior, suggested in `check_test.rs`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alexevanczuk__packs__124
alexevanczuk/packs
124
defect
1d25bbab1175916f5d0bdab13798c77ecc16c324
254fd450629f5607aa138c7bd480cfd6355d812f
Remove unnecessary dependencies
Adds an `--auto-correct` option to `pks check-unnecessary-dependencies`. When the `auto-correct` option is provided, the unnecessary dependencies are removed from their package.yml files. Additionally, the dependencies are deduped and sorted.
diff --git a/src/packs.rs b/src/packs.rs index cfaadc02..56950cc0 100644 --- a/src/packs.rs +++ b/src/packs.rs @@ -168,8 +168,13 @@ pub fn configuration(project_root: PathBuf) -> Configuration { pub fn check_unnecessary_dependencies( configuration: &Configuration, + auto_correct: bool, ) -> Result<(), Box<d...
4
4
0
[{"id": "G0", "claim": "Asks whether there is a better way than hand-building the path with format! to get the full path of a pack's package.yml.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hand-rolled reading and rewriting of package.yml should b...
null
alexevanczuk__packs__127
alexevanczuk/packs
127
defect
f6b27ac2fc1ee1f7d0e1f2c86e371853c5e9ea1f
9bdd672dcb7c20e03a301580896f73189d875665
Validate architecture layers
`packerk validate` reports architecture errors if a package.yml's dependency references a pack in a "higher" layer. This PR adds this validation to `pks validate`.
diff --git a/Cargo.toml b/Cargo.toml index cc7fea70..8a6829dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "pks" -version = "0.1.79" +version = "0.1.80" edition = "2021" description = "Welcome! Please see https://github.com/alexevanczuk/packs for more information!" license = "MIT" di...
3
3
0
[{"id": "G0", "claim": "The reviewer suggests renaming `is_architecture_dependency` to `dependency_permitted?` and inverting it so it returns true when the dependency is okay.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The architecture validation log...
null
alexevanczuk__packs__149
alexevanczuk/packs
149
defect
a66f09b6a0a14607496b5e2ddb5e65a034990fb7
f54852a79c59bd90ac02924e00368f3155ba81ee
Initial pass at an `init` command
As discussed in #144 an init command might be nice. This is probably the first time I have ever written any Rust so I just tried copying things I saw in the existing implementation and did some work arounds to compile errors using ChatGPT. Ideally someone with some experience could help turn this into a proper ...
diff --git a/src/packs.rs b/src/packs.rs index 7c3ecf4e..9bf529d2 100644 --- a/src/packs.rs +++ b/src/packs.rs @@ -45,6 +45,53 @@ pub fn greet() { println!("👋 Hello! Welcome to packs 📦 🔥 🎉 🌈. This tool is under construction.") } +pub fn init(path: &PathBuf) { + let root_package = "\ +# This file represe...
6
5
2
[{"id": "G0", "claim": "The new `init` command should get an integration test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The init command should write only one YML config file to start, preferably `packs.yml` referencing `pks` commands instead of p...
null
alexevanczuk__packs__164
alexevanczuk/packs
164
defect
5b526bf91f21a86e8da260503849d479ca3fb40d
eb1b4c4eb208d4718c1fef7fec87ccb074b37316
List pack dependents
Answers the question: what packs depend on the provided pack? `pks list-pack-dependents <pack_name>` will list the "public" dependents (better name?) and the dependents in violation (not using public API).
diff --git a/src/packs.rs b/src/packs.rs index ecf9409d..5d34b890 100644 --- a/src/packs.rs +++ b/src/packs.rs @@ -7,6 +7,7 @@ pub(crate) mod caching; pub(crate) mod checker; pub(crate) mod configuration; pub(crate) mod constant_resolver; +pub(crate) mod dependents; pub(crate) mod monkey_patch_detection; pub(crate...
1
1
1
[{"id": "G0", "claim": "The dependents naming (`public_dependents`/`violation_dependents`) conflates privacy with dependency checking; the reviewer suggested calling these `explicit` and `implicit` dependencies/dependents instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alexevanczuk__packs__64
alexevanczuk/packs
64
defect
957d4354954b2f786a6e71ed13f4ca3b86634125
65aa07f39603d3e76d071aabd13b2eb6781511d0
Add dependency cycle detection
- make test pass trivially - make test pass in another way - write failing test - make tests pass - write another failing test - make tests pass - update docs - update version - always run reference checking and validation - two new lines instead of one
diff --git a/Cargo.toml b/Cargo.toml index 8ca874b3..45e9f9ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "pks" -version = "0.1.42" +version = "0.1.43" edition = "2021" description = "Welcome! Please see https://github.com/alexevanczuk/packs for more information!" license = "MIT" @@...
2
1
1
[{"id": "G0", "claim": "Typo in the error message added by this PR: `from` should be `form`.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Dependency-cycle detection runs under `packs check` (validation wired into check_all) whereas packwerk's `c...
null
alexevanczuk__packs__75
alexevanczuk/packs
75
defect
10cfc3948d26e011f8fd92f0566c644febe4af1f
d36bc2b1fdbfd61880b9c66760fcb9563d034992
Implement check-contents subcommand
This PR implements a command that checks file contents piped though standard input. The command also takes a file path so that it knows where the file is supposed to be located and what constraints apply. The intent is to use this command to implement as-you-type linters in IDEs. ``` $ cat foo/bar.rb | packs che...
diff --git a/src/packs.rs b/src/packs.rs index 6f3002d9..041b0f20 100644 --- a/src/packs.rs +++ b/src/packs.rs @@ -19,6 +19,7 @@ mod walk_directory; // Re-exports: Eventually, these may be part of the public API for packs pub(crate) use crate::packs::checker::Violation; +use crate::packs::file_utils::FileSource; p...
4
2
1
[{"id": "G0", "claim": "The new check-contents command ships with no test coverage; add a simple integration test for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The nested if/else in Configuration::get_cache could be collapsed into a single comb...
null
alexeyraspopov__dataclass__7
alexeyraspopov/dataclass
7
defect
090a024672226daedd10fafe05174fc95d010981
a992a65e64f3aa21fa508aaab33c6827984ede3c
support toJSON with embedded dataclass
fix currently dataclass with embedded dataclass cannot be correctly serialize to JSON. Also dataclass with non-primitive value cannot be correctly compare by equals which have no fix at the moment
diff --git a/modules/Record.js b/modules/Record.js index c5ab3bf..6243ce9 100644 --- a/modules/Record.js +++ b/modules/Record.js @@ -54,7 +54,8 @@ export default class Record { let result = {}; for (let key in this.constructor[defaults]) { - result[key] = this[key]; + let value = this[key] + ...
3
2
1
[{"id": "G0", "claim": "Test for `typeof value.toJSON === 'function'` before calling it, to make sure the call is possible on an embedded value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Don't forget the semicolons on the newly added statements...
null
alexflint__go-arg__104
alexflint/go-arg
104
defect
ced05bfe8a0f966d6ed09af656f5410bc5f4ed7c
cfd894f446f356ed1c0fb37d88aee8c34bb4e40c
Subcommands usage simple
This PR fixes the case 1, backward-compatible, of #103.
diff --git a/example_test.go b/example_test.go index ea123e4..be3cd12 100644 --- a/example_test.go +++ b/example_test.go @@ -193,7 +193,7 @@ func Example_helpTextWithSubcommand() { MustParse(&args) // output: - // Usage: example [--verbose] + // Usage: example [--verbose] <command> [<args>] // // Options: /...
1
1
1
[{"id": "G0", "claim": "The hint condition should drop `p.cmd == cmd` and use `len(cmd.subcommands) > 0` instead of `len(p.cmd.subcommands) > 0`, so that `./program --help` shows the subcommand hint and nested subcommands get the hint too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
alexflint__go-arg__106
alexflint/go-arg
106
defect
ced05bfe8a0f966d6ed09af656f5410bc5f4ed7c
decddb8ac55708b07c38b1c5f609d192fb974083
Subcommand usage options
Fixes #101 Includes a change to the semantics of `WriteUsage` and `WriteHelp`. In particular, you can now call `p.Parse(args)` in a manner which includes a subcommand, and then the writers will pick up on that and print the help for the subcommand text instead. This was needed to write a sane unit test for the u...
diff --git a/example_test.go b/example_test.go index ea123e4..12d807a 100644 --- a/example_test.go +++ b/example_test.go @@ -235,7 +235,8 @@ func Example_helpTextForSubcommand() { // Positional arguments: // ITEM item to fetch // - // Options: + // Global options: + // --verbose // --hel...
2
2
0
[{"id": "G0", "claim": "In usage_test.go the assignment `err = p.Parse(...)` is ineffectual because the error is never used afterwards (ineffassign lint warning).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop appending each ancestor sp...
null
alexflint__go-arg__172
alexflint/go-arg
172
defect
bf32f082479c88da7bcf4c4765a70e3a357d9dfc
a87d80089a78b707d9e4fbd7061e54e7e834688d
Add 'IgnoreDefault' option
The ability to ignore default values can be used to override values in a struct already populated by a configuration file.
diff --git a/README.md b/README.md index dab2996..7f1fdca 100644 --- a/README.md +++ b/README.md @@ -134,10 +134,10 @@ arg.MustParse(&args) ```shell $ ./example -h -Usage: [--verbose] [--dataset DATASET] [--optimize OPTIMIZE] [--help] INPUT [OUTPUT [OUTPUT ...]] +Usage: [--verbose] [--dataset DATASET] [--optimize ...
1
1
1
[{"id": "G0", "claim": "The subcommand field instantiation should keep its existing behavior of setting a non-nil struct pointer even when IgnoreDefault is set, and alexflint asks that the condition be simplified to just `if v.IsNil()`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
alexflint__go-arg__198
alexflint/go-arg
198
defect
11f9b624a9e5ee803b3810d2329fb027662c69f4
f60d51c51ecba885e4c47dcc31a18ed2b1549485
Implement MustParse on Parser
This moves most of the body of the MustParse function into a MustParse method on a Parser. The MustParse function is now implemented by calling the MustParse method on the Parser it implicitly creates. Closes: #194
diff --git a/parse.go b/parse.go index c8cd79e..dc87947 100644 --- a/parse.go +++ b/parse.go @@ -82,18 +82,7 @@ func MustParse(dest ...interface{}) *Parser { return nil // just in case osExit was monkey-patched } - err = p.Parse(flags()) - switch { - case err == ErrHelp: - p.writeHelpForSubcommand(stdout, p.las...
2
1
1
[{"id": "G0", "claim": "exitCode is declared as an int, so the require.NotNil assertion on it is vacuous and the reviewer thinks it should have been a *int.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "Shouldn't parsing an empty argument list still re...
null
alexflint__go-arg__222
alexflint/go-arg
222
defect
e25b4707a7d6c63ff6910c1e1bcb416cb8debfb2
18623d869bfb7aa7b87eda2c8dc7d1bf6149f316
Support for parameters which can only be passed via env
Args from CLI can be disabled by "nulling" them using dashes without a value. - Closes #179 - Continuation of #182 (@padilo) ```golang var args struct { ApiKey string `arg:"required,-,--,env:API_KEY" help:"Only via env-var for security reasons"` Trace bool `arg:"--,env" help:"Record low-lev...
diff --git a/example_test.go b/example_test.go index 5272393..4bd7632 100644 --- a/example_test.go +++ b/example_test.go @@ -496,3 +496,45 @@ func Example_allSupportedTypes() { // output: } + +func Example_envVarOnly() { + os.Args = split("./example") + _ = os.Setenv("AUTH_KEY", "my_key") + + defer os.Unsetenv("AU...
2
1
1
[{"id": "G0", "claim": "The env-only support should not need an envOnly field on spec, the emptyLongAndShort helper, a kvPairs variable, or the relaxed short-option length check, because checking spec.short == \"\" && spec.long == \"\" as in padilo's original PR #182 is enough, so parse.go (and usage.go) should be set ...
null
alexflint__go-arg__258
alexflint/go-arg
258
defect
ec0ced74672ea46c7b57cea1bb44e18cf9237a8a
c3eb8f9a067087f0d26418f39b3c05e3a43a8f16
Add support for setting a global env var prefix
This PR implements support for setting a global env var prefix (see linked issue). While writing common reusable args structs for our Go programs today, I realized on the value and usefulness of this feature in real-world applications and decided to implement it for `go-arg`. The implementation adds a new `EnvPrefi...
diff --git a/README.md b/README.md index 4d23034..cccf46c 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,28 @@ $ NUM_WORKERS=6 ./example --count 4 Workers: 4 ``` +You can configure a global environment variable name prefix: + +```go +var args struct { + Workers int `arg:"--count,env:NUM_WORKERS"` +} + +p, er...
1
1
0
[{"id": "G0", "claim": "The library should not hard-code an underscore between the configured env var prefix and the variable name; instead let the user put the underscore in the prefix themselves, since a prefix without an underscore will be needed.", "category": "design", "verdict": "supported", "priority": "P2", "sc...
null
alexflint__go-arg__294
alexflint/go-arg
294
defect
1f6498e8a3123322667ff8b863c9d772d6123a14
bdd96d0e75483e07c4be6fa5fef5575fabf5062a
feat: add function to override default envvar name
Addresses https://github.com/alexflint/go-arg/issues/293
diff --git a/parse.go b/parse.go index 2ecda26..77e1d7d 100644 --- a/parse.go +++ b/parse.go @@ -10,6 +10,7 @@ import ( "path/filepath" "reflect" "strings" + "unicode" scalar "github.com/alexflint/go-scalar" ) @@ -119,6 +120,51 @@ func flags() []string { return os.Args[1:] } +// DefaultEnvNameFunc is a ...
2
2
1
[{"id": "G0", "claim": "For now the PR should not export any of the new types or functions in parse.go: the new config field should carry the type func(field reflect.StructField) string inline, and the DefaultEnvNameUpper/DefaultEnvNameUpperSnake helpers should be left out of the library (using strings.ToUpper directly...
null
alexflint__go-arg__62
alexflint/go-arg
62
defect
0cc8e30fd64c8c71d094be299ad424da93ef9aed
d4cc703210ff08d7bc4f73bfbec1e51eda29a5a4
Custom parsers implementing encoding.TextMarshaler() can have default…
… values printed via --help Very useful for directly embedding custom types into cmdline param structs.
diff --git a/README.md b/README.md index 18dc556..f3d1bfc 100644 --- a/README.md +++ b/README.md @@ -265,15 +265,33 @@ func (n *NameDotName) UnmarshalText(b []byte) error { return nil } +// optional, implement in case you want to use defaults +func (n *NameDotName) MarshalText() (text []byte, err error) { + text =...
1
1
0
[{"id": "G0", "claim": "The comment above MarshalText should read \"optional: implement in case you want to display a default value in the usage string\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
alexflint__go-arg__65
alexflint/go-arg
65
defect
074ee5f759999d103724b5594e33901adeb28e73
fa5fe315f85333e5e7dc0b2147cbe3aae3e4afce
Fix providing multiple values via environment variables
Providing values to a slice of strings (or any other type of slices) resulted in an error like this one: `error: error processing environment variable EXAMPLE: cannot parse into []string`.
diff --git a/README.md b/README.md index e8b62a4..8980ba1 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,21 @@ $ NUM_WORKERS=4 ./example Workers: 4 ``` +You can provide multiple values using the CSV (RFC 4180) format: + +```go +var args struct { + Workers []int `arg:"env"` +} +arg.MustParse(&args) +fmt.Prin...
3
3
3
[{"id": "G0", "claim": "Parsing JSON by default is not a good way to support multiple values via environment variables because it is too difficult to discover; the pull request should use a format resembling the standard way of putting multiple values into an env var (as envconfig does) instead of JSON.", "category": "...
null
alexflint__go-arg__96
alexflint/go-arg
96
defect
c0c7a3ba8a1854cd85e65cca4f0e2028698a0738
904e03926794663089b73d52a02def065d819200
Added the "placeholder" tag
Currently, the data placeholder in help is named as uppercased `spec.long`. This looks bad and redundant if `spec.long` is a long name. Here's an example from my project: ``` Options: --parallel-uploads PARALLEL-UPLOADS, -j PARALLEL-UPLOADS maximum number of concurrent uploads ``` I p...
diff --git a/example_test.go b/example_test.go index f71fbeb..3f7f2ab 100644 --- a/example_test.go +++ b/example_test.go @@ -135,6 +135,42 @@ func Example_helpText() { // --help, -h display this help and exit } +// This example shows the usage string generated by go-arg with custom datanames +func Ex...
4
4
1
[{"id": "G0", "claim": "The tag should be called \"placeholder\" rather than \"dataname\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The placeholder should be a separate struct tag rather than a key inside the \"arg\" tag.", "category": "de...
null
alexisthual__fugw__14
alexisthual/fugw
14
defect
a90f418029d7a353fd61c19b87e97b55c7e4997f
0e70fede1cbf40ccf95e29479e412ec6d23a88b5
Add L2 solver for FUGW
Add solver when all the divergences in FUGW are L2-squared (instead of KL)
diff --git a/src/fugw/solvers/dense.py b/src/fugw/solvers/dense.py index 29e23efd..5221eb2b 100644 --- a/src/fugw/solvers/dense.py +++ b/src/fugw/solvers/dense.py @@ -7,11 +7,12 @@ from fugw.solvers.utils import ( BaseSolver, compute_approx_kl, - compute_kl, - compute_quad_kl, + compute_quad_diverge...
1
1
0
[{"id": "G0", "claim": "Move the `divergence` argument inside `hyperparams` in the dense solver's cost/loss methods, since all variables defining the shape of the loss function live there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alexisthual__fugw__20
alexisthual/fugw
20
defect
d21bfab9799e56274807d73e5f2c75171c400d49
e931f59c4d181cabbd547930df8a93f2371dcc8c
Fugw loss on val features
Small changes to compute the fugw loss on validation features : - Adds the ability to compute the loss at each BCD iteration on a validation set comprised of feature maps/anatomical kernels (or both); - New unit tests; - Warnings and error messages when lacking or incorrect data is passed.
diff --git a/examples/03_validation_set/plot_1_simple_crossval.py b/examples/03_validation_set/plot_1_simple_crossval.py new file mode 100644 index 00000000..54d110e5 --- /dev/null +++ b/examples/03_validation_set/plot_1_simple_crossval.py @@ -0,0 +1,136 @@ +# %% +""" +==================================================...
6
6
2
[{"id": "G0", "claim": "The returned key \"validation_loss\" should be renamed to a loss-prefixed name (e.g. \"loss_val\") for consistency with the other keys.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The example should use nilearn's image.resample...
null
alexisthual__fugw__38
alexisthual/fugw
38
defect
ab9370bbd8de2e2a0690e2985a4c3261bd22cc2c
afefc09d3729de4858884d482663709481e8120b
[Fix] Cases alpha = 0 or alpha = 1
Fixes #35. TODO list : - [x] Fix the issue for the dense solver - [x] Fix the issue for the sparse solver - [x] Implement new tests failing under the previous conditions
diff --git a/src/fugw/solvers/dense.py b/src/fugw/solvers/dense.py index c3b1ced5..e5bef02a 100644 --- a/src/fugw/solvers/dense.py +++ b/src/fugw/solvers/dense.py @@ -46,7 +46,7 @@ def local_biconvex_cost( pi1, pi2 = pi.sum(1), pi.sum(0) - cost = torch.zeros_like(D) + cost = torch.zeros_like(...
2
1
1
[{"id": "G0", "claim": "Add a test covering the alpha = 0 / alpha = 1 configurations that this pull request addresses.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider simply using `loss_wasserstein = 0` instead of `torch.zeros(1)` for the loss i...
null
alexisthual__fugw__39
alexisthual/fugw
39
defect
7df823178f5c70bddedfc2cf0cdbdfb67965af13
ac95ce8434d0cb4177deddd72f42b1e2f8392c21
[Feat] Add the option to interpolate the transport plan with the identity
This short PR implements an option to interpolate between the transport plan and the identity (as suggested by @bthirion ) when calling the ``.transform`` method. Such interpolation has shown significant improvements in decoding performances in my recent benchmarks, I thus propose to include it directly in FUGW.
diff --git a/src/fugw/mappings/dense.py b/src/fugw/mappings/dense.py index f3ede0f6..18fe2de3 100644 --- a/src/fugw/mappings/dense.py +++ b/src/fugw/mappings/dense.py @@ -270,7 +270,9 @@ def fit( return self - def transform(self, source_features, device="auto"): + def transform( + self, source...
4
4
2
[{"id": "G0", "claim": "The new parameter should be named regularization/shrinkage rather than interpolation.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An explicit parameter (defaulting to 0, no regularization, or 0.5) should be used instead of a Bo...
null
alexliesenfeld__health__54
alexliesenfeld/health
54
defect
a8e632129440c1d9832d01de5c9eae1d3b1c7116
af5c6fd929fd88e35cb8adace3be715121daba26
Add SMTP server health check
Is this a smtp check you wanted? closes #51 I would be happy to get a hacktoberfest-accepted label for this pull request 😊
diff --git a/checks/docker-compose.yaml b/checks/docker-compose.yaml index f2db07a..69a78e4 100644 --- a/checks/docker-compose.yaml +++ b/checks/docker-compose.yaml @@ -15,3 +15,8 @@ services: interval: 3s timeout: 3s retries: 5 + + smtp: + image: bytemark/smtp + ports: + - "25:25" diff...
2
2
1
[{"id": "G0", "claim": "The exported constructor `TestConnection` should probably be renamed to `New` to stick to the naming norm, in smtp.go and in the test call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The go directive in checks/sm...
null
alexliesenfeld__health__55
alexliesenfeld/health
55
defect
a8e632129440c1d9832d01de5c9eae1d3b1c7116
a9777c43521a98c5d3951a6a876c6e2982c01cc6
Add IMAP server health check
I tried myself with a imap check. I don't used https://pkg.go.dev/net/smtp because found a better imap library: https://github.com/emersion/go-imap closes #52
diff --git a/checks/imap/go.mod b/checks/imap/go.mod new file mode 100644 index 0000000..3754c0a --- /dev/null +++ b/checks/imap/go.mod @@ -0,0 +1,8 @@ +module github.com/alexliesenfeld/health/checks/imap + +go 1.13 + +require ( + github.com/emersion/go-imap v1.2.1 + github.com/stretchr/testify v1.8.0 +) diff --git a/c...
3
3
1
[{"id": "G0", "claim": "New should take connection parameters (an address) and construct the go-imap client itself, instead of requiring the user to build a client, which reduces the health check's usefulness.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
alexliesenfeld__health__58
alexliesenfeld/health
58
defect
df436b70e9fbf7fd97fa09b7fda52e77a4e3713d
c3ab1d20371450aa9a2e916bc9c44dc736ff94fe
add mongo check
closes #49 I would be happy to get a hacktoberfest-accepted label for this pull request.
diff --git a/checks/docker-compose.yaml b/checks/docker-compose.yaml index 69a78e4..657bf50 100644 --- a/checks/docker-compose.yaml +++ b/checks/docker-compose.yaml @@ -20,3 +20,11 @@ services: image: bytemark/smtp ports: - "25:25" + + mongo: + image: mongo:latest + ports: + - 27017:27017 +...
1
1
1
[{"id": "G0", "claim": "Use a connection string instead of an established client and read preference so that users do not need to familiarize themselves with the internal library/driver, as in the hellofresh/health-go mongo check example.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro...
null
alexliesenfeld__health__63
alexliesenfeld/health
63
defect
d6dc3542b3e85b56ea0c3b6e7f4395550b29b39b
69eb846e727e2f098991202ee4e56b351a9b67b4
feat: Added diskspace check for checking unix filesystem usage
Closes #50. Note: I did not see much in the project regarding Microsoft WIndows, so implemented this only for Linux as I am unfamiliar with developing Go for windows and not sure how you want cross platform building and packaging to work.
diff --git a/checks/diskspace/README.md b/checks/diskspace/README.md new file mode 100644 index 0000000..e77f730 --- /dev/null +++ b/checks/diskspace/README.md @@ -0,0 +1,5 @@ +# Introduction +The diskspace check uses the OS API to sample currently used filesystem storage and compare it to a threshold value. The thres...
4
4
0
[{"id": "G0", "claim": "The NewWorkingDirectory wrapper function may not be needed in the library and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the check helper is not used anywhere else and its logic is straightforward, it ...
null
alexmoon__bluest__36
alexmoon/bluest
36
defect
4b7723b4cb4303737373aae8d006056ed30384ed
add2fa7dc34a63e9ecfc1d6930ee7ce7096f43ce
feat: introduce adapter config for platform-specific configuration options
Breaks the public API a bit, let me know if it should be preserved. Also I put unsafe on creating the config on android, this way the with_config on the adapter could still be the same for all platforms.
diff --git a/examples/blinky.rs b/examples/blinky.rs index 646abe3..93c7e3e 100644 --- a/examples/blinky.rs +++ b/examples/blinky.rs @@ -24,7 +24,7 @@ async fn main() -> Result<(), Box<dyn Error>> { ) .init(); - let adapter = Adapter::default().await.ok_or("Bluetooth adapter not found")?; + le...
3
3
1
[{"id": "G0", "claim": "Adapter::default() should be kept and changed to call Self::with_config(AdapterConfig::default()) instead of delegating to AdapterImpl::default().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bluer AdapterConfig field should...
null
alexo__wro4j__88
alexo/wro4j
88
defect
9f8bcd4a7d50dce845323ba2fe403e94379aa36f
7382581d463d830721fda2e04dde14926d48fa41
Provider priority
This allows providers to specify whether what they provide is low, medium or high priority. This makes it possible for 3rd parties to override the default strategy aliases in non-deterministic situations, such as when they are loaded via the ServiceLoader. There can still be conflicts within the priority levels, but ...
diff --git a/wro4j-core/src/main/java/ro/isdc/wro/model/resource/locator/support/DefaultLocatorProvider.java b/wro4j-core/src/main/java/ro/isdc/wro/model/resource/locator/support/DefaultLocatorProvider.java index 4bfed3154..755697014 100644 --- a/wro4j-core/src/main/java/ro/isdc/wro/model/resource/locator/support/Defau...
7
5
2
[{"id": "G0", "claim": "The ordering interface should follow Spring's Ordered approach: be named Ordered (generic, reusable for other concepts) instead of ProviderPriorityAware, and return int instead of the ProviderPriority enum.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
alexpasmantier__television__446
alexpasmantier/television
446
defect
8b267bb1ff3a005ef6bc20c6ebca952ea99ae0ca
190d3c2d6d88fd2d28c285a61b4cd462287df092
refactor(passthrough)!: drop support for unused passthrough keybindings
BREAKING CHANGE: the CLI `passthrough_keybindings` are no longer available. This feature wasn't used anywhere to my knowledge (github search) and was adding unnecessary complexity to the code.
diff --git a/television/action.rs b/television/action.rs index ee993d947..4b16afbd8 100644 --- a/television/action.rs +++ b/television/action.rs @@ -51,10 +51,6 @@ pub enum Action { #[serde(alias = "select_entry")] #[serde(alias = "confirm_selection")] ConfirmSelection, - /// Select the entry currentl...
1
1
0
[{"id": "G0", "claim": "The function name 'parse_keybindings_litteral' contains a typo and should be spelled 'parse_keybindings_literal'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
alexpasmantier__television__477
alexpasmantier/television
477
defect
a938c1c46929eb2306bca5201af98c6467be59db
6d7c9b24f094b544f4f59d57f8d4c9c70b2abd1d
feat: add substring matching with exact flag
fixes #368 @alexpasmantier I tried to parse down the exact flag to the find method, but I can't find an elegant way to do so because the channel creates its own configurations for the matcher inside of the `new` method. I started adding the exact flag to the new function of each of the channels but it just does not...
diff --git a/benches/main/ui.rs b/benches/main/ui.rs index 91ac5df8e..efee73c30 100644 --- a/benches/main/ui.rs +++ b/benches/main/ui.rs @@ -512,8 +512,9 @@ pub fn draw(c: &mut Criterion) { ])); channel.find("television"); // Wait for the channel to finish loading ...
3
3
2
[{"id": "G0", "claim": "The preprocessing should be short-circuited inside `find` and factored out into a separate `preprocess_pattern` function that can easily be tested.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pattern preprocessing should no...
null
alexpasmantier__television__547
alexpasmantier/television
547
defect
22253a2872372097703ccff99bc41934f1541c02
2bafbaa13e3e84880caa87ff4db1f10e3f090779
UI customization
This PR adds support for customizing * input_header * preview_header * preview_footer all the items are of type MultiTemplate, this gives some flexibility when showing the selected value, let's say on the preview header, if it's long or you want only a section
diff --git a/cable/unix/env.toml b/cable/unix/env.toml index cac4de83b..755c47263 100644 --- a/cable/unix/env.toml +++ b/cable/unix/env.toml @@ -11,3 +11,4 @@ command = "echo '{split:=:1..}'" [ui] layout = "portrait" +preview_header = "{split:=:0}" diff --git a/television/channels/prototypes.rs b/television/channel...
3
2
1
[{"id": "G0", "claim": "The serde serialize/deserialize helpers added for templates in ui.rs duplicate the existing ones in channels/prototypes.rs, and the two implementations should be merged into one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
alexpasmantier__television__589
alexpasmantier/television
589
defect
d82bf7226b853c65638a42298cc31f773631d40e
8ce516b9160396c272125a812cbe437797886c25
refactor: more stable behavior for `--inline`, `--width` and `--height`
Fixes #587
diff --git a/television/errors.rs b/television/errors.rs index 61ca9dcc8..73b19334e 100644 --- a/television/errors.rs +++ b/television/errors.rs @@ -6,7 +6,7 @@ use tracing::error; pub fn init() -> Result<()> { panic::set_hook(Box::new(move |panic_info| { // Clean up the terminal - if let Ok(mut t...
5
1
1
[{"id": "G0", "claim": "The height_only test fails (probably because ratatui tries to call cursor_position internally), so it should be disabled for now since inline is builtin to ratatui and tested on their side.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "c...
null
alexpasmantier__television__604
alexpasmantier/television
604
defect
427ca3619c2b70bef1cf071f069d3701fab59ec1
dcce5b59c2aea403cfdcc21941980b1f82ddb335
feat: add theme overrides in config file [560]
### Add theme color overrides in configuration file Link to #560 ### Problem Currently, customizing television's appearance to match personal style requires users to rebuild from source code to modify theme colors. This creates a significant barrier for users who want to personalize their experience without de...
diff --git a/.config/config.toml b/.config/config.toml index dbea14e86..6b80d02db 100644 --- a/.config/config.toml +++ b/.config/config.toml @@ -63,6 +63,20 @@ orientation = "landscape" # repository. You may also create your own theme by creating a new file in a `themes` # directory in your configuration directory (s...
4
4
1
[{"id": "G0", "claim": "The simple_test.toml file should not be part of the pull request — it looks committed by mistake and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The theme-overrides documentation should be moved dire...
null
alexpasmantier__television__668
alexpasmantier/television
668
defect
39610e145d2eddfb29ea9b2a244f773ca4d38da8
4c796b24ff4610f096c66aff3dd181ea421f9b50
Rework help panel
## 📺 PR Description Rework the help panel to show live keybinding source information (global, channel) instead of hard-coded entries Before <img width="511" height="934" alt="image" src="https://github.com/user-attachments/assets/bea29e07-ec4a-443d-a468-be1e9f28a705" /> After <img width="690" height="1355" ...
diff --git a/benches/main/ui.rs b/benches/main/ui.rs index 229f582ca..a76cb6d5b 100644 --- a/benches/main/ui.rs +++ b/benches/main/ui.rs @@ -16,6 +16,7 @@ use television::{ action::Action, cable::Cable, channels::entry::{Entry, into_ranges}, + cli::PostProcessedCli, config::{Config, ConfigEnv}, ...
4
4
0
[{"id": "G0", "claim": "The debug logging in apply_cli_keybinding_overrides could be more helpful as before/after keybinding dumps, which would also avoid the extra count logic that is only useful for debug and trace.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
alexpasmantier__television__669
alexpasmantier/television
669
defect
83f29f7418a7adb6f5ca9ee5ac057ef38728fa28
fd6a4ef4896f2cbb6c1af76e2bef17b3b22196da
feat: support for external actions
## 📺 PR Description resolves #16; resolves #658, resolves #297 This PR adds support for definition of external actions, allowing the following ```toml [metadata] name = "files" description = "A channel to select files and directories" requirements = ["fd", "bat"] [source] command = ["fd -t f", "fd -t f ...
diff --git a/cable/unix/files.toml b/cable/unix/files.toml index 1f271ab14..f81c8aa4e 100644 --- a/cable/unix/files.toml +++ b/cable/unix/files.toml @@ -12,3 +12,8 @@ env = { BAT_THEME = "ansi" } [keybindings] shortcut = "f1" +ctrl-f12 = "edit" + +[actions.edit] +description = "Opens the selected entry with Neovim"...
6
5
2
[{"id": "G0", "claim": "The code should be shaped so the planned follow-up features (fork vs become/execve, silent output, action-selection UI) are easy to add later, without adding them in this PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "External...
null
alfasoftware__astra__16
alfasoftware/astra
16
defect
1a262031db6dae9d3b6ccf3cee37f06a091edba9
b5dc96c3f810879f8f9e589e1eabbe8528fe4eaf
Fix unused imports refactor so it doesn't lose inner types.
Fixes #15 Also extends the test coverage for UnusedImportExample to cover some static variables.
diff --git a/astra-core/src/main/java/org/alfasoftware/astra/core/refactoring/operations/imports/UnusedImportRefactor.java b/astra-core/src/main/java/org/alfasoftware/astra/core/refactoring/operations/imports/UnusedImportRefactor.java index ad90fca1..ecf2cab0 100644 --- a/astra-core/src/main/java/org/alfasoftware/astra...
2
2
1
[{"id": "G0", "claim": "The refactor only partially works: the case where the referenced inner type is another class within the same package still needs fixing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The leftover incomplete javadoc block ('T...
null
alfasoftware__astra__37
alfasoftware/astra
37
defect
e1f5c09eb05147a6c93a1312213d3219e2c1f94e
383143f82c486a8d4a3c45a7a80d9250e9714c35
Java pattern rewrites
Adding support for ASTOperations built around the concept of Java Patterns. Allows you to express an ASTOpeartion using plain Java with marked substitutions.
diff --git a/astra-core/src/main/java/org/alfasoftware/astra/core/refactoring/operations/javapattern/ASTNodeMatchInformation.java b/astra-core/src/main/java/org/alfasoftware/astra/core/refactoring/operations/javapattern/ASTNodeMatchInformation.java new file mode 100644 index 00000000..274745fc --- /dev/null +++ b/astra...
18
16
0
[{"id": "G0", "claim": "MethodBuilder could be renamed to something more distinct so it is not confused with MethodMatcher's builder.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MethodBuilder and other new types like SubstituteMethod could be...
null
alfasoftware__astra__57
alfasoftware/astra
57
defect
ac65372a4ba9fc7129eae6d0590e3d69f5147a9f
048718104d7ce1c028dbf42b7742d13f46259740
Added compatibility for fully qualified names in Javadoc in TypeReferenceRefactor.
testChangeTypes() now passes and includes fully qualified name types as the issue mentioned.
diff --git a/astra-core/src/main/java/org/alfasoftware/astra/core/refactoring/operations/types/TypeReferenceRefactor.java b/astra-core/src/main/java/org/alfasoftware/astra/core/refactoring/operations/types/TypeReferenceRefactor.java index f3a4cbdc..25cd21c9 100644 --- a/astra-core/src/main/java/org/alfasoftware/astra/c...
1
1
0
[{"id": "G0", "claim": "The new QualifiedName branch needlessly resolves the type binding (resolveTypeBinding) when it is not needed, and the author should remove or justify that resolution.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alfio-event__alf.io__1036
alfio-event/alf.io
1,036
defect
a66627e1379ddf0ce649e179bd0814ea57cc447f
89af6bee1fcd4b20ec5a51d83a24594b8c077aa9
Generate tickets automatically for subscription owners
This new feature will enable organizers to generate and send tickets automatically to subscription owners for a given event. The feature is not active by default and must be activated at system, organization or event level by enabling the following flag ![image](https://user-images.githubusercontent.com/3385346/1...
diff --git a/src/main/java/alfio/config/DataSourceConfiguration.java b/src/main/java/alfio/config/DataSourceConfiguration.java index 980bc29f81..456d6fddfd 100644 --- a/src/main/java/alfio/config/DataSourceConfiguration.java +++ b/src/main/java/alfio/config/DataSourceConfiguration.java @@ -21,6 +21,7 @@ import alfio.c...
1
1
1
[{"id": "G0", "claim": "The job's ticket-category selection needs better logic: the chosen category should be active, not empty, and available to the public.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alfio-event__alf.io__1194
alfio-event/alf.io
1,194
defect
4f7f5ca62bbfd0969876332dab359741ac7d69e0
377fc5007a86c29f3051b2cc9d7abaab7618eef9
implement reservation export
Export reservations done during a given interval. The export will produce an "Excel" file with a sheet for each event
diff --git a/src/main/java/alfio/controller/api/admin/EventApiController.java b/src/main/java/alfio/controller/api/admin/EventApiController.java index d5690cf363..7bbda9e34e 100644 --- a/src/main/java/alfio/controller/api/admin/EventApiController.java +++ b/src/main/java/alfio/controller/api/admin/EventApiController.ja...
1
1
1
[{"id": "G0", "claim": "The /admin/api/export/reservations endpoint reflects the user-provided \"from\" and \"to\" request parameters in the response body, a reflected cross-site scripting vulnerability, and the code should be changed to not reflect user-controlled data.", "category": "security", "verdict": "supported"...
null
alfio-event__alf.io__1451
alfio-event/alf.io
1,451
defect
40c3152ecbfcf64e1280e54c5d4625903cf1e226
deca0e5397c8a37714c3d1bf1291f99a13ee904c
Added voucher code
Added voucher code in attendees data. https://github.com/alfio-event/alf.io/issues/1125
diff --git a/src/main/java/alfio/controller/api/admin/EventApiController.java b/src/main/java/alfio/controller/api/admin/EventApiController.java index b040512bd5..49e74b1386 100644 --- a/src/main/java/alfio/controller/api/admin/EventApiController.java +++ b/src/main/java/alfio/controller/api/admin/EventApiController.ja...
2
2
0
[{"id": "G0", "claim": "For consistency with the labels used in the application, the exported CSV field \"Voucher Code\" must be renamed to \"Promo Code\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The setPromotionCodeDiscountId query is only used b...
null
algesten__ureq__132
algesten/ureq
132
defect
a198ba0a65eb280ca4b0c97f6b4f55904a5820da
9682ebe361f1aeff95a05e2923a5c317bc63efb9
Switch to Result-based API.
Gets rid of synthetic_error, and makes the various send_* methods return `Result<Response, Error>`. Introduces a new error type "HTTP", which represents an error due to status codes 4xx or 5xx. The HTTP error type contains a boxed Response, so users can read the actual response if they want. Adds an `error_for_statu...
diff --git a/README.md b/README.md index 008e1d99..ee9948e0 100644 --- a/README.md +++ b/README.md @@ -17,15 +17,12 @@ let resp = ureq::post("https://myapi.example.com/ingest") .send_json(serde_json::json!({ "name": "martin", "rust": true - })); + }))?; // .ok() tells if response is 200-...
8
7
2
[{"id": "G0", "claim": "Consider changing the semantics of the .into_* methods so they take the stream out of the Response rather than the whole Response, because as implemented the body cannot be consumed unconditionally before checking for errors, which would be needed to return connections to the pool.", "category":...
null
algesten__ureq__149
algesten/ureq
149
defect
c343587afb7500c094b34965ff31c86d84df9c3a
8962f27a2b56d8fb68e29225ab81ea165ad34963
Turn `Option<AgentState>` into `AgentState`
`Some(AgentState)` seem to be assumed pretty much everywhere. I could not find any test or piece of code hinting at how `None` should be interpreted, or even see how a state of `None` could even be constructed. If the `Option` don't serve a purpose (anymore), the code can be both simpler and most likely more perform...
diff --git a/src/agent.rs b/src/agent.rs index b7a43eee1..357e15064 100644 --- a/src/agent.rs +++ b/src/agent.rs @@ -40,13 +40,13 @@ pub struct Agent { /// Copied into each request of this agent. pub(crate) headers: Vec<Header>, /// Reused agent state for repeated requests from this agent. - pub(crate...
1
1
0
[{"id": "G0", "claim": "The formatting-only change to the User-Agent write! call in send_prelude (src/unit.rs) should be reverted so the pull request carries no spurious diff to those lines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
algesten__ureq__198
algesten/ureq
198
defect
bd2761e28015c713fc77f55e2bfa933afa5627d1
b84799807666826febc4b04c6a3969acb26dc91a
Reinstate read timeouts on body.
This feature was broken in #67, which reset timeouts on the stream before passing it to set_stream. As part of this change, refactor the internal storage of timeouts on the Request object to use Option<Duration>. Remove the deadline field on Response. It wasn't used. The deadline field on unit was used instead...
diff --git a/src/request.rs b/src/request.rs index daee345e..7d469fb8 100644 --- a/src/request.rs +++ b/src/request.rs @@ -1,8 +1,8 @@ -use std::fmt; use std::io::Read; use std::result::Result; use std::sync::{Arc, Mutex}; use std::time; +use std::{fmt, time::Duration}; use qstring::QString; use url::{form_urle...
1
1
1
[{"id": "G0", "claim": "The obsolete 'absurd API' comment above should be removed, and setting the timeout in the deadline branch should propagate the error instead of ignoring it with .ok().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
algesten__ureq__22
algesten/ureq
22
defect
e9ca3b26d511e8e5c9540931d74e5bd0d80f859b
f5ed3e83f1301120871ab51db7611768f252ad70
Fix compilation errors with the cookies feature
Sorry! I thought it was a bit suspicious that the tests passed first time. I've made the tests run without `default_features`, but they only pass if both `tls` and `json` are enabled. So I've made them always run.
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 811dda4a..d2d90a63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,6 @@ jobs: matrix: feature: - charset - - tls - cookies env: RUST_BACKTRACE: "1" ...
1
1
0
[{"id": "G0", "claim": "Instead of locking the agent mutex in the request-building function, pass the state into extract_cookies() and keep the lock local to there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
algesten__ureq__234
algesten/ureq
234
defect
4cb856196e9b91e4fe749559fc4e7ef9ebbe04d5
be366066b6f81d14a1778bc9dccbe4b41b765f11
Rewrite the Error type.
This adds a source field to keep track of upstream errors and allow backtraces, plus a URL field to indicate what URL an error was associated with. The enum variants we used to use for Error are now part of a new ErrorKind type. For convenience within ureq, ErrorKinds can be turned into an Error with `.new()` or...
diff --git a/src/error.rs b/src/error.rs index e47dba6d..847d0bf2 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,17 +1,103 @@ -use crate::response::Response; -use std::fmt; -use std::io::{self, ErrorKind}; +use url::Url; + +use std::error; +use std::fmt::{self, Display}; +use std::io::{self}; + +use crate::Response...
2
1
0
[{"id": "G0", "claim": "Exposing `Url` as the type of `Error`'s url field is questionable since the crate's entry point mainly takes `&str`.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `Error` struct should perhaps hold `Optional<String>` for its ...
null