Skip to content

Commit 695c1fe

Browse files
authored
fix: permissions to set label on dependabot PRs (#3680)
1 parent d6681c4 commit 695c1fe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/dependabot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
permissions:
99
pull-requests: write
10-
contents: read
10+
contents: write
11+
repository-projects: read
1112
jobs:
1213
jira_task:
1314
name: Create Jira issue
@@ -73,7 +74,7 @@
7374
with:
7475
issue-number: ${{ github.event.pull_request.number }}
7576
body: |
76-
The ticket [${{ steps.create.outputs.jira-ticket-id }}](https://jira.mongodb.org/browse/${{ steps.create.outputs.jira-ticket-id }}) was created for internal tracking.
77+
The ticket [${{ steps.create.outputs.issue-key }}](https://jira.mongodb.org/browse/${{ steps.create.outputs.issue-key }}) was created for internal tracking.
7778
7879
Note: Jira ticket will be closed automatically when this PR is merged.
7980
- name: Add auto_close_jira label

.github/workflows/issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@
5050
with:
5151
issue-number: ${{ github.event.issue.number }}
5252
body: |
53-
Thanks for opening this issue. The ticket [${{ steps.create.outputs.jira-ticket-id }}](https://jira.mongodb.org/browse/${{ steps.create.outputs.jira-ticket-id }}) was created for internal tracking.
53+
Thanks for opening this issue. The ticket [${{ steps.create.outputs.issue-key }}](https://jira.mongodb.org/browse/${{ steps.create.outputs.issue-key }}) was created for internal tracking.

0 commit comments

Comments
 (0)