diff --git a/.changeset/metal-grapes-flow.md b/.changeset/metal-grapes-flow.md new file mode 100644 index 00000000..0d81269e --- /dev/null +++ b/.changeset/metal-grapes-flow.md @@ -0,0 +1,5 @@ +--- +"@mysten/suins": patch +--- + +@mysten/sui update diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 00000000..8e3be572 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,6 @@ +addReviewers: true +addAssignees: false +reviewers: + - leecchh + - manolisliolios +numberOfReviewers: 0 diff --git a/.github/workflows/dependabot_review.yaml b/.github/workflows/dependabot_review.yaml new file mode 100644 index 00000000..9835c231 --- /dev/null +++ b/.github/workflows/dependabot_review.yaml @@ -0,0 +1,57 @@ +name: Auto-Assign Reviewers and Run pnpm changeset for Dependabot PRs + +on: + pull_request_target: + types: [opened, synchronize] + +jobs: + run-changeset: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Create changeset file + run: | + echo "---" > .changeset/metal-grapes-flow.md + echo "\"@mysten/suins\": patch" >> .changeset/metal-grapes-flow.md + echo "---" >> .changeset/metal-grapes-flow.md + echo "" >> .changeset/metal-grapes-flow.md + echo "@mysten/sui update" >> .changeset/metal-grapes-flow.md + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Commit and push changes + env: + PR_HEAD_REF: ${{ github.event.pull_request.head.ref }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + run: | + git add . + git commit -m "changeset" + git push origin HEAD:$PR_HEAD_REF + + assign-reviewers: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - name: Assign Reviewers + uses: kentaro-m/auto-assign-action@v1.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}