From 8824ae3a65997500456967725fe0b22352a5b502 Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:20:23 +0100 Subject: [PATCH 1/2] Add auto-release PR workflow (#118) --- .github/workflows/auto-release-pr.yaml | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/auto-release-pr.yaml diff --git a/.github/workflows/auto-release-pr.yaml b/.github/workflows/auto-release-pr.yaml new file mode 100644 index 000000000..cbb705b6d --- /dev/null +++ b/.github/workflows/auto-release-pr.yaml @@ -0,0 +1,70 @@ +name: Auto Release PR + +on: + push: + branches: [develop] + workflow_dispatch: + +permissions: + contents: read + pull-requests: write + +concurrency: + group: auto-release-pr + cancel-in-progress: false + +jobs: + create-release-pr: + name: Create Release PR + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Fetch main branch + run: git fetch origin main + + - name: Check for existing PR + id: check-pr + run: | + PR_COUNT=$(gh pr list --base main --head develop --state open --json number --jq 'length') + echo "pr_exists=$([[ $PR_COUNT -gt 0 ]] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT + echo "::notice::Open PRs from develop to main: $PR_COUNT" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check for differences + id: check-diff + if: steps.check-pr.outputs.pr_exists == 'false' + run: | + DIFF_COUNT=$(git rev-list --count origin/main..origin/develop) + echo "has_changes=$([[ $DIFF_COUNT -gt 0 ]] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT + echo "commit_count=$DIFF_COUNT" >> $GITHUB_OUTPUT + echo "::notice::Commits ahead of main: $DIFF_COUNT" + + - name: Create Release PR + if: steps.check-pr.outputs.pr_exists == 'false' && steps.check-diff.outputs.has_changes == 'true' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMMIT_COUNT: ${{ steps.check-diff.outputs.commit_count }} + run: | + printf '%s\n' \ + "## Automatic Release PR" \ + "" \ + "This PR was automatically created after changes were pushed to develop." \ + "" \ + "**Commits:** ${COMMIT_COUNT} new commit(s)" \ + "" \ + "### Checklist" \ + "- [ ] Review all changes" \ + "- [ ] Verify CI passes" \ + "- [ ] Approve and merge when ready for production" \ + > /tmp/pr-body.md + + gh pr create \ + --base main \ + --head develop \ + --title "Release: develop -> main" \ + --body-file /tmp/pr-body.md From 4b55261a840f2657774fad94f9a35a0dd8a3350a Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Sun, 1 Feb 2026 18:09:12 +0100 Subject: [PATCH 2/2] Add DEBUG role migration for wallet 0x443BD9 (#120) --- migration/1769965549000-addDebugWallet0x443BD9.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 migration/1769965549000-addDebugWallet0x443BD9.js diff --git a/migration/1769965549000-addDebugWallet0x443BD9.js b/migration/1769965549000-addDebugWallet0x443BD9.js new file mode 100644 index 000000000..f19bc33dd --- /dev/null +++ b/migration/1769965549000-addDebugWallet0x443BD9.js @@ -0,0 +1,13 @@ +const { MigrationInterface, QueryRunner } = require("typeorm"); + +module.exports = class addDebugWallet0x443BD91769965549000 { + name = 'addDebugWallet0x443BD91769965549000' + + async up(queryRunner) { + await queryRunner.query(`UPDATE wallet SET role = 'Debug', updated = GETDATE() WHERE address = '0x443BD9ebf4B03Ea9B7E1eaC56eAea73B408d14af'`); + } + + async down(queryRunner) { + await queryRunner.query(`UPDATE wallet SET role = 'User', updated = GETDATE() WHERE address = '0x443BD9ebf4B03Ea9B7E1eaC56eAea73B408d14af'`); + } +}