-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Syntax changes reminder | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- 'upstream/ocaml_flambda/base-rev.txt' | ||
|
||
jobs: | ||
remind: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Create PR Comment | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
REPO=${{ github.repository }} | ||
PR_NUMBER=${{ github.event.pull_request.number }} | ||
COMMENT="## Compiler Merge Checklist | ||
This PR seems to merge changes from Flambda. Please be sure to follow the below steps: | ||
- [ ] Update the magic numbers | ||
- [ ] Update list of compiler flags to ignore | ||
- [ ] Make Merlin know about new relevant compiler flags | ||
If this PR is not merging changes from Flambda, feel free to ignore this comment" | ||
# Check if comment already exists | ||
if ! gh pr view $PR_NUMBER --json comments -q '.comments[].body' --repo $REPO | grep -q "Compiler Merge Checklist"; then | ||
gh pr comment $PR_NUMBER --body "$COMMENT" --repo $REPO | ||
echo "Comment added successfully." | ||
else | ||
echo "Comment already exists. Skipping." | ||
fi |