https://github.com/urcomputeringpal/actions-bug-repros
https://github.com/urcomputeringpal/actions-bug-repros
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/urcomputeringpal/actions-bug-repros
- Owner: urcomputeringpal
- Created: 2023-06-06T13:09:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-03T13:40:13.000Z (over 2 years ago)
- Last Synced: 2024-12-29T08:20:23.491Z (10 months ago)
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# actions-bug-repros
### `pull_request.labeled` events sometimes missing from PR check summary view
I'm attempting to create a workflow that runs once in each of these cases:
- opening a PR containing a label
- adding a label to an existing PR
- pushing to a PR that contains a label
In many cases, when _opening a PR containing the label in question_, the action created from the `pull_request.labeled` event in the workflow runs _but does not show its status in the mergeability details view that lists all checks_.
Here are a few examples:
#### With concurrency
Workflow: https://github.com/urcomputeringpal/actions-bug-repros/blob/main/.github/workflows/pr-labels.yml
To accomplish the required concurrency limiting and not run the action _twice_ when opening a PR that contains the appropriate label at creation time, I'm using the following workflow concurrency settings:
```yaml
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
```
Affected PR: https://github.com/urcomputeringpal/actions-bug-repros/pull/2
In the above PR, you can see that a comment was made but no Action status is present in the mergeability detail view. **Please note that this PR was run before the README.md conflicts existed.**
#### Without concurrency
To rule out any impact of the `concurrency` key on this behavior, I duplicated the workflow without the concurrency limiting settings:
Workflow: https://github.com/urcomputeringpal/actions-bug-repros/blob/main/.github/workflows/pr-labels-no-concurrency.yml
Affected PR: https://github.com/urcomputeringpal/actions-bug-repros/pull/2
In the above PR, you can see that two comments were made but only one Actions status is present in the mergeability detail view below. Why are the checks created by the `pull_request.labeled` events not being associated with the PR? **Please note that this PR was run before the README.md conflicts existed.**
#### Labels added after initial PR open
The following PR demonstrates that I can't reproduce this behavior at any time other than when adding the `label` before creation of the PR:
https://github.com/urcomputeringpal/actions-bug-repros/pull/5