Fix dependabot labeler and workflows #740
Merged
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.
Issue link
Jira: https://issues.redhat.com/browse/RHOAIENG-11457
What changes have been made
Further limited number of PRs generated.
Changes in this repo's settings:
We are dropping the merge queue feature as it seems it's not properly maintained with major issues found unresolved for over a year.
One benefit seen from merge queue is that it ensures PRs are tested against the target branch. Since we won't be using this feature, I've enabled "Require branches to be up to date before merging" GitHub feature in the
main
branch. By enabling this, all PRs will require to rebase before they can be merged tomain
and this way ensure code stability and integration.Due to said change, I removed the need to run tests (e2e, unit-tests) again when commits are merged to
main
as they would have been already tested in the PR with the changes from the target branch.Use newly created token to allow the
codeflare-machine-account
to add labels to specifically PRs created by Dependabot.Verification steps
Fixed the dependabot labeler: The "codeflare-machine-account" added the
lgtm
andapproved
labels to the following PR successfully by using the new GH CLI token with minimal permissions. In this PR, an adjustment is made so that the dependabot-labeler will only work for Dependabot PRs i.e., wheregithub.actor == 'dependabot[bot]'
Test PR using new GH CLI Token to allow the
codeflare-machine-account
to add labels to dependabot PRs: Test PR #739 (automatically merged after status checks passed).Checks