upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-28Merge upgrade rust-nostr v0.29DanConwayDev
refactor to address breaking changes in rust-nostr fix a number of in dependancy which have been upstreamed
2024-03-28build: use nix for tests ciDanConwayDev
using the same dependancies in ci as in development
2024-03-28refactor: allow pedantic clippy warning large_futuresDanConwayDev
rust-nostr author suggested this might be a false positive https://github.com/rust-nostr/nostr/pull/375#issuecomment-2022245832
2024-03-28test: fix intermittent test failuresDanConwayDev
caused by test proposals with the same timestamp listed in an inconsistant list order; by ensuring test proposals have a different timestamps
2024-03-27bump nostr-relay-pool to v0.29.2DanConwayDev
yukibtc released a patch to address intermittent problem fetching events, which caused our integration tests to fail
2024-03-27bump nostr-relay-pool to v0.29.1DanConwayDev
as patch accepted into package
2024-03-27use patched nostr-rust v0.29DanConwayDev
to address send_event_to spurious timeout error
2024-03-27fix: relay connection timeout panicDanConwayDev
upgrade from rust-nostr v0.27 ~> v0.28 introduces this panic presumably get_events attempted to write to the MultiProgress just after it has been removed
2024-03-27refactor: more concise error messageDanConwayDev
to suppress the clippy too_many_lines in function warning
2024-03-27replace blocking client in tests with asyncDanConwayDev
as it has been removed from nostr_sdk
2024-03-25update tag generationDanConwayDev
to reflect changes in rust-nostr
2024-03-22replace XOnlyPublicKey with wrapper PublicKeyDanConwayDev
to reflect new name in rust-nostr
2024-03-22rename from_sk_str -> from_strDanConwayDev
to reflect new name in rust-nostr
2024-03-22use Sha1Hashin new locationDanConwayDev
it had moved from 'prelude' to 'hashes'
2024-03-22ClientSigner renamed ~> NostrSignerDanConwayDev
to reflect new name in rust-nostr
2024-03-22chore: bump rust-nostr to v0.29.0DanConwayDev
both nostr and nostr-sdk packages and also in test_utils
2024-03-22chore: nix flake updateDanConwayDev
update nix dependancies to latest version using default update options
2024-03-22chore: cargo updateDanConwayDev
update dependancies to latest version stated in cargo.toml
2024-03-08chore: bump to v1.1.1v1.1.1DanConwayDev
changelog: * fix stack overflow bug when origin remote doesnt exist
2024-03-08fix: stack overflow bugDanConwayDev
introduced in 098b0258fdd581c750099cb463adbddb57843388
2024-03-08chore: bump to v1.1.0v1.1.0DanConwayDev
changelog: * `ngit send` - improve proposal commit
2024-03-08feat(send): compare against origin/main vs mainDanConwayDev
catch more errors when proposed commits are not connected to origin/main branch improve default selected commits when on main branch
2024-03-08feat(send): select commits from a listDanConwayDev
when since_or_range isn't specified adds resilience as assuming master..HEAD can cause some issues eg when master is not up-to-date with origin/master
2024-03-04fix: restore better error messageDanConwayDev
which is covered by a test case. broken by: 445eea13d987b345535fd4fa56486ff334bbd351
2024-03-04refactor: improve rexpect error messageDanConwayDev
to enable better debugging
2024-03-04fix: grammar in cli output patch ~> patchesDanConwayDev
fixing error which should have been resolved in: 8519dc4a10d47747e6df3f47e25c36bf16befe00
2024-03-04fix(send): feature branch default to ahead of mainDanConwayDev
instead of the latest commit. issue intrroduced in: 445eea13d987b345535fd4fa56486ff334bbd351
2024-03-04test: ensure failed tests timeoutDanConwayDev
resolve a long standing test issue where failures to output the correct message in the cli would result in the test never ending rather than failing the many test cases updated in this change are to ensure failures are caught rather than ignored some of them are just refactored to remove calling an extra function, which is no longer needed note: this doesn't fix the intermittent issue, most commonly experienced under the nix configuration, where tests that should pass occationally never end preventing the rest of the suite from running
2024-03-04fix: typo in help content@RandyMcMillan
change donwload ~> download
2024-03-01chore: improve readme copyDanConwayDev
pointing to gitworkshop.dev for more details
2024-03-01feat(send): fix grammar in cli outputDanConwayDev
refer to a single patch as patch rather than patches
2024-03-01feat(send): when on main default to sending 1 patchDanConwayDev
based on feedback from santos: nostr:31c085a584cbd30f71a44a70eaf828c2c8c5f6e3efb7942547edb37cf4a632cf
2024-02-29chore: bump to v1.0.0v1.0.0DanConwayDev
following semantic versioning, this release includes breaking changes so it has a new major version this is not reflection on its stability
2024-02-29build: added to gitignoreDanConwayDev
so temporarly created test directories and files are ignored
2024-02-29feat(send): add proposal revision cli msgDanConwayDev
before cover letter prompt primarily this is to make it clearer that a proposal update is being sent when using `ngit push --force` instead of a new proposal
2024-02-29build: timeout ci tests after 8 minutesDanConwayDev
as runs are now taking slightly longer than 5 minutes
2024-02-28fix: branch-name specified as main or masterDanConwayDev
branch-name should be ommitted or ignored if patches created on main or master instead it should be infered based on commit msg
2024-02-23refactor: populate readmeDanConwayDev
with introduction, commands and how to contribute
2024-02-23feat(list): newest proposals firstsDanConwayDev
show proposals in order newest first
2024-02-23feat(init): improve copy orderDanConwayDev
move instruction to commit and push maintainers.yaml to end of file
2024-02-23feat(init): add customisation and defaultsDanConwayDev
- allow more cli input options - allow customisation of more fields in interface - change default identifer from shorthand root commit to short name - defaults to existing repo event (users or other) or maintainers.yaml
2024-02-23fix(push): remove force push bugDanConwayDev
introduced in b931b37e26486e4e6d15f302e87141dcf2f596ba
2024-02-23refactor: remove confusing options, improve helpDanConwayDev
from_branch and to_branch have been replaced by specifying revision ranges
2024-02-23refactor: remove confusing options, improve helpDanConwayDev
from_branch and to_branch have been replaced by specifying revision ranges
2024-02-23feat(push): add `--force` to issue revisionDanConwayDev
wrapping `send --in-reply-to` unless branch up-to-date
2024-02-22fix: apply patches errorDanConwayDev
introduced in 9f1d8cd964a04197565a2acb1f2b174c9582d333
2024-02-22refactor: fix spellingDanConwayDev
ammended should read amended
2024-02-22test(list): local proposal amendedDanConwayDev
added test to cover local propsal being amended this should catch error for rebased proposals as well
2024-02-22refactor(list): improve copyDanConwayDev
reduce wording in choices
2024-02-22fix: applying commits that exist in other branchesDanConwayDev
previously these commits would be skipped
2024-02-22fix(list): local rebase detected as ammendmentsDanConwayDev
also updated copy and code comments
2024-02-22refactor: simplifed ammendments and rebasesDanConwayDev
to align with changes done to pull c5dfd1b7e509eedc33de75343de8659e3c9e0b2a also improved copy
2024-02-22refactor: simplifed ammendments and rebasesDanConwayDev
to align with changes done to pull c5dfd1b7e509eedc33de75343de8659e3c9e0b2a also improved copy
2024-02-22fix(pull): local rebase detected as ammendmentsDanConwayDev
also updated copy and code comments
2024-02-22test(pull): local commits on uptodate proposalDanConwayDev
add test for scenario
2024-02-22test(list): local commits on uptodate proposalDanConwayDev
add test for scenario and tweak copy
2024-02-22feat(pull): support `--in-reply-to` revisionsDanConwayDev
added tests to cover one of these rebase scenarios
2024-02-22feat(list): improved copy for rebase scenariosDanConwayDev
and added some comments to better describe the rebase scenarios
2024-02-22fix(list): support `--in-reply-to` latest revisionDanConwayDev
update list to support rebases via proposal revisions as created by `ngit send --in-reply-to` or upcoming change `ngit push --force`
2024-02-21feat(send): in-reply-to arg for revised proposalDanConwayDev
send a revised version of a proposal using the new in-replyto argument suppliments existing 'root' tag with 'root-revision' e 'reply' tag to the original proposal
2024-02-21feat(send): specify commits eg HEAD~2DanConwayDev
specifiy commits or commit ranges in the same way that `git format-patch` allows
2024-02-20feat(list): set checkout branch as default choiceDanConwayDev
instead of no default. note: I spent hours trying to get CliTester to support default choices and gave up. I have a stashed the attempt and am moving on...
2024-02-20fix(pull): applying proposal revisionsDanConwayDev
if a revision responds to a root patch (no cover letter) then the revision will nolonger be applied on top of the first patch in the original set
2024-02-20refactor: tweak error wordingDanConwayDev
remove the word nostr for consistency and as its a bit confusing
2024-02-20feat(list): download or apply with git amDanConwayDev
add the option to download patches or apply them with git am give more granular messages about the state of proposals. add support for replacing old proposal version with a new one
2024-02-20refactor: simplify commit msg extractionDanConwayDev
and create functions to use this for non-root patches
2024-02-20fix: cover letter description from patchDanConwayDev
if description isn't present this was causing an breaking error
2024-02-20refactor: imrpove error msgDanConwayDev
when trying to create a branch from a proposal when the the parent commit id doesnt exist
2024-02-19fix: ingore patch diff in descrition fallbackDanConwayDev
the description is not currently displayed so no tests where written
2024-02-16test: fix wording in cli testDanConwayDev
broken in 701668b02d999af42f51d8bd25fffb2a8692c3c8
2024-02-16refactor: added code commentsDanConwayDev
to reflect the requirement for certain tags
2024-02-16refactor: rename PR to proposalDanConwayDev
PR is a problematic term when it ambiguous whether the set of patches are PR-like or email-patch like.
2024-02-16refactor: use event_id in get_most_recent_accestorDanConwayDev
instead of commit ids as part of nip34 compliance and to enable applying proposals to tip of master in the future
2024-02-16refactor: improve error when patch ahead of masterDanConwayDev
minor improvement to error message
2024-02-16refactor: remove reliance on 'commit' tagDanConwayDev
as part of nip34 compliance
2024-02-16feat: improve helpDanConwayDev
improve summary for help commands
2024-02-15build: remove tests from pre-pushDanConwayDev
because they take 3 minutes to run and sometime fail due to a nix specific issue
2024-02-15fix(interactor): input displaying empty defaultDanConwayDev
instead of no default
2024-02-15build: add maintainers.yamlDanConwayDev
nostr configuration file to make it easy ngit users to find events
2024-02-15fix(list): filter for repo event ref tagDanConwayDev
previously filtering for d tag rather than a tag this kind of bug should be picked up by tests when our mock relay is applying filters before sending events
2024-02-15fix(repo-ref): filter for maintainer pubkeyDanConwayDev
previously looking for p tag rather than author this kind of bug should be picked up by tests when our mock relay is applying filters before sending events
2024-02-15fix: improve 'searching for profile updates' msgDanConwayDev
it wasn't clear why no results were coming back from relays or why it is needs (added reference to relay updates)
2024-02-15fix: allow optional description and webDanConwayDev
also add a default web
2024-02-15fix: curate default relaysDanConwayDev
wss://eden.nostr.land is a paid relay wss://nostr.wine is paid relay
2024-02-15build: timeout ci tests after 5 minutesDanConwayDev
0b9c7521b035e60ad7c458c1e782623e18a5cc21 set this to 20 minutes from 6h but it only 3m to run on each channel
2024-02-14feat: get_events coutdown to timeoutDanConwayDev
add a ui feature to countdown to timeout so user doesn't consider exiting early
2024-02-14feat: find repo event by nevent or naddrDanConwayDev
if repo event cannot be found using unique commit the user can find it via a nevent or naddr also handle no PRs found
2024-02-14feat: send to default relays, blast repo eventDanConwayDev
improve the distribution of events by sending to default relays in addition to user and repo relays. for better discoverability of repo events, this is also blasted. a temporary fix to blast everything was removed. the less reliable purplepages.es relay is moved to more_fallback_relays that currently isn't used
2024-02-14feat: improve fetch events reportingDanConwayDev
Improve how progress is reported in the UI when fetching events
2024-02-14feat!: move `claim` > `init`DanConwayDev
this aligns with gitstr and is more intuative the idea behind using claim to indicate that it is only for maintainersto do is valid but its too confusing
2024-02-14feat!: move `prs create`>`send`, `prs list`>`list`DanConwayDev
remove unnecessary hierachy of `prs` which is also a troublesome term replace the concept of `create` which aligns more to the PR github model to `send` which aligns more with the git patch model
2024-02-13feat!: nip34 set pr kind to patch kindDanConwayDev
this enables consistancy of display with simple clients that are just taking the output of `git format-patch`
2024-02-13test: fix backtrace displayDanConwayDev
between 5 Feb 2024 and 13 Feb 2024 backtrace began activiating in `nix-shell` and ci during integration tests when rexpect. this caused some error tests to fail / hang it was not activating in the `nix-shell` when the cli was called seperately setting the `RUST_BACKTRACE=0` in the rexpect config surpresses the backtrace as desired
2024-02-13feat!: nip34 make pr event optionalDanConwayDev
use first patch as thread root if pr event isn't present. begin renaming pr event to cover letter. fix patch ordering upon creation. patches were in youngest first order which caused: - `PATCH n/t`to be in reverse order - the youngest patch was the marked root - oldest patch replied to the youngest fix finding most recent patch event. when a patch in a set is the most recent it will share a created_at with other patches. previously the first patch recieved from relay in the set would be used. now it finds the first patch with that created_at which isn't also a parent of another patch with the same created_at.
2024-02-13feat(prs-create)!: pr to nip34-like cover letterDanConwayDev
up the pr event type to a nip34-like cover letter format this sets the building blocks in place to enable simplier clients to use the 'cover letter' feature in `git format-patch` to create the experience as a pr event
2024-02-09refactor(git): find root commit from headDanConwayDev
this is simpler there is no need to check whether main or master exist because one does 99+% of the time the root commit wil be te same for head as master 99+% of the time
2024-02-09feat(prs-create): add `PATCH n/n` to contentDanConwayDev
format patch as a series in the patch event content unless it is 1/1 and there is no pr (cover letter) event
2024-02-05build: timeout ci tests after 20 minutesDanConwayDev
this overrides the default timeout of 6h which is excessive
2024-02-02test: replace block_on with tokio::testsjk
This is intended to improve the reliabilty of the tests. there have been particular issues with random tests never ending when run in the nix configuration see discussion here https://github.com/DanConwayDev/ngit-cli/issues/ 6#issuecomment-1918971239 and: https://github.com/DanConwayDev/ngit-cli/pull/7
2024-02-02feat(prs-create)!: use nip34 patch kind and tagsDanConwayDev
- change kind number - remove "r-" prefix from unique commit id r tag - rename tag commit-sig to commit-pgp-sig - a tag for repo identifer and pubkey. this serves as a vote for this pubkey being a maintainer - add relay hints - change format of committer tag - remove r references to parent commit id - tag parent patch event if its part of change request author and commit-message tags still need to be removed but they are required to apply patches with gitlib2. we will need to fallback to running the git client to apply patches. BREAKING CHANGE: change patch/commit event kind and tags to reflect nip34 draft. events with the older kind will no longer be found and will not be in a valid format