Add back missing fields in server logs and remove double log #1212
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Test Label Manager | |
on: | |
pull_request_target: | |
branches: [ main ] | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
pr_test_label_manager: | |
name: PR Test Label Manager | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'pull_request_target' && | |
contains(fromJson('["opened", "synchronize", "reopened"]'), github.event.action) | |
steps: | |
- name: Check if organization member | |
id: is_organization_member | |
uses: jamessingleton/is-organization-member@1.0.1 | |
with: | |
organization: viamrobotics | |
username: ${{ github.event.sender.login }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Always remove label | |
uses: andymckay/labeler@1.0.4 | |
with: | |
repo-token: ${{ secrets.PR_TOKEN }} | |
remove-labels: "safe to test" | |
- name: Auto label org members | |
if: | | |
steps.is_organization_member.outputs.result == 'true' | |
uses: andymckay/labeler@1.0.4 | |
with: | |
repo-token: ${{ secrets.PR_TOKEN }} | |
add-labels: 'safe to test' | |
- name: Add Unsafe PR Comment | |
if: | | |
steps.is_organization_member.outputs.result == 'false' | |
uses: marocchino/sticky-pull-request-comment@v2.2.0 | |
with: | |
recreate: true | |
message: For security reasons, this PR must be labeled with `safe to test` in order for tests to run. |