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

feat: alerts continue and complete #46

Merged
merged 5 commits into from
Dec 5, 2024

Conversation

Meng-Heng
Copy link
Collaborator

@Meng-Heng Meng-Heng commented Dec 3, 2024

Hello! I tried updating this branch with no success. It was meant for one file only. Thank you!

This PR is ready for review.

Fixes: #45

@Meng-Heng Meng-Heng added the feat label Dec 3, 2024
@Meng-Heng Meng-Heng added this to the A18S16 milestone Dec 3, 2024
@darcywong00
Copy link
Contributor

I think on your fork we remove the .github/workflows/add-to-keyman-project.yml

That's only supposed to run on the main keyman.com repo

@mcdurdin
Copy link
Member

mcdurdin commented Dec 4, 2024

Let's get @Meng-Heng setup to commit to the keymanapp repo rather than the fork. @darcywong00 can you help him with that? It just simplifies a bunch of things.

Comment on lines 44 to 46
if(empty($icon[$alertType])) {
return parent::blockQuote($block);
return null;
}
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be returning parent::blockQuote($line)?

Comment on lines 77 to 82
if(isset($block['interrupted'])) {
$block['element']['text'][] = [
'text' => ''
];
unset($block['interrupted']);
}
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure what this is doing?

Copy link
Collaborator Author

@Meng-Heng Meng-Heng Dec 4, 2024

Choose a reason for hiding this comment

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

I will change it to this

if(isset($block['interrupted'])) {
            return $block;
        }

To handle the interruption:

> [!TIPS]
> [!IMPORTANT]

> Do NOT do this.
> This is the last GFMAlerts

Output:
image

@Meng-Heng Meng-Heng requested a review from mcdurdin December 4, 2024 06:39
@mcdurdin mcdurdin merged commit 20a696c into keymanapp:alerts/v0.12 Dec 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants