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

added up-to-date-action #139

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

Bullrich
Copy link
Contributor

Added action to keep pull requests up to date. Every time master receives a push, it will look for all the PRs and sync them with the master branch.

This only works when the PR has auto-merge enabled (it can be enabled for all PRs too if required).

Merging this PR will count as solving paritytech/auto-merge-bot#21 and paritytech/up-to-date-action#1

We use a github app to solve the issue that tests would not run if the credentials comes from a github action.

I'm resuing the credentials for the fellowship-merge-bot used in auto-merge.

It needs to have the following permissions:

  • Repository permissions:
    • Pull Requests
      • Write
    • Contents
      • Write

Added action to keep pull requests up to date. Every time master receives a push, it will look for all the PRs and sync them with the master branch.

This only works when the PR has `auto-merge` enabled (it can be enabled for all PRs too if required).

Merging this PR will count as solving paritytech/auto-merge-bot#21 and paritytech/up-to-date-action#1

We use a github app to solve the issue that tests would not run if the credentials comes from a github action.
@Bullrich
Copy link
Contributor Author

Bullrich commented Jan 10, 2024

Here you can see an execution of the action, updating two pull requests: https://github.com/paritytech-stg/test/actions/runs/7460487908

It works with the one that has the Allow edits and access to secrets by maintainers checkbox enabled, and reports an error with the one that has it disabled (but doesn't crash).

@bkchr bkchr enabled auto-merge (squash) January 10, 2024 11:19
@bkchr bkchr merged commit 562fd76 into polkadot-fellows:main Jan 10, 2024
14 checks passed
@Bullrich Bullrich deleted the up-to-date-bot/v0.1.0 branch January 10, 2024 13:31
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.

3 participants