Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Notifier] Added redlink notifier #50170

Merged
merged 1 commit into from Jun 21, 2023
Merged

Conversation

plotkabytes
Copy link
Contributor

@plotkabytes plotkabytes commented Apr 27, 2023

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR symfony/symfony-docs#18263

Added Redlink notifier bridge

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.3 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot


where:

- `API_TOKEN` is your user API token, you can get it from user dashboard
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `API_TOKEN` is your user API token, you can get it from user dashboard
- `API_TOKEN` is your user API token, you can get it from the user dashboard

protected const HOST = 'api.redlink.pl';

public function __construct(
#[\SensitiveParameter] private readonly string $apiToken,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[\SensitiveParameter] private readonly string $apiToken,
#[\SensitiveParameter]
private readonly string $apiToken,


public function __construct(
#[\SensitiveParameter] private readonly string $apiToken,
#[\SensitiveParameter] private readonly string $appToken,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[\SensitiveParameter] private readonly string $appToken,
#[\SensitiveParameter]
private readonly string $appToken,

{
return sprintf(
'redlink://%s:%s@%s?from=%s&version=%s',
$this->apiToken,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be exposed

return sprintf(
'redlink://%s:%s@%s?from=%s&version=%s',
$this->apiToken,
$this->appToken,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be exposed

"require": {
"php": ">=8.1",
"symfony/http-client": "^5.4|^6.0",
"symfony/notifier": "^6.2.7"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"symfony/notifier": "^6.2.7"
"symfony/notifier": "^6.3"

@OskarStark
Copy link
Contributor

Can you please open a PR on the Symfony docs and the symfony/recipes repository? Thanks

@OskarStark
Copy link
Contributor

Why did you close the PR?

@plotkabytes plotkabytes reopened this Apr 27, 2023
@plotkabytes
Copy link
Contributor Author

Why did you close the PR?

Sorry, this was by mistake. I made suggested changes, and I will open PR on the Symfony docs and the symfony/recipes repository soon. Thanks!

@plotkabytes
Copy link
Contributor Author

Done.
recipes: symfony/recipes#1193
docs: symfony/symfony-docs#18263

Can you please open a PR on the Symfony docs and the symfony/recipes repository? Thanks

@nicolas-grekas nicolas-grekas modified the milestones: 6.3, 6.4 May 23, 2023
@carsonbot carsonbot changed the title Added redlink notifier [Notifier] Added redlink notifier Jun 21, 2023
@fabpot
Copy link
Member

fabpot commented Jun 21, 2023

Thank you @plotkabytes.

@fabpot fabpot merged commit bad7e38 into symfony:6.4 Jun 21, 2023
6 of 9 checks passed
OskarStark added a commit to symfony/symfony-docs that referenced this pull request Jun 21, 2023
This PR was submitted for the 6.3 branch but it was squashed and merged into the 6.4 branch instead.

Discussion
----------

Add Redlink docs

Documentation for new redlink notifier. PR: [symfony/symfony#50170](symfony/symfony#50170).

Commits
-------

9b9cd36 Add Redlink docs
This was referenced Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants