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

feat(gh75): extract target branched from pr labels #112

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

lampajr
Copy link
Member

@lampajr lampajr commented Mar 30, 2024

Thank you for submitting this pull request

fixes #75

Description

Give users the possibility to extract target branches from original pull request labels.

Added option:

  • CLI option: --target-branch-pattern
  • GHA Input: target-branch-pattern

Example: ^backport (?<target>([^ ]+))$

How Has This Been Tested?

Added other unit tests to cover the new option.

Checklist

  • Tests added if applicable.
  • Documentation updated if applicable.

Merge criteria:

  • The commits and have meaningful messages; the author will squash them after approval or will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Note: dist/cli/index.js and dist/gha/index.js are automatically generated by git hooks and gh workflows.

First time here?

This project follows git conventional commits pattern, therefore the commits should have the following format:

<type>(<optional scope>): <subject>
empty separator line
<optional body>
empty separator line
<optional footer>

Where the type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]

NOTE: if you are still in a work in progress branch and you want to push your changes remotely, consider adding --no-verify for both commit and push, e.g., git push origin <feat-branch> --no-verify - this could become useful to push changes where there are still tests failures. Once the pull request is ready, please amend the commit and force-push it to keep following the adopted git commit standard.

How to prepare for a new release?

There is no need to manually update package.json version and CHANGELOG.md information. This process has been automated in Prepare Release Github workflow.

Therefore whenever enough changes are merged into the main branch, one of the maintainers will trigger this workflow that will automatically update version and changelog based on the commits on the git tree.

More details can be found in package release section of the README.

Copy link
Contributor

github-actions bot commented Mar 30, 2024

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
91.58% (+0.3% 🔼)
446/487
🟢 Branches
86.27% (+0.42% 🔼)
176/204
🟢 Functions
88.33% (+0.1% 🔼)
106/120
🟢 Lines
91.54% (+0.32% 🔼)
433/473

Test suite run success

174 tests passing in 16 suites.

Report generated by 🧪jest coverage report action from 2a162ac

@lampajr lampajr merged commit 53cc505 into kiegroup:main Mar 30, 2024
6 checks passed
@lampajr lampajr deleted the gh75_label_parser branch March 30, 2024 18:19
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.

Retrieve target branch from PR label(s)
1 participant