Skip to content

Add GitHub Actions reusable workflow for @ghstack merge#319

Open
seemethere wants to merge 2 commits intogh/seemethere/2/headfrom
gh/seemethere/3/head
Open

Add GitHub Actions reusable workflow for @ghstack merge#319
seemethere wants to merge 2 commits intogh/seemethere/2/headfrom
gh/seemethere/3/head

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]
[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.

1 participant