Skip to content

Commit

Permalink
Leverage GitHub templates
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed May 30, 2021
1 parent 3df73da commit 4061690
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: 🐞 Bug Report
about: Something is broken? 🔨
labels: bug, unconfirmed
---

<!--
Before you open an issue, make sure this one does not already exist.
Please also read the "guidelines for contributing" link above before posting.
-->

<!--
If you are reporting a bug, please try to fill in the following.
Otherwise remove it.
-->

### Environment

#### Zabbix version

```
$ curl -X POST <your-zabbix-api-endpoint> \
-H 'Content-Type: application/json-rpc' \
-d '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}'
# Change <your-zabbix-api-endpoint> with your Zabbix API endpoint (for example, "https://your-zabbix-domain/api_jsonrpc.php") and put the result here.
```

#### PhpZabbixApi version

```
$ composer show --latest confirm-it-solutions/php-zabbix-api
# Put the result here.
```

#### PHP version

```
$ php -v
# Put the result here.
```

## Subject

<!--
Give here as many details as possible.
Next sections are for ERRORS only.
-->

## Minimal repository with the bug

## Steps to reproduce

## Expected results

## Actual results

<!--
If it's an error message or piece of code, use code block tags,
and make sure you provide the whole stack trace(s),
not just the first error message you can see.
More details here: https://github.com/confirm-it-solutions/php-zabbix-api/blob/2.x/CONTRIBUTING.md#issues
-->
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: 🚀 Feature Request
about: I have a suggestion (and may want to implement it 🙂)!
labels: feature
---

## Feature Request

<!-- Provide a summary of the feature. -->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: StackOverflow
url: https://stackoverflow.com/questions/tagged/phpzabbixapi
about: 'Questions tagged with "phpzabbixapi" on StackOverflow'
64 changes: 64 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!-- THE PR TEMPLATE IS NOT AN OPTION. DO NOT DELETE IT, MAKE SURE YOU READ AND EDIT IT! -->
## Subject

<!-- Describe your Pull Request content here -->

<!--
Show us you choose the right branch.
Different branches are used for different things:
- 2.x is for everything backwards compatible, like patches, features and deprecation notices
- master is for deprecation removals and other changes that cannot be done without a BC-break
More details here: https://github.com/confirm-it-solutions/php-zabbix-api/blob/2.x/CONTRIBUTING.md#base-branch
-->
I am targeting this branch, because {reason}.

<!--
Specify which issues will be fixed/closed.
Remove it if this is not related.
-->

Closes #{put_issue_number_here}.

## Changelog

<!-- MANDATORY
Fill the changelog part inside the code block.
Follow this schema: http://keepachangelog.com/
This will end up on https://github.com/confirm-it-solutions/php-zabbix-api/releases,
please keep it short and clear and to the point
-->

<!--
If you are updating something that doesn't require
a release, you can delete the whole "Changelog" section.
(eg. update to docs, tests)
-->

<!-- REMOVE EMPTY SECTIONS -->
```markdown
### Added
- Method `Class::newMethod()` to do great stuff.

### Changed

### Deprecated

### Removed

### Fixed

### Security
```

<!--
If this is a work in progress, uncomment the "To do" section.
You can add as many tasks as you want.
If some are not relevant, just remove them.
-->
<!--
## To do
- [ ] Update the tests;
- [ ] Update the documentation;
- [ ] Add an upgrade note.
-->
Loading

0 comments on commit 4061690

Please sign in to comment.