diff --git a/.github/workflows/check_pr_changes.yaml b/.github/workflows/check_pr_changes.yaml index 024a314c3a..a0ad70ac3b 100644 --- a/.github/workflows/check_pr_changes.yaml +++ b/.github/workflows/check_pr_changes.yaml @@ -11,12 +11,14 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 2 - name: List changed files id: list_files run: | - git diff --name-only origin/master...HEAD > changed_files.txt + git diff --name-only HEAD^1 HEAD > changed_files.txt - name: Check for changes in autopts/wid directory id: check_changes @@ -33,10 +35,9 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const context = github.context; - const owner = context.payload.repository.owner.login; - const repo = context.payload.repository.name; - const prNumber = context.payload.pull_request.number; + const owner = github.context.payload.repository.owner.login; + const repo = github.context.payload.repository.name; + const prNumber = github.context.payload.pull_request.number; const commentBody = '#AutoPTS run zephyr MCP'; github.issues.createComment({ owner, diff --git a/autopts/wid/mcp.py b/autopts/wid/mcp.py index 776fb9e598..3e3e27ae9c 100644 --- a/autopts/wid/mcp.py +++ b/autopts/wid/mcp.py @@ -51,6 +51,8 @@ def hdl_wid_15(params: WIDParams): stack = get_stack() + # test + if stack.mcp.error_opcodes != [2, 3, 4]: return False