Skip to content

Commit

Permalink
ci: update the cherry-pick workflow actions (#12860)
Browse files Browse the repository at this point in the history
* test: bot notify

* ci: update

* ci: update the cherry pick workflow
  • Loading branch information
wenytang-ms authored Dec 5, 2024
1 parent 64bb5b1 commit eb9d0ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/issue-labeled/azdo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class DevopsClient {
tagsValue,
url,
'Bug',
sprintPath??this.bugIteration,
this.bugIteration,
);
}

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/issue-labeled/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Labeled extends Action {
const url = this.issueUrl(content.number);
const title = titlePreix + content.title;
let workItem: WorkItemTrackingInterfaces.WorkItem;
safeLog(`issue labeled with ${bugLabel}. Bug work item will be created.`);
safeLog(`issue labeled with ${bugLabel}. Bug work item will be created. ${sprintPath}`);
workItem = await client.createBugItem(title, asignee, undefined, url, sprintPath);
safeLog(`finished to create work item.`);
const workItemUrl = workItem._links?.html?.href;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
main:
if: ${{contains(github.event.issue.labels.*.name, 'cherry-pick-hotfix')}}
if: ${{contains(github.event.issue.labels.*.name, 'cherry-pick-hotfix') || github.event_name == 'workflow_dispatch'}}
runs-on: ubuntu-latest
environment: engineering
permissions:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- opened
- edited
- synchronize
push:
branches:
- release/*
schedule:
- cron: "0 8 * * *"

Expand Down Expand Up @@ -240,7 +243,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-cherry-pick-issue:
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release') && github.event.action == 'opened' }}
if: ${{ github.event_name == 'push' && !contains(github.event.pull_request.labels.*.name, 'cherry-pick-hotfix') }}
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit eb9d0ea

Please sign in to comment.