Skip to content

fix: dependabot PR settings — remove self-assignment, add auto squash-merge#10

Open
Copilot wants to merge 5 commits intodevfrom
copilot/fix-dependabot-pr-settings
Open

fix: dependabot PR settings — remove self-assignment, add auto squash-merge#10
Copilot wants to merge 5 commits intodevfrom
copilot/fix-dependabot-pr-settings

Conversation

Copy link

Copilot AI commented Feb 26, 2026

What does this PR do?

Fixes Dependabot PRs incorrectly assigning rania-run as assignee and adds automatic squash-and-merge on approval.

Related issue

Addresses issue requirements for proper Dependabot PR automation.

Changes

.github/dependabot.yml

  • assigneesreviewers for both pub and github-actions ecosystems
  • Ensures rania-run is requested as reviewer, not assigned

.github/workflows/auto-assign.yml

  • Added github.event.pull_request.user.login != 'dependabot[bot]' condition
  • Prevents auto-assignment workflow from processing Dependabot PRs

.github/workflows/dependabot-automerge.yml (new)

  • Enables GitHub auto-merge API with squash method on Dependabot PRs
  • Triggers: PR events, reviews, check suite completions
  • Merges automatically once approvals + checks pass

How to test

Wait for next Dependabot PR or manually trigger:

  1. Verify assignee = dependabot[bot] only
  2. Verify rania-run listed as reviewer
  3. Approve PR → observe auto-merge engage after checks pass

Checklist

  • dart analyze --fatal-infos passes
  • dart format --set-exit-if-changed . passes
  • Tests added / updated for every new behaviour
  • No debug code or commented-out blocks left in
Original prompt

This section details on the original issue you should resolve

<issue_title>chore: fix dependabot PR settings — remove self-assignment, add auto squash-and-merge</issue_title>
<issue_description>## Problem

Dependabot PRs are currently assigning rania-run as an assignee alongside dependabot. This is noisy and incorrect — rania-run should only appear as a reviewer, not an assignee.

Additionally, once a dependabot PR is approved, it should automatically squash-and-merge without manual intervention.

Tasks

  • Update .github/dependabot.yml to remove rania-run from assignees
  • Add rania-run as a reviewer in the dependabot config instead
  • Configure auto squash-and-merge for dependabot PRs — via one of:
    • GitHub repo settings: enable Auto-merge + add a branch ruleset/protection requiring approval
    • A .github/workflows/dependabot-automerge.yml workflow that calls gh pr merge --squash --auto once the PR is approved and checks pass

Expected Result

  • Dependabot PRs: assignee = dependabot[bot] only
  • Dependabot PRs: reviewer = rania-run
  • Dependabot PRs: auto squash-and-merge after approval + passing checks</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

@github-actions github-actions bot added this to the v0.1.0 milestone Feb 26, 2026
@rania-run rania-run removed their assignment Feb 26, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…quash-merge

Co-authored-by: rania-run <113173699+rania-run@users.noreply.github.com>
@rania-run rania-run marked this pull request as ready for review February 26, 2026 18:17
Copilot AI review requested due to automatic review settings February 26, 2026 18:17
@rania-run rania-run changed the title [WIP] Fix dependabot PR settings to remove self-assignment feat: Fix dependabot PR settings to remove self-assignment Feb 26, 2026
Copilot AI changed the title feat: Fix dependabot PR settings to remove self-assignment fix: dependabot PR settings — remove self-assignment, add auto squash-merge Feb 26, 2026
@rania-run rania-run added the enhancement New feature or request label Feb 26, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

rania-run and others added 3 commits February 27, 2026 10:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: fix dependabot PR settings — remove self-assignment, add auto squash-and-merge

3 participants