proposal_ready.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. permissions:
  11. pull-requests: write # For gh to edit labels.
  12. jobs:
  13. proposal_ready:
  14. if: contains(github.event.pull_request.labels.*.name, 'proposal')
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Harden Runner
  18. uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
  19. with:
  20. egress-policy: audit
  21. - name: rfc
  22. run: |
  23. gh pr edit "${PR}" \
  24. --remove-label "proposal draft" \
  25. --remove-label "proposal accepted" \
  26. --remove-label "proposal declined" \
  27. --remove-label "proposal deferred" \
  28. --add-label "proposal rfc"
  29. env:
  30. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  31. PR: ${{ github.event.pull_request.html_url }}