This is an automated email from the ASF dual-hosted git repository. DaanHoogland pushed a commit to branch ai-assisted-contributions in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit e2c1c3e19ca4f871b5bdfcbe4118ca764eda5594 Author: Daan Hoogland <[email protected]> AuthorDate: Wed Nov 25 12:51:38 2026 +0100 AI assited controbution guides --- .github/ISSUE_TEMPLATE/bug.yml | 14 ++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yml | 14 ++++++++++++++ CONTRIBUTING.md | 15 +++++++++++++++ ISSUE_TEMPLATE.md | 11 +++++++++++ 4 files changed, 54 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 10f05a1adfd..a92386603de 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -19,6 +19,14 @@ name: bug title: "[SHORT PROBLEM DESCRIPTION]" labels: bug, needs-triageing body: +- type: markdown + attributes: + value: > + > **Using AI?** AI-assisted issues are appreciated, but if you use AI to write + this issue, please spend the extra tokens to also generate documentation, + tests (a reproducer for bugs) and suggested code (a patch or, preferably, + a pull request), and verify them before submitting. See + [AI-assisted contributions](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md#ai-assisted-contributions). - type: markdown attributes: value: "## Welcome, please describe your problem below;" @@ -44,3 +52,9 @@ body: - type: textarea attributes: label: "What to do about it?" +- type: textarea + attributes: + label: "AI assistance" + description: "If AI was used to write this issue, say so here and add (or link to) the generated documentation, tests and suggested code. Leave empty if no AI was used." + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 90de1169886..2f502a87af8 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -19,7 +19,21 @@ name: feature title: "[SHORT FUNCTIONAL DESCRIPTION]" labels: new body: +- type: markdown + attributes: + value: > + > **Using AI?** AI-assisted issues are appreciated, but if you use AI to write + this issue, please spend the extra tokens to also generate documentation, + tests (a reproducer for bugs) and suggested code (a patch or, preferably, + a pull request), and verify them before submitting. See + [AI-assisted contributions](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md#ai-assisted-contributions). - type: textarea attributes: label: "The required feature described as a wish" value: As a User/Admin/Operator I would like to , ... have the system make my morning coffee. +- type: textarea + attributes: + label: "AI assistance" + description: "If AI was used to write this issue, say so here and add (or link to) the generated documentation, tests and suggested code. Leave empty if no AI was used." + validations: + required: false diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f0678ed7649..00800a089b2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,6 +28,7 @@ - [Bug fixes](#bug-fixes) - [Developing new features](#developing-new-features) - [PendingReleaseNotes file](#pendingreleasenotes-file) +- [AI-assisted contributions](#ai-assisted-contributions) - [Fork the code](#fork-the-code) - [Making changes](#making-changes) - [Rebase `feature_x` to include updates from `upstream/main`](#rebase-feature_x-to-include-updates-from-upstreammain) @@ -67,6 +68,20 @@ When adding information to the PendingReleaseNotes file make sure that you write Updating the PendingReleaseNotes file is preferably a part of the original Pull Request, but that is up to the developers' discretion. +## AI-assisted contributions + +Contributions made with the help of AI tools are welcome and appreciated. Generating an issue or a pull request with AI is cheap for the submitter, though; reviewing, reproducing and fixing it is not cheap for the volunteers who maintain ACS. + +If you use AI to submit an issue of any kind (bug report, improvement, feature idea, documentation report, security finding) or a pull request, you are expected to spend the extra tokens and include the work that makes it actionable: + +- **Documentation**: a clear description of the problem or change, the affected versions and components, and, for new or changed behaviour, the documentation or PendingReleaseNotes text that goes with it. +- **Tests**: a reproducer for bugs (steps, a unit test or a Marvin test) and unit and/or integration tests for proposed changes. +- **Suggested code**: a proposed fix or implementation, preferably as a pull request against the right branch (see [Bug fixes](#bug-fixes) and [Developing new features](#developing-new-features)), or at least as a patch or code snippet in the issue. + +Review and verify AI output before you submit it. You are responsible for the accuracy of what you submit, and for making sure it compiles, passes the tests and actually addresses the issue. Please mention in the issue or pull request that AI tools were used. + +Issues or pull requests that are clearly AI-generated but lack these elements may be closed or put on hold until they are completed. + ## Fork the code In your browser, navigate to: [https://github.com/apache/cloudstack](https://github.com/apache/cloudstack) diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 4a48a4e7591..7e6da01b7df 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -2,6 +2,11 @@ Verify first that your issue/request is not already reported on GitHub. Also test if the latest release and main branch are affected too. Always add information AFTER of these HTML comments, but no need to delete the comments. + +AI-assisted issues are appreciated, but if you use AI to write this issue, please spend the +extra tokens to also generate documentation, tests (a reproducer for bugs) and suggested code +(a patch or, preferably, a pull request), and verify them before submitting. Mention that AI +was used. See the "AI-assisted contributions" section in CONTRIBUTING.md. --> ##### ISSUE TYPE @@ -71,3 +76,9 @@ For new features, show how the feature would be used. ~~~ ~~~ + +##### AI ASSISTANCE +<!-- +If AI was used to write this issue, say so here and add (or link to) the generated +documentation, tests and suggested code. Delete this section if no AI was used. +-->
