tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
14.43k stars 2.37k forks source link

Local development, contribution guide and remote branch change to test code. #3660

Closed cusspvz closed 2 months ago

cusspvz commented 2 months ago

Description

First of all congratulations on building this project, it is extremely useful and I've been using it on personal stuff.

It wasn't clear how I could test changes before making my first contribution, so I decided to make a few changes to develop some installation scripts and test these before I create a PR.

My changes makes it easier for contributors to test changes before pushing a PR, and for the reviewers of the PRs to test them before they land onto the main branch.

Type of change

Please check the relevant option(s):

Test these changes

  1. Clone the repository and branch to your Proxmox host, and set the PHS_ROOT to your cwd.
export PHS_ROOT=$(pwd)
  1. Edit the initial URL of any file and point it towards the latest commit of this PR.

Example:

 #!/usr/bin/env bash
-source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/fs.func)
+source <(curl -s https://raw.githubusercontent.com/cusspvz/Proxmox-Helper-Scripts/42e1308d/misc/fs.func)
  1. Execute the edited script.

Example:

./ct/alpine-grafana.sh
tteck commented 2 months ago

Thank you for the pull request! I really appreciate the effort you put into it, but I’m not interested in merging this at the moment.

matbgn commented 2 months ago

Hi @tteck

Sorry to jump in but could you please, in this particular case, give a context to your refusal? Because for a end user perspective this PR improve dramatically the quality of all the chain of code and therefore ensure a kind of protection to supply chain attack because we could enhance further tests and then run them locally. Or do I miss something?