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

Make backporting action use PRs to support protected branches [DOC-268] #1396

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JackPGreen
Copy link
Contributor

@JackPGreen JackPGreen commented Nov 22, 2024

In DOC-255, branch protection was added - preventing direct pushes.

Instead, the backport workflow should create PRs to backport the changes. This gives the possibility for pre-merge checks to be run (i.e. preventing introducing dead links etc).

Leverages existing backport tool, but exposed some issues which need to be addressed before this can be merged:

Tested in a test repo, where a dummy PR was successfully backported. However, due to the complexity of fork-triggering, it wil need to be re-tested once merged.

Fixes: DOC-268

In [DOC-255](https://hazelcast.atlassian.net/browse/DOC-255), branch protection was added - preventing direct `push`es.

Instead, the backport workflow should create PRs to backport the changes. This gives the _possibility_ for pre-merge checks to be run (i.e. preventing introducing dead links etc).

Leverages [_existing_ `backport` tool](https://github.com/hazelcast/backport), but exposed some issues which need to be addressed *before this can be merged*:
- T
- B
- C

Tested in a [test repo](https://github.com/JackPGreen2/hz-docs), where a [dummy PR](JackPGreen2#5) was [successfully backported](JackPGreen2#16). However, due to the complexity of fork-triggering, it wil need to be re-tested once merged.

Fixes: [DOC-268](https://hazelcast.atlassian.net/browse/DOC-268)
@JackPGreen JackPGreen self-assigned this Nov 22, 2024
Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for hardcore-allen-f5257d ready!

Name Link
🔨 Latest commit 560b631
🔍 Latest deploy log https://app.netlify.com/sites/hardcore-allen-f5257d/deploys/67406ce34844a8000853e02e
😎 Deploy Preview https://deploy-preview-1396--hardcore-allen-f5257d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JackPGreen JackPGreen marked this pull request as ready for review November 22, 2024 12:06
@JackPGreen JackPGreen requested a review from a team as a code owner November 22, 2024 12:06
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