ci: disable the Label Community PRs job on this fork

This commit is contained in:
2026-08-04 08:07:51 +02:00
parent 9475ec3a48
commit 0799ad5b73
+32 -27
View File
@@ -23,33 +23,38 @@ jobs:
script: | script: |
core.setFailed("PR has been labeled with X-Blocked; it cannot be merged."); core.setFailed("PR has been labeled with X-Blocked; it cannot be merged.");
community-prs: # Disabled on the HealthChat fork. This job asks whether the PR author belongs to the
name: Label Community PRs # element-hq "Vector Core" team, using secrets.ELEMENT_BOT_TOKEN_READ_ORG — a secret
runs-on: ubuntu-latest # that only exists upstream. Here it fails on every PR that is opened, and there is no
if: github.event.action == 'opened' # community to label anyway. Kept commented rather than deleted so upstream changes to
permissions: # it still conflict visibly on merge.
pull-requests: write # community-prs:
steps: # name: Label Community PRs
- name: Check membership # runs-on: ubuntu-latest
if: github.event.pull_request.user.login != 'renovate[bot]' # if: github.event.action == 'opened'
uses: tspascoal/get-user-teams-membership@b2546c5affc730fd8e3d8483ae9ad3621938c2f9 # v4.0.2 # permissions:
id: teams # pull-requests: write
with: # steps:
username: ${{ github.event.pull_request.user.login }} # - name: Check membership
organization: element-hq # if: github.event.pull_request.user.login != 'renovate[bot]'
team: Vector Core # uses: tspascoal/get-user-teams-membership@b2546c5affc730fd8e3d8483ae9ad3621938c2f9 # v4.0.2
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN_READ_ORG }} # id: teams
- name: Add label # with:
if: steps.teams.outputs.isTeamMember == 'false' # username: ${{ github.event.pull_request.user.login }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 # organization: element-hq
with: # team: Vector Core
script: | # GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN_READ_ORG }}
github.rest.issues.addLabels({ # - name: Add label
issue_number: context.issue.number, # if: steps.teams.outputs.isTeamMember == 'false'
owner: context.repo.owner, # uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
repo: context.repo.repo, # with:
labels: ['Z-Community-PR'] # script: |
}); # github.rest.issues.addLabels({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# labels: ['Z-Community-PR']
# });
close-if-fork-develop: close-if-fork-develop:
name: Forbid develop branch fork contributions name: Forbid develop branch fork contributions