GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(pr-gate): three-dot diff for owner-gate + hold-gate reruns on lab… · ucloud/ucloud-cli@4254e40

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • pr-gate.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/pr-gate.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/pr-gate.yml
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ name: PR Gate
2323

2424
on:
2525
pull_request:
26+
# labeled/unlabeled are REQUIRED so hold-gate re-runs when do-not-merge/hold
27+
# is added/removed after checks went green — otherwise branch protection keeps
28+
# seeing the stale green hold-gate and the /hold brake silently fails.
29+
types: [opened, synchronize, reopened, labeled, unlabeled]
2630
merge_group:
2731

2832
permissions:
@@ -69,7 +73,11 @@ jobs:
6973
GOPROXY: 'https://goproxy.cn,direct'
7074
run: |
7175
set -euo pipefail
72-
git diff --name-status "$OWNER_GATE_BASE_SHA" "$HEAD_SHA" \
76+
# Three-dot diff = the PR's own changes (diff from merge-base to head),
77+
# matching GitHub's "Files changed". A two-dot "$BASE $HEAD" diff would,
78+
# when the branch is behind master, also surface unrelated master-side
79+
# changes and wrongly downgrade a product-autonomous PR to platform.
80+
git diff --name-status "$OWNER_GATE_BASE_SHA...$HEAD_SHA" \
7381
| go run ./hack/owner-gate
7482
- name: Post verdict to PR (sticky comment)
7583
env:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.