slack icon indicating copy to clipboard operation
slack copied to clipboard

Pull Request messages don't handle skipped actions jobs

Open ColdenCullen opened this issue 2 years ago • 6 comments

If a pull request Actions workflow is marked to not run (with if: false or similar), the message in slack doesn't update to show the action as being unnecessary.

For example, we have an action that runs only on dependabot PRs, so in most PRs it's skipped. In the PR page, all actions are shown to have passed, but in slack it never updates the status, and leaves it gray.

In the Actions UI: image In Slack: image (screenshots are cropped to not share confidential information)

It seems like the message should remove the "GitHub Actions: dependabot" element, and update the checks element to say "2/2 checks passed".

ColdenCullen avatar May 02 '22 21:05 ColdenCullen

@ashokirla can please have a look at this and suggest the next actions

aasiddiq avatar May 05 '22 11:05 aasiddiq

I have a similar setup where job 1 determines whether to run job 2 OR job 3, never both. This shows the same 2/3 successful checks that @ColdenCullen shows in the above screenshot.

gileswells avatar Aug 18 '22 17:08 gileswells

Hello @aasiddiq would it be possible to have an update on this? It's been several months and those updates in Slack with the yellow badge are not great.

rnsc avatar Feb 02 '23 13:02 rnsc

We also have this issue and are interested in a solution

jbnjohnathan avatar Mar 19 '23 08:03 jbnjohnathan

We are encountering a similar issue where:

We create a draft PR which has a 12 checks skipped. At this stage the slack PR integration shows 0/12 checks passed We change the PR to Ready for Review and the 12 checks run. At this stage the slack PR integration shows 12/24 checks passed.

jamesclancy avatar May 08 '23 16:05 jamesclancy