From b05859e9a023c743a173290f01579d980d763de7 Mon Sep 17 00:00:00 2001 From: Lesords <2385342343@qq.com> Date: Tue, 31 Dec 2024 03:31:30 +0000 Subject: [PATCH] ci: add an action to add PR to the project --- .github/workflows/sync_prs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync_prs.yml diff --git a/.github/workflows/sync_prs.yml b/.github/workflows/sync_prs.yml new file mode 100644 index 0000000..1b11948 --- /dev/null +++ b/.github/workflows/sync_prs.yml @@ -0,0 +1,26 @@ +name: Automate PR Management + +on: + pull_request: + types: [opened, reopened] + +jobs: + add_to_project: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Checkout script repository + uses: actions/checkout@v4 + with: + repository: Seeed-Studio/sync-github-all-issues + path: ci + + - name: Run script + run: ./ci/tools/addPr2Project.sh + env: + PROJECT_ID: "17" + URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.PR_ASSEMBLE }}