Author SHA1 Message Date
dependabot[bot] 7664c327a5 Bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 00:30:13 +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
8 changed files with 27 additions and 9 deletions

No files matched your search

@@ -15,12 +15,12 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
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@v6
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
+1 -1
View File
@@ -42,7 +42,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
ref: main ref: main
+1 -1
View File
@@ -3,4 +3,4 @@
vendor vendor
composer.lock composer.lock
.phpunit.cache .phpunit.cache
build build
+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']);