From 1684b9c647493a99c02e52e59ebe0600599cddf6 Mon Sep 17 00:00:00 2001 From: adbridge Date: Fri, 21 May 2021 15:48:25 +0100 Subject: [PATCH] Add GitHub action for issue triaging script Improve comments --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..66c33452a1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +on: + issues: + types: [ opened, reopened ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Install Python environment + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Checkout mbed-os-scripts repo (This repo is currently private) + uses: actions/checkout@v2 + with: + repository: ARMmbed/mbed-os-ci-scripts + token: ${{ secrets.ISSUE_TRIAGING_PERMS }} + path: scripts + ref: triage_test + + - name: Run the script + run: | + python -m pip install pygithub + python ./scripts/issue_triaging/__init__.py -i ${{github.event.issue.number}} -r ${{ github.event.repository.name }} -t ${{ secrets.ISSUE_TRIAGING_PERMS }}