Skip to content
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

updated auto-merge-bot to 1.0.1 #220

Merged

Conversation

Bullrich
Copy link
Contributor

@Bullrich Bullrich commented Mar 6, 2024

This upgrade contains the change in paritytech/auto-merge-bot#25 which fixes the problem with unstable branches.

The problem

When the /merge command is triggered on a PR that still can't be merge, the bot enables auto-merge.

But, when the command is run when the PR is ready to merge, the action will fail to enable auto-merge (this is expected).

We evaluate the error message, and if it says that the PR is clean, it simply merges the PR.

But, we did not handle unstable PRs.

An unstable PR is a PR that can be merged, but a non required status check is failing.

So, if a user invoked the /merge command on a PR that was ready to merge, but a not-required status check was failing, it would crash.

This upgrade fixes this problem.

Other upgrades

get-fellows-action has been upgraded to 1.1.0

This new version contains:

replaced token generation script for github's

We replaced the action used to generate a token from a github app, originally tibdex/github-app-token for actions/create-github-app-token

It is more safe to use an action that has been developed by github themselves than by an external party.


  • Does not require a CHANGELOG entry

This upgrade contains the change in paritytech/auto-merge-bot#25 which fixes the problem with unstable branches.

## The problem

When the `/merge` command is triggered on a PR that still can't be merge, the bot enables auto-merge.

**But**, when the command is run when the PR is ready to merge, the action will fail to enable auto-merge (this is expected).

We evaluate the error message, and if it says that the PR is clean, it simply merges the PR.

But, we did not handle `unstable` PRs.

An unstable PR is a PR that _can be merged, but a **non required status check is failing**._

So, if a user invoked the `/merge` command on a PR that was ready to merge, but a not-required status check was failing, it would crash.

This upgrade fixes this problem.
@Bullrich
Copy link
Contributor Author

Bullrich commented Mar 6, 2024

/merge

@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) March 6, 2024 23:10
@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

@ggwpez ggwpez disabled auto-merge March 13, 2024 19:46
@ggwpez ggwpez enabled auto-merge (squash) March 13, 2024 19:46
@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

This new version contains:
- paritytech/get-fellow-action#15
  - Fixed a bug where candidates (`rank 0`) counted as fellows.
  - Now we filter anyone whose rank is below 1.
- paritytech/get-fellow-action#16
  - Fixes a problem where a fellow using a superidentity wouldn't appear.
- paritytech/get-fellow-action#17
  - We upgraded the system to work with `papi` and with `smoldot`.
  - We are **bleeding edge** now!
It is more safe to use an action that has been developed by github themselves than by an external party.
auto-merge was automatically disabled March 18, 2024 14:44

Head branch was pushed to by a user without write access

@Bullrich
Copy link
Contributor Author

/merge cancel

@Bullrich
Copy link
Contributor Author

Bullrich commented Mar 18, 2024

@bkchr I updated the PR to contain an update to the get-fellows-action.

This new version contains:

@Bullrich
Copy link
Contributor Author

/merge

@fellowship-merge-bot
Copy link
Contributor

Disabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) March 18, 2024 15:05
@fellowship-merge-bot fellowship-merge-bot bot merged commit d39b052 into polkadot-fellows:main Mar 18, 2024
31 of 32 checks passed
@Bullrich Bullrich deleted the auto-merge-bot/1.0.1 branch March 19, 2024 07:33
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.

5 participants