CLDSRV-926: skip async/await diff check when PR has skip-async-migration label#6189
Open
DarkIsDude wants to merge 2 commits into
Open
CLDSRV-926: skip async/await diff check when PR has skip-async-migration label#6189DarkIsDude wants to merge 2 commits into
DarkIsDude wants to merge 2 commits into
Conversation
❌ 4 Tests Failed:
View the top 2 failed test(s) by shortest run time
View the full list of 2 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
This comment was marked as resolved.
This comment was marked as resolved.
|
LGTM |
Comment on lines
+111
to
+113
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| BRANCH_NAME: ${{ github.ref_name }} |
Contributor
There was a problem hiding this comment.
do we need to list PRs from bash script?
can't we use an if condition, something like:
Suggested change
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH_NAME: ${{ github.ref_name }} | |
| `if: ${{ contains(github.event.pull_request.labels.*.name, 'skip-async-migration' }}` |
Contributor
There was a problem hiding this comment.
esp. check would fail if PR is not opened...
Contributor
There was a problem hiding this comment.
thinking on it: maybe both these refactoring checks should ONLY be performed on PR event (not on push), so they check only the code we modify and don't force people to add reformatting/... in waterflow branches?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pull-requests: readpermission to thetests.yamlworkflowskip-async-migrationlabel before runningcheck-diff-asyncBehaviour
skip-async-migrationlabelcheck-diff-asyncruns normallyworkflow_dispatch)check-diff-asyncruns normallyPre-requisite
The
skip-async-migrationlabel must be created in the repository settings before use.Closes CLDSRV-926