Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Nov 27, 2024
1 parent bc0b1a3 commit 9872a74
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clean-milestone-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
echo "$PR_NUMBERS" > pr_numbers.txt
echo "Saved PR Numbers to pr_numbers.txt"
# Check if the title matches a specific pattern
if echo "$PR_TITLE" | grep -qE "^deps: Merge( #[0-9]+)+ PRs into .+"; then
# Check if the title matches the specific pattern
if echo "$PR_TITLE" | grep -qE "^deps: Merge( #[0-9]+)+ PRs into .+ \[Created by @.+ from #[0-9]+\]$"; then
echo "proceed=true" >> $GITHUB_OUTPUT
else
echo "proceed=false" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-after-milestone-prs-merged.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cleanup After Milestone PRs Merged
name: Cleanup After Milestone PRs Merged(Deprecated)

on:
pull_request:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/merge-PR-into-milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ on:
default: "pre-release-v3.8.3"

env:
MILESTONE_NAME: ${{ github.event.inputs.milestone_name || 'v3.8.2' }}
TARGET_BRANCH: ${{ github.event.inputs.target_branch || 'pre-release-v3.8.2' }}
MILESTONE_NAME: ${{ github.event.inputs.milestone_name || 'v3.8.3' }}
TARGET_BRANCH: ${{ github.event.inputs.target_branch || 'pre-release-v3.8.3' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
LABEL_NAME: cherry-picked
Expand Down Expand Up @@ -109,8 +109,8 @@ jobs:
git remote set-url origin "https://${BOT_TOKEN}@github.com/${{ github.repository }}.git"
git push origin $cherry_pick_branch --force
new_pr_title="$pr_title (by @$pr_creator from #$pr_number)"
new_pr_body="$pr_body\n\nThis PR cherry-picks commit from original PR #$pr_number."
new_pr_title="$pr_title [Created by @$pr_creator from #$pr_number]"
new_pr_body="$pr_body \\n >This PR cherry-picks commit from original PR #$pr_number."
response=$(curl -s -X POST -H "Authorization: token $BOT_TOKEN" \
-H "Accept: application/vnd.github+json" \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Pre-Release PR from Milestone
name: Create Pre-Release PR from Milestone(Deprecated)

permissions:
contents: write
Expand Down

0 comments on commit 9872a74

Please sign in to comment.