Skip to content

Commit a139f87

Browse files
authored
CLOUDP-267258: Assign mongocli dependabot tickets to correct team (#3198)
1 parent 0650777 commit a139f87

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/dependabot.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@
1818
uses: actions/[email protected]
1919
with:
2020
fetch-depth: 2
21-
- name: Find JIRA team
22-
id: find
23-
run: |
24-
echo "assigned_team="$(git diff HEAD~1..HEAD -- go.mod | grep -v "// indirect" | grep -i "^\-" | grep -v "^\-\-\-" | awk '{print $2}' | xargs -I $ echo "jq -r \".\\\"$\\\"\" < build/ci/library_owners.json" | sh | xargs -I $ echo "jq -r \".\\\"$\\\"\" < build/ci/library_owners_jira.json" | sh | head -1) >> "${GITHUB_OUTPUT}"
2521
- name: Create JIRA ticket
2622
id: create
2723
shell: bash
2824
env:
2925
PR_NUMBER: ${{ github.event.pull_request.number }}
3026
PR_URL: ${{ github.event.pull_request.html_url }}
3127
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
32-
JIRA_ASSIGNEE: ${{ secrets.ASSIGNEE_JIRA_TICKET }}
28+
JIRA_ASSIGNEE: ${{ secrets.ASSIGNEE_MONGOCLI_JIRA_TICKET }}
3329
run: |
3430
json_response=$(curl --request POST \
3531
--url 'https://jira.mongodb.org/rest/api/2/issue' \
@@ -46,7 +42,7 @@
4642
"id": "12"
4743
},
4844
"customfield_12751": [{
49-
"id": "${{ steps.find.outputs.assigned_team }}"
45+
"id": 27065"
5046
}],
5147
"description": "This ticket tracks the following GitHub pull request: '"${PR_URL}"'.",
5248
"components": [

build/ci/library_owners_jira.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)