Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 4

Workflow on pull request doesn't show the last result

Solved! Go to Solution.

I have a workflow which linting pull request title, format, and it is triggered when:

 

[opened, synchronize, edited, reopened]

 

When a pull request is updated, the workflow is triggered correctly, but having the following problems:

 

1. In the pull request merge panel, it shows multiple workflow trigger history, instead of the last one.

2. In the pull request listing page, it always shows failed (red corss icon) even the pull request is passed afterward.

 

This behavior is not what I expect, may I know there is any way to adjust the result?

 

Thanks.

3 Replies
Pilot Lvl 2
Message 2 of 4

Re: Workflow on pull request doesn't show the last result


@kaojohnny28 wrote:

 

1. In the pull request merge panel, it shows multiple workflow trigger history, instead of the last one.

 

This would be the expected behaviour. Each trigger is logged and shown. It's not that one trigger overwrites the other. You never want to lose sight of the history that happened on your workflow, otherwise debugging/testing would become very difficult. Plus if it would just start "hiding" things from you by overwriting previous runs, it would also complicate transparency when it comes to billing (where applicable). You would never be able to see where your build minutes would come from.

 


@kaojohnny28 wrote:

 

2. In the pull request listing page, it always shows failed (red corss icon) even the pull request is passed afterward.

 

I don't quite understand what you mean here. This would generally mean that your workflow failed, but without seeing any of your workflow or the output it generates, it's hard to say. I've never seen this behaviour in any of my workflows before, so I don't think this is a common bug or something that would be unexpected unless something actually goes wrong.

Copilot Lvl 2
Message 3 of 4

Re: Workflow on pull request doesn't show the last result

Hi @oldskool thanks for your reply, for point 1, I can understand. For point 2, the pull request listing pages, I mean

 

Screenshot_2019_11_19__10_08_AM.png

The red corss icon means the workflow failed, but it doesn't change to a green check icon once the workflow runs successfully. It's my idea that here it should show the latest status rather than fail always. Do you think it is possible?

 

Thanks.

Solution
Pilot Lvl 2
Message 4 of 4

Re: Workflow on pull request doesn't show the last result


@kaojohnny28 wrote:

The red corss icon means the workflow failed, but it doesn't change to a green check icon once the workflow runs successfully.

 

That is what should happen and what does happen for me. I've never seen it "stick" to a status after it changed. Maybe it's a caching issue, but if you persistently see this and (hard) refreshing doesn't help I think you'd best contact GitHub support about this.