Skip to content

Commit

Permalink
Update issue requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Feb 14, 2024
1 parent aba1512 commit 161ac51
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug report
about: Create a report to help us improve icalendar-generator
title: ''
labels: ''
assignees: ''
---

**✏️ Describe the bug**
A clear and concise description of what the bug is.

**↪️ To Reproduce**
Provide us a test like this one which shows the problem:

```php

it('cannot create a calendar', function () {
$event = Event::create('Event')
->startsAt(new DateTime('2021-01-01 12:00:00'))
->endsAt(new DateTime('2021-01-01 13:00:00'))
->description('Description')
->address('Address')
->url('https://www.spatie.be')
->create();

// Calendar is not created (off course, since we've only created an event but for documentation purposes)
dd($event->get());
});
```

Assertions aren't required, a simple dump or dd statement of what's going wrong is good enough 😄

**✅ Expected behavior**
A clear and concise description of what you expected to happen.

**🖥️ Versions**

iCalendar generator:
PHP:
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/spatie/icalendar-generator/discussions/new?category=q-a
about: Ask the community for help
- name: Request a feature
url: https://github.com/spatie/icalendar-generator/discussions/new?category=ideas
about: Share ideas for new features

0 comments on commit 161ac51

Please sign in to comment.