-
Notifications
You must be signed in to change notification settings - Fork 48.3k
[ci] Add ghstack /land bot #32829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[ci] Add ghstack /land bot #32829
Conversation
Comparing: bb74190...71c4b32 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
- name: Land It! | ||
run: | | ||
git config --global user.email "facebook-github-bot@users.noreply.github.com" | ||
git config --global user.name "Facebook Community Bot" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this break the commit verification?
Ideally this would be set this to the user that does the /land command, I believe that's what a merge would do. But that would break the verification too.
Adds a new `/land` command that can be written as a comment on a pull request. The command must be the very first line of the comment, like so: ``` /land <additional context etc> ``` The workflow will first check if the commenter is a collaborator or member, and additionally also check if the commenter is a maintainer via the MAINTAINERS file. The workflow will then attempt to validate the pull request, checking that CI has completed successfully and that it has received at least one approval before landing. The land is performed via `ghstack land`, which does mean that the PR itself isn't merged directly via github but it is pushed to main by a synthetic user (@facebook-github-bot for now). This means PRs landed with `/land` will have an additional co-author @facebook-github-bot, but the original committer will not be lost.
Adds a new
/land
command that can be written as a comment on a pull request. The command must be the very first line of the comment, like so:The workflow will first check if the commenter is a collaborator or member, and additionally also check if the commenter is a maintainer via the MAINTAINERS file.
The workflow will then attempt to validate the pull request, checking that CI has completed successfully and that it has received at least one approval before landing. The land is performed via
ghstack land
, which does mean that the PR itself isn't merged directly via github but it is pushed to main by a synthetic user (@facebook-github-bot for now). This means PRs landed with/land
will have an additional co-author @facebook-github-bot, but the original committer will not be lost.