Remove unnecessary use of pull_request_target trigger (#45464)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
This commit is contained in:
@@ -7,7 +7,7 @@ name: Auto Close Open Source Dependency Updates
|
||||
# **Who does it impact**: It helps docs engineering focus on higher value work.
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'package*.json'
|
||||
- 'Gemfile*'
|
||||
|
||||
@@ -5,6 +5,7 @@ name: Azure - Destroy Preview Env
|
||||
# **Who does it impact**: All contributors.
|
||||
|
||||
on:
|
||||
# Required in lieu of `pull_request` so that PRs created from forks can destroy the preview environment.
|
||||
pull_request_target:
|
||||
types:
|
||||
- closed
|
||||
|
||||
@@ -8,6 +8,7 @@ name: Close bad repo-sync PRs
|
||||
# **Who does it impact**: Open-source.
|
||||
|
||||
on:
|
||||
# Necessary in lieu of `pull_request` so that PRs opened from forks can be closed if they try to push to a repo sync branch.
|
||||
pull_request_target:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -7,6 +7,8 @@ name: Close issue/PR on adding invalid label
|
||||
on:
|
||||
issues:
|
||||
types: [labeled]
|
||||
# Needed in lieu of `pull_request` so that PRs from a fork can be
|
||||
# closed when marked as invalid.
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ on:
|
||||
types:
|
||||
- opened
|
||||
- transferred
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
|
||||
@@ -81,10 +81,10 @@ jobs:
|
||||
text: <@${{github.actor}}> opened https://github.com/github/docs/issues/${{ github.event.number || github.event.issue.number }} publicly on the github/docs repo instead of a private repo. They have been notified via a new issue in the private repo to confirm this was intentional.
|
||||
|
||||
- name: Check out repo
|
||||
if: ${{ failure() && github.event_name != 'pull_request_target' }}
|
||||
if: ${{ failure() && github.event_name != 'pull_request' }}
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
|
||||
- uses: ./.github/actions/slack-alert
|
||||
if: ${{ failure() && github.event_name != 'pull_request_target' }}
|
||||
if: ${{ failure() && github.event_name != 'pull_request' }}
|
||||
with:
|
||||
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
|
||||
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
|
||||
|
||||
@@ -6,6 +6,7 @@ name: Content Changes Table Comment
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# Required in lieu of `pull_request` so that the content changes tables can be posts to PRs opened from a fork.
|
||||
pull_request_target:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -5,7 +5,7 @@ name: Hubber contribution help
|
||||
# **Who does it impact**: docs-internal contributors
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
paths:
|
||||
|
||||
1
.github/workflows/merged-notification.yml
vendored
1
.github/workflows/merged-notification.yml
vendored
@@ -5,6 +5,7 @@ name: Merged notification
|
||||
# **Who does it impact**: Open-source contributors.
|
||||
|
||||
on:
|
||||
# Needed in lieu of `pull_request` so that the notification comment is posted to a PR from a fork.
|
||||
pull_request_target:
|
||||
types:
|
||||
- 'closed'
|
||||
|
||||
@@ -5,6 +5,7 @@ name: Move and unlabel ready to merge PRs
|
||||
# **Who does it impact**: Open source contributors, open-source maintainers.
|
||||
|
||||
on:
|
||||
# Needed in lieu of `pull_request` so that the a PR from a fork can trigger the project board and label automation.
|
||||
pull_request_target:
|
||||
types:
|
||||
- labeled
|
||||
|
||||
1
.github/workflows/needs-sme-workflow.yml
vendored
1
.github/workflows/needs-sme-workflow.yml
vendored
@@ -7,6 +7,7 @@ name: Comment on adding "needs SME" label
|
||||
on:
|
||||
issues:
|
||||
types: [labeled]
|
||||
# Needed in lieu of `pull_request` so that PRs from a fork can be labeled.
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ name: Notify When Maintainers Cannot Edit
|
||||
# **Who does it impact**: Open-source.
|
||||
|
||||
on:
|
||||
# Needed in lieu of `pull_request` so that PRs from a fork can be notified.
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
|
||||
1
.github/workflows/os-ready-for-review.yml
vendored
1
.github/workflows/os-ready-for-review.yml
vendored
@@ -4,6 +4,7 @@ name: OS Ready for review
|
||||
# **Why we have it**: So that contributors in the OS repo can easily get reviews from the docs-content team, and so that writers can see when a PR is ready for review
|
||||
# **Who does it impact**: Writers working in the docs repository
|
||||
on:
|
||||
# Needed in lieu of `pull_request` so that PRs from a fork can be triaged to the proper project board.
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
issues:
|
||||
|
||||
2
.github/workflows/ready-for-doc-review.yml
vendored
2
.github/workflows/ready-for-doc-review.yml
vendored
@@ -5,7 +5,7 @@ name: Ready for docs-content review
|
||||
# **Who does it impact**: Writers working in the docs-internal repository
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
types: [labeled, review_requested]
|
||||
workflow_call:
|
||||
|
||||
|
||||
1
.github/workflows/repo-freeze-check.yml
vendored
1
.github/workflows/repo-freeze-check.yml
vendored
@@ -7,6 +7,7 @@ name: Repo Freeze Check
|
||||
on:
|
||||
workflow_dispatch:
|
||||
merge_group:
|
||||
# Needed in lieu of `pull_request` so that PRs from a fork can stopped from merging when there's a freeze.
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
|
||||
1
.github/workflows/triage-pull-requests.yml
vendored
1
.github/workflows/triage-pull-requests.yml
vendored
@@ -5,6 +5,7 @@ name: Triage new pull requests
|
||||
# **Who does it impact**: Docs open source.
|
||||
|
||||
on:
|
||||
# Needed in lieu of `pull_request` so that PRs from a fork can be triaged.
|
||||
pull_request_target:
|
||||
types:
|
||||
- reopened
|
||||
|
||||
@@ -5,6 +5,7 @@ name: Check unallowed file changes
|
||||
# **Who does it impact**: Open source contributors.
|
||||
|
||||
on:
|
||||
# Needed in lieu of `pull_request` so that PRs from a fork can be notified of unallowed changes.
|
||||
pull_request_target:
|
||||
paths:
|
||||
- '.devcontainer/**'
|
||||
|
||||
Reference in New Issue
Block a user