Skip to content

Action status check in pr is not updated #23674

@Yiklek

Description

@Yiklek

Description

Action status check is not updated on the pull_request synchronize event.

# .gitea/workflows/build.yaml
name: Gitea Actions Demo
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
on:
  pull_request: yes
  push:
    branches:
      - main
jobs:
  Explore-Gitea-Actions:
    runs-on: ubuntu-20.04
    steps:
      - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
      - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
      - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
      - name: Check out repository code
        uses: actions/checkout@v3
      - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
      - run: echo "🖥️ The workflow is now ready to test your code on the runner."
      - name: List files in the repository
        run: |
          ls ${{ github.workspace }}
      - run: echo "🍏 This job's status is ${{ job.status }}."

I create a PR #3 from dev to main, and the status check is enabled. When I push a commit 1703af8060 to dev, action is triggered. But the status check on the PR page is not updated.

commit page
image

action page
image

Gitea Version

df41181

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build Gitea myself
run from command-line

Database

SQLite

Activity

wolfogre

wolfogre commented on Mar 24, 2023

@wolfogre
Member

Should be fixed by #23613, so I believe we will have it on v1.19.1

linked a pull request that will close this issueImprove workflow event triggers #23613on Mar 24, 2023
Yiklek

Yiklek commented on Mar 24, 2023

@Yiklek
Author

@wolfogre My build is newer than #23613
Snipaste_2023-03-24_10-05-40

wolfogre

wolfogre commented on Mar 24, 2023

@wolfogre
Member

@Zettat123 Could you please take a look at it?

self-assigned this
on Mar 24, 2023
Zettat123

Zettat123 commented on Mar 24, 2023

@Zettat123
Contributor

@Yiklek Could you please change

on:
  pull_request: yes
  push:
    branches:
      - main

to

on: pull_request

and test again?

Yiklek

Yiklek commented on Mar 24, 2023

@Yiklek
Author

@Yiklek Could you please change

on:
  pull_request: yes
  push:
    branches:
      - main

to

on: pull_request

and test again?

@Zettat123 It doesn't work on the pull_request synchronize event yet. The status check is only updated on PR opened.

image

yp05327

yp05327 commented on Mar 24, 2023

@yp05327
Contributor

Maybe the reason is that PR's branch is from the same repo.

Zettat123

Zettat123 commented on Mar 24, 2023

@Zettat123
Contributor

Maybe the reason is that PR's branch is from the same repo.

I think not. In my test, pull_request_sync event can be triggerd by a PR from the same repo.

Maybe my test is incorrect. I'll test again later.

yp05327

yp05327 commented on Mar 24, 2023

@yp05327
Contributor

Maybe the reason is that PR's branch is from the same repo.

I can reproduce this in gitea.com and PR's repo is not related

https://gitea.com/yp05327/testrepo/pulls/1
https://gitea.com/yp05327/testrepo/pulls/2

7 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @wolfogre@Zettat123@yp05327@Yiklek@sillyguodong

    Issue actions

      Action status check in pr is not updated · Issue #23674 · go-gitea/gitea