diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 0000000..0f7b81e --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,101 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'Needs: Author Feedback' + - hasLabel: + label: 'Status: No Recent Activity' + - noActivitySince: + days: 3 + actions: + - closeIssue + - description: + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'Needs: Author Feedback' + - noActivitySince: + days: 4 + - isNotLabeledWith: + label: 'Status: No Recent Activity' + actions: + - addLabel: + label: 'Status: No Recent Activity' + - addReply: + reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. + - description: + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'Resolution: Duplicate' + - noActivitySince: + days: 1 + actions: + - addReply: + reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. + - closeIssue + eventResponderTasks: + - if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isActivitySender: + issueAuthor: True + - hasLabel: + label: 'Needs: Author Feedback' + - isOpen + then: + - addLabel: + label: 'Needs: Attention :wave:' + - removeLabel: + label: 'Needs: Author Feedback' + description: + - if: + - payloadType: Issues + - not: + isAction: + action: Closed + - hasLabel: + label: 'Status: No Recent Activity' + then: + - removeLabel: + label: 'Status: No Recent Activity' + description: + - if: + - payloadType: Issue_Comment + - hasLabel: + label: 'Status: No Recent Activity' + then: + - removeLabel: + label: 'Status: No Recent Activity' + description: + - if: + - payloadType: Pull_Request + then: + - inPrLabel: + label: WIP + description: +onFailure: +onSuccess: diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 544d8b5..19f27db 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -15,7 +15,7 @@ jobs: php-versions: ['7.4', '8.0', '8.1', '8.2'] steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 - name: Setup PHP and Xdebug for Code Coverage report uses: shivammathur/setup-php@v2 with: diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a26f081 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,68 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Added + +### Changed + +## [0.7.0] - 2023-10-30 + +### Added +- Adds CHANGELOG. [#47](https://github.com/microsoft/kiota-serialization-json-php/pull/47) + +### Changed +- Disabled PHP-HTTP discovery plugin. [#49](https://github.com/microsoft/kiota-serialization-json-php/pull/49) +- Bumps Kiota Abstractions dependency version. [#52](https://github.com/microsoft/kiota-serialization-json-php/pull/52) + +## [0.6.0] - 2023-06-29 + +### Added +- Disable pipeline runs for forks. [#38](https://github.com/microsoft/kiota-serialization-json-php/pull/38) + +### Changed +- Handle null values when serializing intersection wrappers. [#39](https://github.com/microsoft/kiota-serialization-json-php/pull/39) + +## [0.5.1] - 2023-06-12 + +### Changed +- Fix DateTime serialization. [#35](https://github.com/microsoft/kiota-serialization-json-php/pull/35) + +## [0.5.0] - 2023-05-18 + +### Changed +- Bump abstractions. [#29](https://github.com/microsoft/kiota-serialization-json-php/pull/29) + +## [0.4.3] - 2023-04-13 + +### Added +- Support deserializing objects to stream. [#22](https://github.com/microsoft/kiota-serialization-json-php/pull/22) + +## [0.4.2] - 2023-03-22 + +### Changed +- Fix static analysis issues. [#17](https://github.com/microsoft/kiota-serialization-json-php/pull/17) +- Fix PHPStan failure when getting object value from JsonParseNode. [#18](https://github.com/microsoft/kiota-serialization-json-php/pull/18) + +## [0.4.1] - 2023-03-07 + +### Changed +- fix: tab escaping. [#15](https://github.com/microsoft/kiota-serialization-json-php/pull/15) + +## [0.4.0] - 2023-02-21 + +### Added +- Composed types (De)serialization support. [#6](https://github.com/microsoft/kiota-serialization-json-php/pull/6) +- Add SonarCloud Coverage reporting. [#10](https://github.com/microsoft/kiota-serialization-json-php/pull/10) +- Change workflow to use strategy matrix for PHP versions. [#8](https://github.com/microsoft/kiota-serialization-json-php/pull/8) + +### Changed +- Bump Abstractions version. [#13](https://github.com/microsoft/kiota-serialization-json-php/pull/13) + + +*For previous releass, please see our [Release Notes](https://github.com/microsoft/kiota-serialization-json-php/releases)* diff --git a/composer.json b/composer.json index e8970b2..9a677ad 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } }, "require": { - "microsoft/kiota-abstractions": "^0.8.0", + "microsoft/kiota-abstractions": "^0.9.0", "guzzlehttp/psr7": "^1.6 || ^2", "php": "^7.4 || ^8", "ext-json": "*" @@ -25,5 +25,10 @@ "roave/security-advisories": "dev-latest", "phpunit/phpunit": "^8 || ^9", "phpstan/phpstan": "^1.4" + }, + "config": { + "allow-plugins": { + "php-http/discovery": false + } } } diff --git a/src/Constants.php b/src/Constants.php new file mode 100644 index 0000000..b3fa7ad --- /dev/null +++ b/src/Constants.php @@ -0,0 +1,8 @@ +