proposal_ready.yaml 915 B

12345678910111213141516171819202122232425262728
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. # Applies the "proposal rfc" label when a proposal is marked ready for review.
  5. name: Proposal ready for review
  6. on:
  7. pull_request_target:
  8. types:
  9. - ready_for_review
  10. jobs:
  11. proposal_ready:
  12. if: contains(github.event.pull_request.labels.*.name, 'proposal')
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: rfc
  16. run: |
  17. gh pr edit "${PR}" \
  18. --remove-label "proposal draft" \
  19. --remove-label "proposal accepted" \
  20. --remove-label "proposal declined" \
  21. --remove-label "proposal deferred" \
  22. --add-label "proposal rfc"
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  25. PR: ${{ github.event.pull_request.html_url }}