Skip to content

Commit f4b1def

Browse files
Merge pull request #15 from devops-infra/dependency/repo-sync
Repo sync for templates, labels, dependabot
2 parents a43fb82 + 6331631 commit f4b1def

13 files changed

+62
-252
lines changed

.github/CODEOWNERS

-2
This file was deleted.

.github/CODE_OF_CONDUCT.md

-76
This file was deleted.

.github/CONTRIBUTING.md

-38
This file was deleted.

.github/ISSUE_TEMPLATE/BUGFIX.md

-24
This file was deleted.

.github/ISSUE_TEMPLATE/DOCUMENTATION.md

-22
This file was deleted.

.github/ISSUE_TEMPLATE/FEATURE.md

-23
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

-8
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

-24
This file was deleted.

.github/dependabot.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
9+
# Enable version updates for Docker
10+
- package-ecosystem: "docker"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
assignees:
15+
- "ChristophShyper"
16+
labels:
17+
- automatic
18+
19+
# Enable version updates for pip
20+
- package-ecosystem: "pip"
21+
directory: "/"
22+
schedule:
23+
interval: "daily"
24+
assignees:
25+
- "ChristophShyper"
26+
labels:
27+
- automatic

.github/labels.yml

-23
This file was deleted.

.github/workflows/PUSH-MASTER.yml

+7
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/[email protected]
1515

16+
- name: Download labels' config
17+
shell: bash
18+
run: |
19+
mkdir -p .tmp
20+
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
21+
1622
- name: Update labels
1723
uses: crazy-max/[email protected]
1824
with:
1925
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
yaml-file: .tmp/labels.yml
2027

2128
lint:
2229
name: Run linters

.github/workflows/PUSH-OTHER.yml

+25-12
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/[email protected]
1616

17+
- name: Download labels' config
18+
shell: bash
19+
run: |
20+
mkdir -p .tmp
21+
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
22+
1723
- name: Update labels - dry run
1824
uses: crazy-max/[email protected]
1925
with:
2026
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
yaml-file: .tmp/labels.yml
2128
dry-run: true
2229

2330
lint:
@@ -59,64 +66,70 @@ jobs:
5966
with:
6067
fetch-depth: 0
6168

69+
- name: Download Pull Request template
70+
shell: bash
71+
run: |
72+
mkdir -p .tmp
73+
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
74+
6275
- name: Create pull request - bugfix (conditional)
6376
if: startsWith(github.ref, 'refs/heads/bugfix')
64-
uses: devops-infra/action-pull-request@master
77+
uses: devops-infra/action-pull-request@0.4
6578
with:
6679
github_token: ${{ secrets.GITHUB_TOKEN }}
6780
assignee: ${{ github.actor }}
6881
label: bugfix
69-
template: .github/PULL_REQUEST_TEMPLATE.md
82+
template: .tmp/PULL_REQUEST_TEMPLATE.md
7083
get_diff: true
7184

7285
- name: Create pull request - dependency (conditional)
7386
if: startsWith(github.ref, 'refs/heads/dependency')
74-
uses: devops-infra/action-pull-request@master
87+
uses: devops-infra/action-pull-request@0.4
7588
with:
7689
github_token: ${{ secrets.GITHUB_TOKEN }}
7790
assignee: ${{ github.actor }}
7891
label: dependency
79-
template: .github/PULL_REQUEST_TEMPLATE.md
92+
template: .tmp/PULL_REQUEST_TEMPLATE.md
8093
get_diff: true
8194

8295
- name: Create pull request - documentation (conditional)
8396
if: startsWith(github.ref, 'refs/heads/documentation')
84-
uses: devops-infra/action-pull-request@master
97+
uses: devops-infra/action-pull-request@0.4
8598
with:
8699
github_token: ${{ secrets.GITHUB_TOKEN }}
87100
assignee: ${{ github.actor }}
88101
label: documentation
89-
template: .github/PULL_REQUEST_TEMPLATE.md
102+
template: .tmp/PULL_REQUEST_TEMPLATE.md
90103
get_diff: true
91104

92105
- name: Create pull request - feature (conditional)
93106
if: startsWith(github.ref, 'refs/heads/feature')
94-
uses: devops-infra/action-pull-request@master
107+
uses: devops-infra/action-pull-request@0.4
95108
with:
96109
github_token: ${{ secrets.GITHUB_TOKEN }}
97110
assignee: ${{ github.actor }}
98111
label: feature
99-
template: .github/PULL_REQUEST_TEMPLATE.md
112+
template: .tmp/PULL_REQUEST_TEMPLATE.md
100113
get_diff: true
101114

102115
- name: Create pull request - test (conditional)
103116
if: startsWith(github.ref, 'refs/heads/test')
104-
uses: devops-infra/action-pull-request@master
117+
uses: devops-infra/action-pull-request@0.4
105118
with:
106119
github_token: ${{ secrets.GITHUB_TOKEN }}
107120
assignee: ${{ github.actor }}
108121
reviewer: ${{ github.actor }}
109122
label: test
110-
template: .github/PULL_REQUEST_TEMPLATE.md
123+
template: .tmp/PULL_REQUEST_TEMPLATE.md
111124
draft: true
112125
get_diff: true
113126

114127
- name: Create pull request - other (conditional)
115128
if: "!startsWith(github.ref, 'refs/heads/bugfix') && !startsWith(github.ref, 'refs/heads/dependabot') && !startsWith(github.ref, 'refs/heads/dependency') && !startsWith(github.ref, 'refs/heads/documentation') && !startsWith(github.ref, 'refs/heads/feature') && !startsWith(github.ref, 'refs/heads/test')"
116-
uses: devops-infra/action-pull-request@master
129+
uses: devops-infra/action-pull-request@0.4
117130
with:
118131
github_token: ${{ secrets.GITHUB_TOKEN }}
119132
assignee: ${{ github.actor }}
120133
label: feature
121-
template: .github/PULL_REQUEST_TEMPLATE.md
134+
template: .tmp/PULL_REQUEST_TEMPLATE.md
122135
get_diff: true

0 commit comments

Comments
 (0)