Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7664c327a5 | ||
|
|
bde7a6a279 | ||
|
|
88bbf916b5 | ||
|
|
19bc5c38dc | ||
|
|
2c768ff5d4 | ||
|
|
36f60cbb3c | ||
|
|
356030865a | ||
|
|
4a1cd76cf5 | ||
|
|
2bf960028e |
No files matched your search
@@ -15,12 +15,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Fix PHP code style issues
|
||||
uses: aglipanci/laravel-pint-action@2.5
|
||||
uses: aglipanci/laravel-pint-action@2.6
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v6
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: main
|
||||
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
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
@@ -15,9 +15,9 @@ class Cision
|
||||
/**
|
||||
* 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
|
||||
|
||||
@@ -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')),
|
||||
]);
|
||||
|
||||
$cision = new Cision;
|
||||
$cision = new Cision('test-company');
|
||||
$content = $cision->fetchContent('https://news.cision.com/se/example/r/test,c123456');
|
||||
|
||||
expect($content)->toHaveKeys(['header', 'published_at', 'content']);
|
||||
|
||||
Reference in new issue
Block a user