DEVOPS-1061: in github, auto-merge automatic PR Bumping CI-tools where all checks are passing - #215
Open
RomFloreani wants to merge 8 commits into
Open
DEVOPS-1061: in github, auto-merge automatic PR Bumping CI-tools where all checks are passing#215RomFloreani wants to merge 8 commits into
RomFloreani wants to merge 8 commits into
Conversation
Dependabot PR titles get edited (e.g. to add a Jira key manually), which broke the startsWith(title, 'Bump ') exemption check and forced those PRs through the human Jira sprint/status validation. Key the exemption off pull_request.user.login instead, which stays stable regardless of later title edits.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds GitHub Actions automation to better handle bot-driven dependency update PRs (Dependabot / pre-commit-ci) and to prevent “WIP” PRs from proceeding through JIRA-related checks/updates.
Changes:
- Introduces a
check_wip_titlejob to fail PR workflows when the title indicates work-in-progress. - Adds bot PR exemption output/logic to skip Jira-key enforcement and Jira status checks for specific bot PRs.
- Adds a Dependabot auto-merge workflow (caller + reusable) that approves and enables auto-merge for trusted grouped Dependabot updates.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/reusable-jira-pr_actions.yml |
Adds WIP title check and bot-exemption output, and updates Jira enforcement/validation conditions accordingly. |
.github/workflows/reusable-dependabot-auto-merge.yml |
New reusable workflow to approve and enable auto-merge for eligible Dependabot PRs. |
.github/workflows/dependabot-auto-merge.yml |
New workflow that triggers on pull_request_target and calls the reusable Dependabot auto-merge workflow. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
50
to
+54
| outputs: | ||
| issue_key_from_branch: ${{ steps.issue_key_from_branch.outputs.issue_key }} | ||
| issue_key_from_title: ${{ steps.issue_key_from_title.outputs.issue_key }} | ||
| issue_key: ${{ steps.issue_key.outputs.issue_key }} | ||
| is_exempt_bot_pr: ${{ steps.bot_exemption.outputs.is_exempt }} |
| id: bot_exemption | ||
| run: > | ||
| echo "is_exempt=${{ | ||
| (github.event.pull_request.user.login == 'dependabot[bot]' && startsWith(github.head_ref, 'dependabot/github_actions/') && contains(github.head_ref, '/mirageo-ci-tools')) || |
| auto-merge: | ||
| if: > | ||
| github.event.pull_request.user.login == 'dependabot[bot]' && | ||
| startsWith(github.event.pull_request.head.ref, 'dependabot/github_actions/') && |
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.
DEVOPS-1061 - in github, auto-merge automatic PR Bumping CI-tools where all checks are passing