Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TCE-978] Pull request branch getting "Commit not found" status #85

Open
arahlf opened this issue May 21, 2024 · 1 comment
Open

[TCE-978] Pull request branch getting "Commit not found" status #85

arahlf opened this issue May 21, 2024 · 1 comment
Labels
jira-issue Issue tracked on JIRA

Comments

@arahlf
Copy link

arahlf commented May 21, 2024

I'm trying to use this GH action within a pull request workflow. The coverage upload action succeeds, but within the Codacy dashboard under the code coverage settings I see failures about "Commit not found" under that "Test your integration" section. I think this is because the commit sha being sent up by the GH action is of the pull request merge commit rather than the head commit sha of the branch. Here's an abbreviated version of my workflow:

name: Code PR Gate

on:
  pull_request:
    branches:
      - main
      - develop

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
      - uses: actions/setup-java@v2
        timeout-minutes: 10
        with:
          java-version: 11
          distribution: 'temurin'
      - uses: gradle/gradle-build-action@v2
        id: gradle
        with:
          arguments: build
      - name: Run codacy-coverage-reporter
        uses: codacy/codacy-coverage-reporter-action@v1.3
        with:
          project-token: ${{ secrets.CODACY_TOKEN }}
          coverage-reports: build/reports/jacoco/test/jacocoTestReport.xml

It seems like I might be running into the same issue that should have been resolved here but I'm not certain: #67

Am I doing something wrong or overlooking something?

Copy link

Internal ticket created : TCE-978

@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label May 21, 2024
@github-actions github-actions bot changed the title Pull request branch getting "Commit not found" status [TCE-978] Pull request branch getting "Commit not found" status May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

1 participant