-
-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial PR for Contributing & Coding Standard #920
Conversation
* Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md
@se-bastiaan @andygrunwald Thank you to the both of you for investing time to read and improve these documents. I highly appreciate it! Some changes i have allready commited, i change the other things around in a few days when the holdays are over and íve got more sparetime. You are welcome to contribute and open a Pull Reqest against the contributer_guide branch if you have any more improvements/changes. |
### Important Notes | ||
- Use [AppName.sh](https://github.com/community-scripts/ProxmoxVE/blob/contributor_guide/.github/CONTRIBUTOR_GUIDE/ct/AppName.sh) and [AppName-install.sh](https://github.com/community-scripts/ProxmoxVE/blob/contributor_guide/.github/CONTRIBUTOR_GUIDE/install/AppName-install.sh) as templates when creating new scripts. | ||
- The call to `community-scripts/ProxmoxVE` should be adjusted to reflect the correct fork URL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea to start a new script from a template.
Why not going all in and providing the CLI commands for this?
If you plan to implement a new application script, use our templates to get a kickstart:
$ NEW_APP_NAME="my-script"
$ cp ct/AppName.sh ct/${NEW_APP_NAME}.sh
$ cp ...
$ sed ... (some git remote -v magic to get the fork path)
This way, folks can just copy / paste the commands and get going.
Additionally: Considering the CONTIRBUTING.md is the entry doc, this is the first time it is mentioned that we operate on a fork.
Maybe it is better to move this chapter to a
Guide: Create your own App Script
which starts with
- Fork this Repository
- Kickstart your app with your template
- ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There has been a proposal by @quantumryuu for this already, have a look here: https://github.com/community-scripts/ProxmoxVE/tree/new_script_testing/.github/CONTRIBUTOR_GUIDE/dev-scripts
I will start testing, experementing with this when the hollidays are over.
I also would love to have something simillar to this for Appname.sh and AppName-install.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the AppName.sh/AppName-install.sh we could modify the scripts I proposed into asking things like "Author", "Source", "AppName" I guess.
## 🚀 Building Your Own Scripts | ||
|
||
Start with the [template script](https://github.com/community-scripts/ProxmoxVE/blob/contributor_guide/.github/CONTRIBUTOR_GUIDE/install/AppName-install.sh) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here i am a bit lost. Where do I start now to build my own script? Here or with the template of ct/AppName.sh
and install/AppName-install.sh
?
## 📚 Pages | ||
|
||
- [Function-Overview](https://github.com/community-scripts/ProxmoxVE/wiki/Function_Overview) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the purpose of this chapter?
What goes in here? What does not go in here?
I think all relevant pages are linked above in the respective context. I am suggesting to drop this chapter.
About the Metadata (author, license) is included at the top. I created a workflow and tested it, can do a PR so the team can test it too!
@michelroegl-brunner if you're ok with the idea, shall I open a PR? @se-bastiaan about the Variables follow naming conventions. (if possible somehow). Care to give some examples? All I can think of for a check could be the mysql setup probably (DB_NAME, DB_USER, DB_PASS). |
I really don't know what the examples would be, I've mostly read this contribution guide and according to the docs there would be a difference, I just don't know what they would be. However, to me this is the least important workflow that could exist. I'm looking into creating a shfmt workflow however. There seem to be quite some actions available but none of them are very well maintained. |
Relevant PR for the metadata check is up with all the required checks (text & lines) |
Reminder for me:
|
@MickLesk should I create a workflow check for the lowercase files? |
Yes you can do |
We merge the actual state of PR, For now, we have something on which we can build further PRs |
✍️ Description
remove old contributing.md
add new contributing.md
First Draft, added some functionality and descriptions later
Every @community-scripts/contributor are welcome to improve this PR
🛠️ Type of Change
Please check the relevant options:
✅ Prerequisites
The following steps must be completed for the pull request to be considered:
📋 Additional Information (optional)
Provide any extra context or screenshots about the feature or fix here.