Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
# Style/info-level shellcheck rules present across many long-standing
# workflow scripts. Not worth a repo-wide cleanup right now; actionlint's
# own checks (unpinned actions, unknown inputs, permissions, syntax) are
# unaffected and still enforced.
- 'shellcheck reported issue in this script: SC2086:'
- 'shellcheck reported issue in this script: SC2129:'
- 'shellcheck reported issue in this script: SC2002:'
- 'shellcheck reported issue in this script: SC2267:'
2 changes: 2 additions & 0 deletions .github/actions/merge-repos/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Merge ERCs
description: Checks out ethereum/ERCs alongside this repo and merges its EIPS/ERCS/assets into this checkout.

runs:
using: 'composite'
Expand All @@ -8,6 +9,7 @@ runs:
with:
repository: ethereum/ERCs
path: ERCs
persist-credentials: false
- name: Merge Repos
shell: bash
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10

- package-ecosystem: bundler
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10
48 changes: 41 additions & 7 deletions .github/workflows/auto-review-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,57 @@ name: Auto Review Bot
jobs:
auto-review-bot:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Run
permissions:
actions: read
contents: read
steps:
- name: Find PR Number artifact
id: find-pr-number
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RUN_ID: ${{ github.event.workflow_run.id }}
run: |
set -euo pipefail
artifact_id="$(gh api --paginate "repos/$GH_REPO/actions/runs/$RUN_ID/artifacts" \
--jq '.artifacts[] | select(.name == "pr-number") | .id')"
if [[ -z "$artifact_id" ]]; then
echo "::notice::No PR-number artifact was uploaded; skipping review."
fi
echo "artifact_id=$artifact_id" >> "$GITHUB_OUTPUT"

- name: Fetch PR Number
uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615
id: fetch-pr-number
if: steps.find-pr-number.outputs.artifact_id != ''
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
with:
name: pr-number
workflow: auto-review-trigger.yml
run_id: ${{ github.event.workflow_run.id }}
artifact-ids: ${{ steps.find-pr-number.outputs.artifact_id }}
github-token: ${{ github.token }}
repository: ${{ github.repository }}
run-id: ${{ github.event.workflow_run.id }}

- name: Check PR Number file
id: check-pr-number
if: steps.find-pr-number.outputs.artifact_id != ''
run: |
if [[ -f pr-number.txt ]]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "::error::PR-number artifact is missing pr-number.txt"
exit 1
fi

- name: Save PR Number
id: save-pr-number
run: echo "pr=$(cat pr-number.txt)" >> $GITHUB_OUTPUT
if: ${{ steps.check-pr-number.outputs.exists == 'true' }}
run: echo "pr=$(cat pr-number.txt)" >> "$GITHUB_OUTPUT"

- name: Auto Review Bot
id: auto-review-bot
uses: ethereum/eip-review-bot@dist
continue-on-error: true
uses: ethereum/eip-review-bot@5836f86feabefae5640ea1380d08eb2725d4d163 # dist
if: ${{ steps.check-pr-number.outputs.exists == 'true' }}
with:
token: ${{ secrets.TOKEN }}
config: config/eip-editors.yml
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/auto-review-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ concurrency:
cancel-in-progress: true

name: Auto Review Bot Trigger
permissions:
actions: write
contents: read
jobs:
trigger:
runs-on: ubuntu-latest
timeout-minutes: 10
name: Trigger
steps:
- name: Write PR Number - PR Target
Expand All @@ -39,6 +43,16 @@ jobs:
env:
PR_NUMBER: ${{ inputs.pr_number }}

- name: Validate workflow dispatch PR number
if: github.event_name == 'workflow_dispatch'
env:
PR_NUMBER: ${{ inputs.pr_number }}
run: |
if [[ ! "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
echo 'pr_number must contain digits only' >&2
exit 1
fi

- name: Write PR Number - Comment Retrigger
run: echo $PR_NUMBER > pr-number.txt
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@eth-bot rerun')
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/auto-stagnate-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
workflow_dispatch:

name: Auto Stagnant Bot
permissions:
contents: write
issues: write
pull-requests: write
jobs:
auto_merge_bot:
if: github.repository == 'ethereum/eips'
Expand All @@ -13,6 +17,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@47fbe2df0ad0e27efb67a70beac3555f192b062f
with:
persist-credentials: false
- name: Setup Node.js Environment
uses: actions/setup-node@d98fa1113850e562f83c7fc3a89c0ecd7a87fbed
with:
Expand Down
Loading