mirror of
https://github.com/bevyengine/bevy
synced 2024-12-25 04:23:08 +00:00
ad9f197150
# Objective This label was out-of-date, causing our nag-bot to fail to run. ## Solution Update the workflow with the newly renamed label. Companion to https://github.com/bevyengine/bevy-website/pull/1646.
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
name: Action on PR labeled
|
|
|
|
# This workflow has write permissions on the repo
|
|
# It must not checkout a PR and run untrusted code
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- labeled
|
|
|
|
permissions:
|
|
pull-requests: 'write'
|
|
|
|
jobs:
|
|
comment-on-breaking-change-label:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.label.name == 'M-Needs-Migration-Guide' && !contains(github.event.pull_request.body, '## Migration Guide')
|
|
steps:
|
|
- uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
await github.rest.issues.createComment({
|
|
issue_number: context.issue.number,
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
body: `It looks like your PR is a breaking change, but you didn't provide a migration guide.
|
|
|
|
Could you add some context on what users should update when this change get released in a new version of Bevy?
|
|
It will be used to help writing the migration guide for the version. Putting it after a \`## Migration Guide\` will help it get automatically picked up by our tooling.`
|
|
})
|