From 6fb1647c9e463fba5d901ad96e6a5f781d1a6f9c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:34:34 +0000 Subject: [PATCH 1/2] Initial plan From 73767104d71207eec09ebafafbdb0dfe5746edd0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:37:46 +0000 Subject: [PATCH 2/2] Add PR migration notice workflow for alphaonelabs/learn repo move Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com> Agent-Logs-Url: https://github.com/alphaonelabs/website/sessions/118bf18a-25cf-4ff8-b154-c6fbfbd61137 --- .github/workflows/pr-migration-notice.yml | 51 +++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/pr-migration-notice.yml diff --git a/.github/workflows/pr-migration-notice.yml b/.github/workflows/pr-migration-notice.yml new file mode 100644 index 000000000..d8a8b3101 --- /dev/null +++ b/.github/workflows/pr-migration-notice.yml @@ -0,0 +1,51 @@ +name: PR Migration Notice + +on: + pull_request_target: + types: [opened] + +permissions: + pull-requests: write + +jobs: + notify-and-close: + runs-on: ubuntu-latest + steps: + - name: Post migration notice and close PR + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const pr = context.payload.pull_request; + const prNumber = pr.number; + const prAuthor = pr.user.login; + const repo = context.repo; + + const message = + `## 🚚 This Repository Is Moving\n\n` + + `Hi @${prAuthor}, thank you for your contribution!\n\n` + + `We are in the process of **migrating most of the logic from this repository** to our new repository: ` + + `[alphaonelabs/learn](https://github.com/alphaonelabs/learn).\n\n` + + `### What this means for your PR\n\n` + + `Please **do not merge or continue work here**. Instead:\n\n` + + `1. Review the [alphaonelabs/learn](https://github.com/alphaonelabs/learn) repository and familiarize yourself with its tech stack.\n` + + `2. Adapt your changes to work with that codebase.\n` + + `3. Open a new Pull Request in [alphaonelabs/learn](https://github.com/alphaonelabs/learn).\n\n` + + `This PR has been automatically closed. Once you have opened your PR in the new repository, feel free to reference it here.\n\n` + + `Thank you for your understanding and continued support! 🙏`; + + await github.rest.issues.createComment({ + owner: repo.owner, + repo: repo.repo, + issue_number: prNumber, + body: message, + }); + + await github.rest.pulls.update({ + owner: repo.owner, + repo: repo.repo, + pull_number: prNumber, + state: 'closed', + }); + + console.log(`Posted migration notice and closed PR #${prNumber} by ${prAuthor}.`);