File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Add milestone and project to GitHub PR
3
+ on :
4
+ pull_request :
5
+ branches : [main]
6
+ workflow_dispatch :
7
+ permissions : read-all
8
+ jobs :
9
+ milestone :
10
+ name : Add milestone to GitHub PR
11
+ if : github.actor == 'renovate[bot]'
12
+ runs-on : ubuntu-24.04
13
+ steps :
14
+ - name : Find current milestone and add it to GitHub PR
15
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
16
+ with :
17
+ script : |
18
+ try {
19
+ const { data: [milestones] } = await github.issues.listMilestones({
20
+ owner: context.repo.owner,
21
+ repo: context.repo.repo,
22
+ });
23
+
24
+ await github.issues.update({
25
+ owner: context.repo.owner,
26
+ repo: context.repo.repo,
27
+ issue_number: context.issue.number,
28
+ milestone: milestone.number,
29
+ });
30
+ } catch (error) {
31
+ core.setFailed(`Action failed with error ${error}`);
32
+ }
33
+
34
+ project :
35
+ name : Add project to GitHub PR
36
+ if : github.actor == 'renovate[bot]'
37
+ runs-on : ubuntu-24.04
38
+ steps :
39
+ - name : Add Project
40
+ uses : actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v.1.0.2
41
+ with :
42
+ project-url : https://github.com/orgs/nginxinc/projects/17/views/1
43
+ github-token : ${{ secrets.ADD_TO_PROJECT_TOKEN }}
Original file line number Diff line number Diff line change 41
41
- Remove platform metadata from the Ansible Galaxy role metadata since platforms are no longer supported in Ansible Galaxy NG.
42
42
- Implement OSSF Scorecard.
43
43
- Implement Renovate Bot.
44
+ - Automatically add milestone and project to Renovate Bot PRs.
44
45
45
46
## 0.24.3 (July 11, 2024)
46
47
You can’t perform that action at this time.
0 commit comments