-
Notifications
You must be signed in to change notification settings - Fork 13
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
Try to get TARGET_BRANCH from PR's title #3675
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
0cd1b98
Try to get TARGET_BRANCH from PR body
iunanua dd53fa8
lint
iunanua d2d0a7b
try
iunanua 2863beb
try
iunanua 736fb73
Use PR title
iunanua 9d352bc
force a new run
iunanua 027d22b
fix regex
iunanua c7d4a6c
try to show branch in the UI
iunanua 9517bc6
force run
iunanua bec64d2
force run not_existing_branch
iunanua f0aa746
force run with existing branch
iunanua 1492918
Fail if target branch job
iunanua 2616783
force run
iunanua 534c503
Merge branch 'main' into igor/target-branch-from-pr-body
simon-id b764f5f
Update ruby and python load-from
iunanua ceaa083
force run
iunanua 70d6074
force run
iunanua be964ce
force run
iunanua a8fcdb9
use non-greedy match
iunanua d6368d5
docs
iunanua 754f83a
force run
iunanua e56729f
read branch from [target@branch]
iunanua 0c13475
remove check-title step
iunanua 898d408
Try to fix branch extraction and impacted libs
iunanua 0d72ceb
another try
iunanua 33fb51e
fi
iunanua e18bca6
rename job and update docs
iunanua 170b37d
set target-branch even when there is no branch
iunanua d0cbf55
fix impacted libs regex
iunanua 04bdec1
ignore grep error when regex doesn't match
iunanua 9685124
force run
iunanua 387195e
force run
iunanua f21be76
force run
iunanua 81a7000
fail if library is not supported
iunanua 93adbfd
linter and fix
iunanua 405c5f6
fail if not supported
iunanua 090faa6
Update docs/CI/system-tests-ci.md
iunanua f289a1d
force run
iunanua 70e6743
force run
iunanua 7a77caf
force run
iunanua 21cd592
change assert_target_branch_is_not_set
iunanua bf9b691
fix assert_target_branch_is_not_set
iunanua ae8b369
clean up messages
iunanua fa2c84b
fix beginning [
iunanua 81f2a6f
Merge branch 'main' into igor/target-branch-from-pr-body
cbeauchesne 283d690
Merge branch 'main' into igor/target-branch-from-pr-body
iunanua File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Get_target_branch | ||
description: "Gets target branch from the PR description" | ||
inputs: | ||
text: | ||
description: "Text from which to extract the target branch" | ||
required: true | ||
outputs: | ||
target-branch: | ||
description: "Target branch" | ||
value: ${{ steps.extract.outputs.target-branch }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Extract target branch | ||
id: extract | ||
shell: bash | ||
run: | | ||
branch=$(echo "${{ inputs.text }}" | grep -ioP '\[(?:java|dotnet|python|ruby|php|golang|cpp|agent|nodejs)@[^]]+(?=\])' | tr -d '[:space:]' || true) | ||
|
||
echo "target-branch=${branch#*@}" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Did you tested ? I don;t understand where the output of the
get_dev_artifacts
job is set 🤔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.
It's been modified to output the
steps.get-target-branch.outputs.target-branch
value (lines 66 and 67)