Author SHA1 Message Date
dependabot[bot] 8d6aad521a Bump stefanzweifel/git-auto-commit-action from 6 to 7
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 6 to 7.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 00:37:24 +00:00
github-actions[bot] bde7a6a279 Merge pull request #3 from MattitjaAB/dependabot/github_actions/aglipanci/laravel-pint-action-2.6
Bump aglipanci/laravel-pint-action from 2.5 to 2.6
2025-07-28 00:41:03 +00:00
dependabot[bot] 88bbf916b5 Bump aglipanci/laravel-pint-action from 2.5 to 2.6
Bumps [aglipanci/laravel-pint-action](https://github.com/aglipanci/laravel-pint-action) from 2.5 to 2.6.
- [Release notes](https://github.com/aglipanci/laravel-pint-action/releases)
- [Commits](https://github.com/aglipanci/laravel-pint-action/compare/2.5...2.6)

---
updated-dependencies:
- dependency-name: aglipanci/laravel-pint-action
  dependency-version: '2.6'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-28 00:40:51 +00:00
mathiaspalmqvist 19bc5c38dc Update CHANGELOG 2025-07-04 19:44:34 +00:00
mathiaspalmqvist 2c768ff5d4 Fixed failing test 2025-07-04 21:43:17 +02:00
mathiaspalmqvist 36f60cbb3c Merge branch 'main' of https://github.com/MattitjaAB/laravel-cision-feed 2025-07-04 21:41:03 +02:00
mathiaspalmqvist 356030865a Update Cision.php 2025-07-04 21:40:58 +02:00
mathiaspalmqvist 4a1cd76cf5 Update .gitignore 2025-07-04 21:40:54 +02:00
mathiaspalmqvist 2bf960028e Update CHANGELOG 2025-07-04 19:38:26 +00:00
5 changed files with 24 additions and 6 deletions

No files matched your search

@@ -20,9 +20,9 @@ jobs:
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
- name: Fix PHP code style issues - name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.5 uses: aglipanci/laravel-pint-action@2.6
- name: Commit changes - name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v6 uses: stefanzweifel/git-auto-commit-action@v7
with: with:
commit_message: Fix styling commit_message: Fix styling
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
release-notes: ${{ github.event.release.body }} release-notes: ${{ github.event.release.body }}
- name: Commit updated CHANGELOG - name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v6 uses: stefanzweifel/git-auto-commit-action@v7
with: with:
branch: main branch: main
commit_message: Update CHANGELOG commit_message: Update CHANGELOG
+18
View File
@@ -1,3 +1,21 @@
# Changelog # Changelog
All notable changes to `laravel-cision-feed` will be documented in this file. All notable changes to `laravel-cision-feed` will be documented in this file.
## v2.1 - 2025-07-04
**Full Changelog**: https://github.com/MattitjaAB/laravel-cision-feed/compare/v2.0...v2.1
## v2.0 - 2025-07-04
### What's Changed
* 2.0 by @mathiaspalmqvist in https://github.com/MattitjaAB/laravel-cision-feed/pull/1
* Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot in https://github.com/MattitjaAB/laravel-cision-feed/pull/2
### New Contributors
* @mathiaspalmqvist made their first contribution in https://github.com/MattitjaAB/laravel-cision-feed/pull/1
* @dependabot made their first contribution in https://github.com/MattitjaAB/laravel-cision-feed/pull/2
**Full Changelog**: https://github.com/MattitjaAB/laravel-cision-feed/compare/1.0.2...v2.0
+2 -2
View File
@@ -15,9 +15,9 @@ class Cision
/** /**
* Constructor that accepts a slug identifier for the feed. * Constructor that accepts a slug identifier for the feed.
*/ */
public function __construct(?string $slug = null) public function __construct(string $slug)
{ {
$this->slug = $slug ?? env('LARAVEL_CISION_FEED_SLUG', ''); $this->slug = $slug;
} }
public function all(int $page = 1): array|false public function all(int $page = 1): array|false
+1 -1
View File
@@ -24,7 +24,7 @@ it('can fetch and parse full article content', function () {
'news.cision.com/*' => Http::response(file_get_contents(__DIR__.'/Fixtures/article.html')), 'news.cision.com/*' => Http::response(file_get_contents(__DIR__.'/Fixtures/article.html')),
]); ]);
$cision = new Cision; $cision = new Cision('test-company');
$content = $cision->fetchContent('https://news.cision.com/se/example/r/test,c123456'); $content = $cision->fetchContent('https://news.cision.com/se/example/r/test,c123456');
expect($content)->toHaveKeys(['header', 'published_at', 'content']); expect($content)->toHaveKeys(['header', 'published_at', 'content']);