Skip to content

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
mainfrom
DEVOPS-1061
Open

DEVOPS-1061: in github, auto-merge automatic PR Bumping CI-tools where all checks are passing#215
RomFloreani wants to merge 8 commits into
mainfrom
DEVOPS-1061

Conversation

@RomFloreani

@RomFloreani RomFloreani commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

DEVOPS-1061 - in github, auto-merge automatic PR Bumping CI-tools where all checks are passing

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.
Copilot AI lite review requested due to automatic review settings August 11, 2026 12:46
@github-actions github-actions Bot changed the title Devops 1061 DEVOPS-1061: in github, auto-merge automatic PR Bumping CI-tools where all checks are passing Aug 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_title job 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/') &&
@RomFloreani
RomFloreani requested a review from sebhmg August 11, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants