Skip to content

Add automatic labels for preview pull requests - #3924

Merged
frandiox merged 1 commit into
mainfrom
codex/label-preview-prs
Aug 6, 2026
Merged

Add automatic labels for preview pull requests#3924
frandiox merged 1 commit into
mainfrom
codex/label-preview-prs

Conversation

@frandiox

@frandiox frandiox commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the preview label to newly opened pull requests targeting preview
  • also add gsd:50917 when the author is a Shopify organization member
  • use an API-only pull_request_target workflow with limited permissions

Testing

  • parsed the workflow successfully as YAML
  • ran git diff --cached --check before committing

Label preview-targeted pull requests automatically so preview work and internal GSD tracking do not depend on manual triage.

Co-authored-by: Codex <codex@openai.com>
@frandiox
frandiox requested a review from a team as a code owner August 6, 2026 02:16
@shopify

shopify Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Oxygen deployed a preview of your codex/label-preview-prs branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment August 6, 2026 2:18 AM

Learn more about Hydrogen's GitHub integration.

Comment on lines +23 to +25
if (['MEMBER', 'OWNER'].includes(authorAssociation)) {
labels.push('gsd:50917');
}

@frandiox frandiox Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nicer to check the team instead of the org, but that requires another token with extra permissions

@fredericoo fredericoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, didnt even know that was possible!

@frandiox
frandiox merged commit 9c715c1 into main Aug 6, 2026
20 checks passed
@frandiox
frandiox deleted the codex/label-preview-prs branch August 6, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants