Skip to content

Conversation

@seemethere
Copy link
Collaborator

Adds a reusable workflow that can be called from other repositories
to automate ghstack landing via PR comments.

Files:

  • .github/workflows/ghstack-merge.yml: Reusable workflow with inputs:

    • pull_request_number (required)
    • python_version, ghstack_version, runs_on (optional)
    • validate_rules, dry_run, comment_on_failure (optional booleans)
  • .github/workflows/ghstack-merge-on-comment.yml: Example caller
    workflow that triggers on "@ghstack merge" PR comments

  • .github/merge_rules.yaml: Example merge rules configuration

Usage in other repos:
uses: ezyang/ghstack/.github/workflows/ghstack-merge.yml@master
with:
pull_request_number: ${{ github.event.issue.number }}
secrets:
github_token: ${{ secrets.GITHUB_TOKEN }}

[ghstack-poisoned]
@seemethere
Copy link
Collaborator Author

seemethere commented Jan 27, 2026

[ghstack-poisoned]
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