Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d913c3008 | ||
|
|
f9487a3336 | ||
|
|
305f2cc0dd | ||
|
|
bde7a6a279 | ||
|
|
88bbf916b5 | ||
|
|
19bc5c38dc | ||
|
|
2c768ff5d4 | ||
|
|
36f60cbb3c | ||
|
|
356030865a | ||
|
|
4a1cd76cf5 | ||
|
|
2bf960028e |
No files matched your search
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Dependabot metadata
|
- name: Dependabot metadata
|
||||||
id: metadata
|
id: metadata
|
||||||
uses: dependabot/fetch-metadata@v2.4.0
|
uses: dependabot/fetch-metadata@v2.5.0
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ 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@v6
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
uses: ramsey/composer-install@v3
|
uses: ramsey/composer-install@v4
|
||||||
|
|
||||||
- name: Run PHPStan
|
- name: Run PHPStan
|
||||||
run: ./vendor/bin/phpstan --error-format=github
|
run: ./vendor/bin/phpstan --error-format=github
|
||||||
+1
-1
@@ -3,4 +3,4 @@
|
|||||||
vendor
|
vendor
|
||||||
composer.lock
|
composer.lock
|
||||||
.phpunit.cache
|
.phpunit.cache
|
||||||
build
|
build
|
||||||
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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']);
|
||||||
|
|||||||
Reference in new issue
Block a user