Compare commits

..

20 Commits

Author SHA1 Message Date
b1def97ed7 Remove deps to openssl 2025-11-12 19:52:40 +01:00
5dd39d8019 Remove deps to openssl
All checks were successful
Release binary and debian package for cl-cli / webext-build (push) Successful in 31s
Release binary and debian package for cl-cli / build-and-release (push) Successful in 1m56s
2025-11-12 19:39:13 +01:00
a4c071b555 Remove deps to openssl 2025-11-12 19:38:47 +01:00
3fb120f8a4 add web extension to release
Some checks failed
Release binary and debian package for cl-cli / webext-build (push) Successful in 32s
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
2025-11-12 19:11:09 +01:00
f524dbfea8 add web extension to release
Some checks failed
Release binary and debian package for cl-cli / webext-build (push) Successful in 30s
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
2025-11-12 19:03:09 +01:00
42796684d7 add web extension to release
Some checks failed
Release binary and debian package for cl-cli / webext-build (push) Failing after 49s
Release binary and debian package for cl-cli / build-and-release (push) Has been skipped
2025-11-12 18:55:27 +01:00
2871530da2 script to sign web extension 2025-11-12 18:36:18 +01:00
f30d299071 fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m53s
2025-11-12 09:09:49 +01:00
028a803447 fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m47s
2025-11-12 08:56:40 +01:00
d3c611974f fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
2025-11-11 23:04:31 +01:00
b8577b4bac fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
2025-11-11 22:57:08 +01:00
b705e34086 fix build and release
Some checks failed
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m46s
2025-11-11 22:51:19 +01:00
ad4e58926e Update release workflow to include Debian package build and upload
Some checks failed
Check go code / build-and-release (push) Successful in 1m7s
Release binary and debian package for cl-cli / build-and-release (push) Failing after 1m49s
Check go code / build-and-release (pull_request) Successful in 1m8s
Check go code / build-and-release (pull_request_target) Successful in 1m5s
2025-11-11 22:44:45 +01:00
056c885e8b Append metadata to build debian package using cargo-deb 2025-11-11 22:12:02 +01:00
b0f2a1452c configure changie to update the version number automatically into Cargo.toml 2025-11-11 22:11:15 +01:00
af8983ecdd Add junie guidelines 2025-11-11 00:54:34 +01:00
5084f5b10d fix serialization of output message
All checks were successful
Check go code / build-and-release (push) Successful in 1m16s
2025-11-11 00:45:51 +01:00
55fb234db6 first web extension version 2025-11-11 00:44:49 +01:00
d8db96603b initialize webext 2025-11-07 22:48:18 +01:00
c45e12ed9a Setup a web extension and refactor code 2025-11-07 22:39:06 +01:00
10 changed files with 22 additions and 75 deletions

View File

@@ -1,4 +0,0 @@
## v0.5.0 - 2025-11-13
### Added
* Add a web extension
* Install using package manager, with CI generating the package

View File

@@ -25,14 +25,8 @@ newlines:
endOfVersion: 1
envPrefix: CHANGIE_
# update the version in relevant files
# update the version in the cargo file, on release
replacements:
- path: Cargo.toml
find: '^version = ".*"'
replace: 'version = "{{.VersionNoPrefix}}"'
- path: web-extension/cl/manifest.json
find: '"version": ".*"'
replace: '"version": "{{.VersionNoPrefix}}"'
- path: web-extension/cl/package.json
find: '"version": ".*"'
replace: '"version": "{{.VersionNoPrefix}}"'

View File

@@ -6,11 +6,6 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).
## v0.5.0 - 2025-11-13
### Added
* Add a web extension
* Install using package manager, with CI generating the package
## v0.4.1 - 2025-10-25
### Fixed
* Fix dependencies

2
Cargo.lock generated
View File

@@ -174,7 +174,7 @@ dependencies = [
[[package]]
name = "cl-cli"
version = "0.5.0"
version = "0.5.0-alpha13"
dependencies = [
"clap",
"gitlab",

View File

@@ -1,8 +1,8 @@
[package]
name = "cl-cli"
version = "0.5.0"
version = "0.5.0-alpha13"
edition = "2021"
license = "GPL-3.0-or-later"
license = "GPLv3"
description = "Some helpers scripts for Champs-Libres"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -30,12 +30,12 @@ serde_json = "1.0.145"
[package.metadata.deb]
maintainer = "Julien Fastré <julien.fastre@champs-libres.coop>"
copyright = "AGPLv3"
extended-description = """Helpers for Champs-Libres"""
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
["target/release/cl-cli", "usr/bin/cl", "755"],
["target/release/webext", "usr/bin/cl-webext", "755"],
["web-extension/_native-messaging/cl_cli.json", "/usr/lib/mozilla/native-messaging-hosts/", "644"]
["target/release/webext", "usr/bin/", "755"],
]

View File

@@ -6,49 +6,23 @@ Currently:
- convert a gitlab issue to a work package
## Install
## Install & configure
There are two components to install:
### Install
- a firefox add-ons;
- some binaries on the host machine
Download the most recent binaries at https://gitea.champs-libres.be/julienfastre/cl-cli/releases
### Install firefox add-on
Once downloaded, install it:
Using firefox, download the `.xpi` file from the [release page](https://gitea.champs-libres.be/julienfastre/cl-cli/releases) of the `julienfastre/cl-cli` repository.
```
# this will install the command globally with the name "cl-cli"
sudo install cl-cli /usr/local/bin/cl-cli
### Install cl-cli binaries
#### Using package manager
A debian package is published and stored on gitea.
```bash
# download the gpg key
sudo curl https://gitea.champs-libres.be/api/packages/julienfastre/debian/repository.key -o /etc/apt/keyrings/gitea-julienfastre.asc
# add the package repository. You must adapt the $distribution (see below)
echo "deb [signed-by=/etc/apt/keyrings/gitea-julienfastre.asc] https://gitea.champs-libres.be/api/packages/julienfastre/debian $distribution main" | sudo tee -a /etc/apt/sources.list.d/gitea.list
# update
sudo apt update
# install
sudo apt install cl-cli
# this will install the command globally with the name "cl"
sudo install cl-cli /usr/local/bin/cl
```
Available distributions:
- Ubuntu 24..04: noble
- Ubuntu 25.04: plucky
- Ubuntu: 25.10: questing
**Note:** The package is very simple, there are very few dependencies, and there isn't any difference between them for now.
## Configure
### Configure
Copy the file [config.toml.dist](./config.toml.dist) as a template, and
save it at the path `$HOME/.config/cl-cli/config.toml`:
@@ -59,19 +33,14 @@ cp config.toml $HOME/.config/cl-cli/config.toml
editor $HOME/.config/cl-cli/config.toml
```
Then, fill it with the required configuration options:
- gitea personal access token:
![configuration screenshort](./docs/configuration/gitea_screenshot_configure_pat.png)
- Gitlab: [Create an access token](https://gitlab.com/-/user_settings/personal_access_tokens?name=cl-cli&scopes=api,read_user) With the "api" and "read_user" scopes
- [Openproject](https://champs-libres.openproject.com/my/access_tokens)
Then, fill it with the required configuration options (gitlab and openproject token).
## Usage as CLI
## Usage
### Convert a gitlab issue into a work package
```bash
cl-cli planning i2work https://gitlab.com/Chill-Projet/chill-bundles/-/issues/240 chill
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

View File

@@ -1,7 +0,0 @@
{
"name": "cl_cli",
"description": "Call cl-cli from browser",
"path": "/usr/bin/cl-webext",
"type": "stdio",
"allowed_extensions": ["helper@champs-libres-coop"]
}

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Champs-Libres Helper",
"version": "0.5.0",
"version": "0.4",
"browser_specific_settings": {
"gecko": {
"id": "helper@champs-libres-coop",

View File

@@ -1,6 +1,6 @@
{
"name": "web-extension",
"version": "0.5.0",
"version": "0.4.0",
"description": "",
"main": "index.js",
"scripts": {
@@ -12,7 +12,7 @@
},
"keywords": [],
"author": "",
"license": "GPL-3.0-or-later",
"license": "ISC",
"type": "commonjs",
"devDependencies": {
"@types/firefox-webext-browser": "^143.0.0",