Skip to content

Commit

Permalink
feat(merge-queue): update first queued pr with default branch (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian authored Jan 4, 2022
1 parent 41f50be commit b2fb12b
Show file tree
Hide file tree
Showing 29 changed files with 138 additions and 153 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/manage-merge-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ jobs:
helper: manage-merge-queue
sha: ${{ github.event.pull_request.head.sha }}
github_token: ${{ secrets.GITHUB_TOKEN }}

permissions: write-all
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Additionally, the following parameters can be used for additional control over t
* If a PR is first in the queue, the `QUEUE CHECKER` commit status will be set to `success`, and it will be `pending` otherwise. Github's [branch protection rules](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule) can be used to ensure this requirement is met prior to merging.
* Merging a PR will update the positions of all PRs in the queue.
* Adding the `JUMP THE QUEUE` label to a PR will make that PR first in the queue immediately.
* This helper can be used to build a fully automated merge queue when used in conjunction with `prepare-queued-pr-for-merge`.
* When a PR is merged, it automatically updates the first-queued PR with the default branch.
### [**move-project-card**](.github/workflows/move-project-card.yml)
* Moves a GitHub Project card to a new column, using the `project_origin_column_name` and`project_destination_column_name` you provide.
* In order to move a card from one place to another, it must already exist.
Expand Down
6 changes: 0 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ inputs:
environment_url:
description: 'The environment url for updating deployment status'
required: false
default_branch:
description: 'The default branch of the repo'
required: false
label:
description: 'The singular label name used only for removing a label'
required: false
Expand All @@ -67,9 +64,6 @@ inputs:
pattern:
description: 'A regex pattern to match (must be wrapped in singlequotes)'
required: false
prevent_merge_conflicts:
description: 'Set to "true" if you want the prepare-queued-pr-for-merge helper to remove PRs with merge conflicts from the queue'
required: false
teams:
description: 'A list of github teams (newline separated)'
required: false
Expand Down
2 changes: 0 additions & 2 deletions dist/0.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/0.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions dist/101.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b2fb12b

Please sign in to comment.