Skip to content

Commit a0cc4c2

Browse files
chore(master): release 2.19.5 (#201)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Pangratios Cosma <pangratios.cosma@honeybadger.io>
1 parent 1cf4ba3 commit a0cc4c2

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release package
22

33
on:
4+
workflow_dispatch:
45
workflow_run:
56
workflows: [Run Tests]
67
types: [completed]
@@ -27,20 +28,14 @@ jobs:
2728
with:
2829
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
2930

30-
- name: Job Summary
31-
if: ${{ steps.release.outputs.prs_created == 'true' }}
32-
run: |
33-
echo "Release PR created with the following outputs:" >> $GITHUB_STEP_SUMMARY
34-
echo "${{ toJSON(steps.release.outputs) }}" >> $GITHUB_STEP_SUMMARY
35-
3631
- name: Update version in Honeybadger.php
3732
if: ${{ steps.release.outputs.prs_created == 'true' }}
38-
run: php scripts/SyncSourceCodeWithPackageVersion.php ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
33+
run: php scripts/SyncSourceCodeWithPackageVersion.php "${{ fromJSON(steps.release.outputs.pr).title }}"
3934

4035
- uses: stefanzweifel/git-auto-commit-action@v5
4136
if: ${{ steps.release.outputs.prs_created == 'true' }}
4237
with:
4338
create_branch: false
44-
commit_message: "chore: update version to ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} [skip ci]"
39+
commit_message: "chore: update version"
4540
commit_user_name: "honeybadger-robot"
4641
commit_user_email: "honeybadger-robot@honeybadger.io"

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Keep a
33
CHANGELOG](http://keepachangelog.com/) for how to update this file. This project
44
adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [2.19.5](https://github.com/honeybadger-io/honeybadger-php/compare/v2.19.4...v2.19.5) (2024-10-11)
7+
8+
9+
### Bug Fixes
10+
11+
* use RFC3339 extended date format ([#200](https://github.com/honeybadger-io/honeybadger-php/issues/200)) ([1cf4ba3](https://github.com/honeybadger-io/honeybadger-php/commit/1cf4ba3f8fb29e78f929633e298faf2ab3b68409))
12+
613
## [2.19.4](https://github.com/honeybadger-io/honeybadger-php/compare/v2.19.3...v2.19.4) (2024-08-28)
714

815

scripts/SyncSourceCodeWithPackageVersion.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
// Check if version input is provided
44
if ($argc < 2) {
5-
echo "Usage: php SyncSourceCodeWithPackageVersion.php <version>\n";
5+
echo "Usage: php SyncSourceCodeWithPackageVersion.php <pr-title>\n";
66
exit(1);
77
}
88

9-
$versionInput = $argv[1];
9+
// Given the title of the PR, we can extract the version from it
10+
// Example: chore(master): release 4.2.0
11+
$prTitle = $argv[1];
12+
$versionInput = trim(preg_replace('/^chore\(master\): release /', '', $prTitle));
1013
$filePath = 'src/Honeybadger.php';
1114

1215
// Read the content of the file

src/Honeybadger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Honeybadger implements Reporter
2222
/**
2323
* SDK Version.
2424
*/
25-
const VERSION = '2.19.4';
25+
const VERSION = '2.19.5';
2626

2727
/**
2828
* Honeybadger API URL.

0 commit comments

Comments
 (0)