From 9bae777c61671bc9829939513f16371149110979 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Tue, 6 Feb 2024 12:55:53 +0300 Subject: [PATCH] 5.2.0 --- CHANGELOG.md | 10 ++++++++-- CONTRIBUTING.md | 22 +++++++++++++--------- README.md | 3 +-- composer.json | 2 +- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d9cfff0..72d93d87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,13 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## [Unreleased](https://github.com/HubSpot/hubspot-php/compare/v5.1.1...HEAD) +## [Unreleased](https://github.com/HubSpot/hubspot-php/compare/v5.2.0...HEAD) + +## [5.2.0] + +### Changed + +- Added type hinting for a few method of `SevenShores\Hubspot\Http\Response`. ## [5.1.1] @@ -96,7 +102,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Comments to BlogComments -- Deal create + update change params +- Deal create + update change params - BlogPosts::clonePost => BlogPosts::clone - BlogTopics::create remove name - contactsProperties getGroups => getAllGroups diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a8006509..fd923200 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,24 +6,28 @@ agree to not be a jerk. ## Getting Started - Fork, then clone the repo: -``` + +```bash git clone git@github.com:your-username/hubspot-php.git ``` - Set up your machine: -``` + +```bash composer install ``` - Make your change. Add test for your changes. Make the tests pass, e.g.: -``` + +```bash vendor/bin/phpunit tests/integration/Endpoints/TimelineTest ``` + or you can run tests with docker: -1. Copy .env.template to .env -2. Specify data in .env (for most tests it is enough to specify HUBSPOT_TEST_API_KEY) -3. `docker-compose up --build` +1. Copy `.env.template` to `.env` +2. Specify data in `.env` (for most tests it is enough to specify `HUBSPOT_TEST_API_KEY`) +3. `docker-compose up --build` - Push to your fork and [submit a pull request][pr]. @@ -35,9 +39,9 @@ some changes or improvements or alternatives. Some things that will increase the chance that your pull request is accepted: -* Write tests. -* Follow PSR-2 [style guide][style]. -* Write a [good commit message][commit]. +- Write tests. +- Follow PSR-2 [style guide][style]. +- Write a [good commit message][commit]. [style]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html diff --git a/README.md b/README.md index 52c9a76a..55e90644 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ $hubspot = new SevenShores\Hubspot\Factory([ 'oauth2' => false, // default ]); -// Then you can call a resource +// Then you can call a resource // When referencing endpoints, use camelCase $hubspot->contactlists @@ -266,4 +266,3 @@ If you see something not planned, that you want, make an [issue](https://github. - [x] Transactional Email API - [x] Workflows API :updated: - [x] Webhooks API - diff --git a/composer.json b/composer.json index 83756526..fcbfbc14 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hubspot/hubspot-php", - "version": "5.1.1", + "version": "5.2.0", "description": "HubSpot PHP API client", "keywords": [ "hubspot", "api" ], "license": "Apache-2.0",