mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:10:12 +01:00
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/#:~:text=The%20main%20differences%20between%20the,but%20not%20from%20external%20forks. I'm hoping I actually have the cause of my issues right this time.
29 lines
915 B
YAML
29 lines
915 B
YAML
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
# Applies the "proposal rfc" label when a proposal is marked ready for review.
|
|
|
|
name: Proposal ready for review
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- ready_for_review
|
|
|
|
jobs:
|
|
proposal_ready:
|
|
if: contains(github.event.pull_request.labels.*.name, 'proposal')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: rfc
|
|
run: |
|
|
gh pr edit "${PR}" \
|
|
--remove-label "proposal draft" \
|
|
--remove-label "proposal accepted" \
|
|
--remove-label "proposal declined" \
|
|
--remove-label "proposal deferred" \
|
|
--add-label "proposal rfc"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PR: ${{ github.event.pull_request.html_url }}
|