Skip to content

Comments

feat: Create automatically a thread on discord when creating a reposi…#66

Draft
vassilidev wants to merge 18 commits intodevelopfrom
feature/52-webhook-to-discord
Draft

feat: Create automatically a thread on discord when creating a reposi…#66
vassilidev wants to merge 18 commits intodevelopfrom
feature/52-webhook-to-discord

Conversation

@vassilidev
Copy link
Collaborator

feat: Create automatically a thread on discord when creating a repository.

@vassilidev vassilidev linked an issue Apr 16, 2023 that may be closed by this pull request
@vassilidev vassilidev changed the base branch from master to develop April 16, 2023 15:27
…to-discord

# Conflicts:
#	app/Models/Repository.php
public function execute(
string $name,
ChannelType $channelType = ChannelType::TEXT,
?string $parentId = null

Choose a reason for hiding this comment

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

What is your opinion on union types?

I think its more readable and clear using it, like null|string

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for null its ok to use "?"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

string|int|null ok
bcuz ?string|int not readable and may not work

{
try {
/** @var ChannelData $threadData */
$threadData = app(CreateChannel::class)->execute(
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it ok to create a forum on discord per repository?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes ! but we have to re work this pr, lot of change since and i want to make a lot of new thing.

My idea was : One Forum per repo and one thread into the forum per pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webhook to discord

3 participants