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

Externalise backport action #1373

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JackPGreen
Copy link
Contributor

@JackPGreen JackPGreen commented Nov 13, 2024

The back porting logic is integrated into each action, duplicated many times across the codebase.

Instead, the logic should be externalised to be re-used.

Changes:

  • referenced new workflow instead of duplication
  • refactored all and specified branch actions into a single action
    • maintained branches only needs to be specified once
  • updated backporting process
    • re-ordered so checkout done only if required
    • updated commit metadata to use the ACTOR (ie commit author) vs hardcoded 🤖
  • updated maintenance branches to reflect supported versions

Tested via a dummy repo.

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for hardcore-allen-f5257d ready!

Name Link
🔨 Latest commit d675997
🔍 Latest deploy log https://app.netlify.com/sites/hardcore-allen-f5257d/deploys/6735a7c71977b00008bbd92b
😎 Deploy Preview https://deploy-preview-1373--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 added a commit to JackPGreen/hazelcast-platform-operator-docs that referenced this pull request Nov 13, 2024
The back porting logic is integrated into each action, duplicated [many times across the codebase](https://github.com/search?q=org%3Ahazelcast+%22Checkout+maintenance+branch+and+cherry-pick%22&type=code).

In hazelcast/hz-docs#1373 this was centralised.

- updated actions to use it
- simplified actions
- updated the list of supported maintenance branches
   - *note* this was very outdated
JackPGreen added a commit to JackPGreen/management-center-docs that referenced this pull request Nov 13, 2024
The back porting logic is integrated into each action, duplicated [many times across the codebase](https://github.com/search?q=org%3Ahazelcast+%22Checkout+maintenance+branch+and+cherry-pick%22&type=code).

In hazelcast/hz-docs#1373 this was centralised.

- updated actions to use it
- simplified actions
- updated the list of supported maintenance branches
   - *note* this was very outdated and the formatting appeared to be incorrect
@JackPGreen JackPGreen marked this pull request as ready for review November 13, 2024 15:18
Copy link
Contributor

@amandalindsay amandalindsay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed from a tech docs point of view only, all good, thanks

.github/workflows/backport-workflow.yml Show resolved Hide resolved
.github/workflows/forwardport.yml Show resolved Hide resolved
.github/workflows/backport.yml Show resolved Hide resolved
JackPGreen added a commit to JackPGreen/hazelcast-platform-operator-docs that referenced this pull request Nov 14, 2024
The back porting logic is integrated into each action, duplicated [many times across the codebase](https://github.com/search?q=org%3Ahazelcast+%22Checkout+maintenance+branch+and+cherry-pick%22&type=code).

In hazelcast/hz-docs#1373 this was centralised.

- updated actions to use it
- simplified actions
- updated the list of supported maintenance branches
   - *note* this was very outdated
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