Skip to content

Add workflow to check and update MTProto API schema#63

Merged
HitaloM merged 1 commit intodevfrom
auto-update-schema
Apr 16, 2025
Merged

Add workflow to check and update MTProto API schema#63
HitaloM merged 1 commit intodevfrom
auto-update-schema

Conversation

@HitaloM
Copy link
Copy Markdown
Member

@HitaloM HitaloM commented Apr 14, 2025

Implement a GitHub Actions workflow that automatically checks for updates to the MTProto API schema every 12 hours and creates or updates a pull request with the changes if updates are detected.

@HitaloM HitaloM added the enhancement New feature, request or code enhancement. label Apr 14, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

.github/workflows/check_api_updates.yml:48

  • The extraction of the layer version using grep and awk relies on a fixed file format and may break if formatting changes. Consider using a more robust extraction method or reusing the Python regex logic to ensure consistency.
CURRENT_LAYER=$(grep -o "// LAYER [0-9]*" compiler/api/source/main_api.tl | awk '{print $3}')

@HitaloM HitaloM merged commit dd3e77d into dev Apr 16, 2025
18 checks passed
@HitaloM HitaloM deleted the auto-update-schema branch April 16, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, request or code enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants