Skip to content

Conversation

Telucero
Copy link
Contributor

Description

Adds the github actions script to send a payload to N8n.

Checklist

  • I have added a label to this PR 🏷️
  • I have run my changes through Grammarly
  • If this requires translations for the moonbeam-docs-cn repo, I have created a ticket for the translations in Jira
  • If pages have been moved around, I have created an additional PR in moonbeam-mkdocs to update redirects
  • If pages have been moved around, I have run the move-pages.py script to move the pages and update the image paths on the chinese repo
    • After the script has been run, I have created an additional PR in moonbeam-docs-cn
  • If images have been added, I have run the compress-images.py script to compress the images.
  • If variables (in variables.yml) need to be updated (such as a name change), I have updated the moonbeam-docs-cn repo to use the new variables
  • If this page requires a disclaimer, I have added one

Corresponding PRs

Please link to any corresponding PRs here.

After Translation Requirements

  • Will need to create PR in moonbeam-docs repo to remove images
  • Will need to create PR in moonbeam-docs repo to remove variables
  • Will need to create PR in moonbeam-mkdocs repo to add redirects for Chinese site
  • No additional PRs are required after the translations are done

Items to be Updated

Please list any of the items that will need to be added or deleted after the translations are done here.

@Copilot Copilot AI review requested due to automatic review settings August 29, 2025 13:51
@Telucero Telucero requested a review from a team as a code owner August 29, 2025 13:51
Copy link
Contributor

@Copilot 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.

Pull Request Overview

This PR adds a GitHub Actions workflow to integrate with N8n automation platform by sending pull request data via webhook and posting automated feedback as comments.

  • Adds workflow triggered on PR open/reopen events that collects PR metadata, files, commits, and diffs
  • Implements two-job architecture with secure token validation between sending and receiving environments
  • Includes automatic PR commenting functionality based on N8n webhook responses

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

github-actions bot commented Sep 2, 2025

Style Guide Violations Summary

.github/workflows/trigger-n8n-workflow.yml (Line 13)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 1 Checkout repository

.github/workflows/trigger-n8n-workflow.yml (Line 18)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 2 Generate Run UUID

.github/workflows/trigger-n8n-workflow.yml (Line 23)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 3 Pre-flight checks

.github/workflows/trigger-n8n-workflow.yml (Line 32)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 4-6 Fetch PR metadata, files, commits

.github/workflows/trigger-n8n-workflow.yml (Line 42)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 7 Fetch PR diff and compress

.github/workflows/trigger-n8n-workflow.yml (Line 52)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 8 Debug payload size

.github/workflows/trigger-n8n-workflow.yml (Line 58)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 8b Remove llms-related files before payload

.github/workflows/trigger-n8n-workflow.yml (Line 63)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 9 Combine and send payload to n8n

.github/workflows/trigger-n8n-workflow.yml (Line 88)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 9b Upload n8n response artifact

.github/workflows/trigger-n8n-workflow.yml (Line 107)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 1 Checkout repository (fix for gh pr comment)

.github/workflows/trigger-n8n-workflow.yml (Line 113)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 2 Download n8n response

.github/workflows/trigger-n8n-workflow.yml (Line 119)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 3 Validate receiving token from n8n response

.github/workflows/trigger-n8n-workflow.yml (Line 134)

  • Issue:
    Period used after numbered step indicator in comment (violates 'Do not put periods at the end of a list item' rule)

  • Correction:

# 4 Parse verification claims and post PR comments

.github/workflows/trigger-n8n-workflow.yml (Line 131)

  • Issue:
    Emoji used in output message (violates 'Do not use emojis' rule)

  • Correction:

echo "Receiving token validated successfully"

Copy link

github-actions bot commented Sep 2, 2025

Verification Review

This review focuses on style guide claims, justifications, and confidence scores in the provided documents.


Unknown (Line -1)

  • Claim:

  • Context:

  • Justification:

(none provided)

  • Requires Verification: No
  • Confidence Score: 0

Copy link

github-actions bot commented Sep 2, 2025

Style Guide Violations Summary

.github/workflows/trigger-n8n-workflow.yml (Line 75)

  • Issue:
    Acronym should be capitalized and singular when used adjectivally

  • Correction:

# 8b. Remove LLM-related files before payload

Copy link

github-actions bot commented Sep 2, 2025

Verification Review

This review focuses on style guide claims, justifications, and confidence scores in the provided documents.


.github/workflows/trigger-n8n-workflow.yml (Line 94)

  • Claim:
    llms-related files

  • Context:

8b. Remove llms-related files before payload

  • name: Remove llms-related files
    run: |
    jq 'map(select(.filename | test("llms"; "i") | not))' files.json > cleaned.json
    mv cleaned.json files.json
  • Justification:

The filter method may produce false positives, removing files that are not actually related to Large Language Models.

  • Requires Verification: Yes
  • Confidence Score: 0.85

@Telucero Telucero assigned Telucero and eshaben and unassigned Telucero Sep 2, 2025
@eshaben eshaben merged commit e57b344 into master Sep 5, 2025
9 of 11 checks passed
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.

2 participants