-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
mergify: support backports automation with labels #16937
base: main
Are you sure you want to change the base?
Conversation
- main | ||
- 8.* | ||
- 9.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to skip 7.17
for the pre-commit
validation.
env: | ||
INPUTS_BRANCH: "${{ inputs.branch }}" | ||
INPUTS_BUMP: "${{ inputs.bump }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best practice to avoid shell injection
steps: | ||
- name: Fetch logstash-core team member list | ||
uses: tspascoal/get-user-teams-membership@v1 | ||
uses: tspascoal/get-user-teams-membership@57e9f42acd78f4d0f496b3be4368fc5f62696662 #v3.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best practice, tags are mutable.
@@ -37,14 +40,14 @@ jobs: | |||
if: ${{ steps.checkUserMember.outputs.isTeamMember == 'false' }} | |||
run: exit 1 | |||
- name: checkout repo content | |||
uses: actions/checkout@v2 | |||
uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best practice, update checkout, we trust actions/checkout
- name: Create GitHub backport label (Mergify) (minor only) | ||
if: ${{ inputs.bump == 'minor' }} | ||
continue-on-error: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for minor releases we create the backport labels. for major releases is not needed
Quality Gate passedIssues Measures |
💚 Build Succeeded
History
cc @v1v |
What does this PR do?
conflicts
8.x
by default unlessbackport-skip
)Mergify
does not support this feature out of the box, see github-actions: support for copying the backport labels apm-server#15190minor
.minor
.Why is it important/What is the impact to the user?
Use the same backport mechanism as done in some other projects. While still support for the former approach.
Tasks
Follow-ups
Checklist
Author's Checklist
How to test this PR locally
Related issues
Relates #16933
Use cases
Screenshots
Logs