Skip to content

Commit

Permalink
Feature/polite (#2)
Browse files Browse the repository at this point in the history
* mentions

* tests

* Update rust.yml

* Update rust.yml

* Create publish.yaml

* Update publish.yaml

* fix: other source

* update tests

* fix interval

* fix: store token

* version
  • Loading branch information
anvlkv authored Jun 22, 2024
1 parent a14c552 commit fba72ff
Show file tree
Hide file tree
Showing 16 changed files with 2,557 additions and 1,554 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@ name: Rust

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --no-run

- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --test help
755 changes: 755 additions & 0 deletions ACKNOWLEDGEMENTS-BuildAndDev.md

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions ACKNOWLEDGEMENTS-DepAndNames.md

Large diffs are not rendered by default.

1,480 changes: 740 additions & 740 deletions ACKNOWLEDGEMENTS-NameAndDeps.md

Large diffs are not rendered by default.

1,476 changes: 738 additions & 738 deletions ACKNOWLEDGEMENTS.md

Large diffs are not rendered by default.

52 changes: 51 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "acknowledgements-rs"
version = "0.1.2"
version = "1.0.0"
edition = "2021"
authors = ["a.nvlkv <acknowledgements_rs@proton.me>"]
license = "CC-BY-4.0"
Expand Down Expand Up @@ -39,3 +39,11 @@ cacache = { version = "13.0.0", default-features = false, features = [
"mmap",
] }
chrono = { version = "0.4.38", default-features = false, features = ["now"] }

[dev-dependencies]
insta = { version = "1.39.0", features = ["yaml"] }


[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`acknowledge` is a CLI tool for generating list of acknowledgements based on your `Cargo.toml` file.

It works with github and gitlab APIs. **Only** public repos are supported.
It works with github and gitlab APIs. Only public repos are supported.

## Install

Expand All @@ -28,10 +28,12 @@ Options:
Running Acknowledgements on any project of reasonable size you're likely to face rate limits. Please provide a personal access token
-o, --output <OUTPUT>
Output file path, defaults to project path if not provided
-m, --mention
Whether to include @ (at) symbol in front of a github user's name
-f, --format <FORMAT>
Format of the output file [default: NameAndCount]
-d, --depth <DEPTH>
Depth of scan, whether to include minor and optional depes contributors [default: Major]
-b, --breadth <BREADTH>
Breadth of scan, whether to include optional, build and dev deps contributors [default: NonOpt]
-c, --contributions-threshold <CONTRIBUTIONS_THRESHOLD>
Min number of contributions to be included in the list, doesn't apply to sole contributors [default: 2]
-s, --sources <SOURCES>
Expand All @@ -48,17 +50,17 @@ Options:

#### Github access token

Be sure to provide one if you're waiting for limit reset for too long or too often.
Be sure to provide one if you're waiting for limit reset for too long or too often. No permissions are needed for this token.

#### Sources

Links any repos not discoverable via `Cargo.toml`

#### Depth
#### Breadth

- `Major` - Non-optional dependencies
- `Direct` - All dependencies
- `Indepth` - All dependencies including `[build-dependencies]` and `[dev-dependencies]`
- `NonOpt` - Non-optional dependencies
- `All` - All dependencies
- `BuildAndDev` - All dependencies including `[build-dependencies]` and `[dev-dependencies]`

#### Format

Expand All @@ -72,3 +74,4 @@ Links any repos not discoverable via `Cargo.toml`
- [`NameAndCount`](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS.md) - `acknowledge -p .`
- [`DepAndNames`](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS-DepAndNames.md) - `acknowledge -p . -f DepAndNames`
- [`NameAndDeps` ](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS-NameAndDeps.md) - `acknowledge -p . -f NameAndDeps`
- [`BuildAndDev`](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS-BuildAndDev.md) - `acknowledge -p . -b BuildAndDev`
Loading

0 comments on commit fba72ff

Please sign in to comment.