A collection of reusable GitHub Actions for Decentraland repositories.
It's a workflow that enforces every pr's title to follow our Git style guide.
-
Add a workflow like the following:
name: validate-pr-title on: pull_request: types: [edited, opened, reopened, synchronize] jobs: title-matches-convention: uses: decentraland/actions/.github/workflows/validate-pr-title.yml@main
-
Add a rule to your repository to make the check for title-matches-convention required. If not, when the title doesn't match the convention, the check will be mark as failed but users will be able to merge.
-
Activate squash merges in your repository. When this is activated and you click on
squash and mergebutton, it uses the pr's title as a commit message. If not, it puts the title in the body and the message will look likeMerge pull request #1 from ....
An AI-powered PR review system that analyzes code impact and dependencies, providing automated code reviews with risk assessment and actionable feedback.
name: AI Pull Request Review
on:
workflow_dispatch:
pull_request:
types: [labeled]
issue_comment:
types: [created, edited]
jobs:
ai-review:
if: |
(github.event_name == 'pull_request' && github.event.label.name == 'ai-review') ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.body == 'ai-review')
uses: decentraland/actions/.github/workflows/ai-pr-review.yml@main
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- Add the workflow to your repository using one of the options above
- Add
ANTHROPIC_API_KEYas a repository or organization secret - Done! The script downloads automatically from the main branch
For detailed testing instructions, see scripts/ai_pr_reviewer/test/README.md