Skip to content

Comments

Add next-release milestone via GitHub Actions workflow to automated PRs#3337

Merged
mergify[bot] merged 6 commits intomainfrom
copilot/add-milestone-to-automated-prs
Feb 20, 2026
Merged

Add next-release milestone via GitHub Actions workflow to automated PRs#3337
mergify[bot] merged 6 commits intomainfrom
copilot/add-milestone-to-automated-prs

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

The milestone action used in mergify.yml does not exist in Mergify's current action schema, causing Mergify to report the config as invalid.

Changes proposed in this pull request

  • .github/mergify.yml: Remove the invalid milestone rule (no such Mergify action exists)
  • .github/workflows/milestone.yml: New pull_request_target workflow that assigns the next-release milestone to PRs from dependabot[bot], transifex-integration[bot], imgbot[bot], and Copilot (the correct GitHub login for the Copilot bot, which does not use the [bot] suffix) via actions/github-script; uses pull_request_target (no checkout) for elevated permissions, with minimal issues: write + pull-requests: write scopes; emits a warning rather than failing if the milestone doesn't exist yet

Related issue(s)

Copilot generated summary

Copilot summary

Removes a milestone action rule from .github/mergify.yml that referenced a non-existent Mergify action, restoring the config to a valid state. Replaces it with a dedicated GitHub Actions workflow (.github/workflows/milestone.yml) triggered on pull_request_target (opened/reopened) that locates the open next-release milestone by title and assigns it to any PR authored by the four automated bots: dependabot[bot], transifex-integration[bot], imgbot[bot], and Copilot. Note that the Copilot bot's GitHub login is Copilot (capital C, no [bot] suffix), unlike the other bots. The pull_request_target trigger is safe here because no code is checked out.

To-Do

Contributing

By submitting this pull request, I confirm the following:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automated milestone assignment for PRs Auto-assign next-release milestone to automated PRs (Dependabot, Transifex, ImgBot) Feb 19, 2026
Copilot AI requested a review from BornToBeRoot February 19, 2026 23:54
…h GitHub Actions workflow

Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Copilot AI changed the title Auto-assign next-release milestone to automated PRs (Dependabot, Transifex, ImgBot) Fix invalid Mergify config: replace non-existent milestone action with GitHub Actions workflow Feb 20, 2026
@BornToBeRoot
Copy link
Owner

@copilot Can you also add copilot to the list.

Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 20, 2026

@copilot Can you also add copilot to the list.

Done — copilot[bot] has been added to the bot list in commit 7a356df.

@BornToBeRoot
Copy link
Owner

@copilot analyze the last PRs and check if Copilot is a bot in this case.Verify that the name is correct.

Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 20, 2026

@copilot analyze the last PRs and check if Copilot is a bot in this case.Verify that the name is correct.

Checked the last several PRs — Copilot's actual GitHub login is Copilot (capital C, no [bot] suffix), unlike dependabot[bot], transifex-integration[bot], and imgbot[bot]. Fixed in commit c33b3e6.

@BornToBeRoot BornToBeRoot marked this pull request as ready for review February 20, 2026 17:30
@BornToBeRoot BornToBeRoot changed the title Fix invalid Mergify config: replace non-existent milestone action with GitHub Actions workflow Add next-release milestone via GitHub Actions workflow to automated PRs Feb 20, 2026
@mergify mergify bot merged commit 188b0bb into main Feb 20, 2026
4 checks passed
@mergify mergify bot deleted the copilot/add-milestone-to-automated-prs branch February 20, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants