Skip to content

Commit 4016d35

Browse files
Update milestone and label workflows for maintainers, developers, and bots (#3342)
* Initial plan * Update milestone workflow: rename and add BornToBeRoot maintainer Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> * Add label workflow and remove duplicate labels from dependabot config Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
1 parent 2d1a349 commit 4016d35

3 files changed

Lines changed: 27 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ updates:
77
target-branch: main
88
commit-message:
99
prefix: "Dependency (dependabot/nuget):"
10-
labels:
11-
- ":heavy_check_mark: dependencies"
1210
- package-ecosystem: "dotnet-sdk"
1311
directory: "/Source"
1412
ignore:
@@ -20,14 +18,10 @@ updates:
2018
target-branch: main
2119
commit-message:
2220
prefix: "Dependency (dependabot/dotnet-sdk):"
23-
labels:
24-
- ":heavy_check_mark: dependencies"
2521
- package-ecosystem: "npm"
2622
directory: "/Website"
2723
schedule:
2824
interval: weekly
2925
target-branch: main
3026
commit-message:
3127
prefix: "Dependency (dependabot/npm):"
32-
labels:
33-
- ":heavy_check_mark: dependencies"

.github/workflows/label.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Assign label to PRs
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
assign-dependencies-label:
9+
name: Assign dependencies label
10+
runs-on: ubuntu-latest
11+
if: contains(fromJSON('["dependabot[bot]", "transifex-integration[bot]", "imgbot[bot]"]'), github.event.pull_request.user.login)
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- name: Assign label
17+
uses: actions/github-script@v7
18+
with:
19+
script: |
20+
await github.rest.issues.addLabels({
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
issue_number: context.payload.pull_request.number,
24+
labels: [':heavy_check_mark: dependencies']
25+
});

.github/workflows/milestone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Assign milestone to automated PRs
1+
name: Assign milestone to PRs
22

33
on:
44
pull_request_target:
@@ -8,7 +8,7 @@ jobs:
88
assign-milestone:
99
name: Assign next-release milestone
1010
runs-on: ubuntu-latest
11-
if: contains(fromJSON('["dependabot[bot]", "transifex-integration[bot]", "imgbot[bot]", "Copilot"]'), github.event.pull_request.user.login)
11+
if: contains(fromJSON('["dependabot[bot]", "transifex-integration[bot]", "imgbot[bot]", "Copilot", "BornToBeRoot"]'), github.event.pull_request.user.login)
1212
permissions:
1313
issues: write
1414
pull-requests: write

0 commit comments

Comments
 (0)