Skip to content

Commit 8f63756

Browse files
thervejirikuncar
andauthored
Minor infra changes (#794)
* Upgrade actions * Prettier, bump python * One more * Again * Stale as well Co-authored-by: Jiri Kuncar <[email protected]>
1 parent 61ade12 commit 8f63756

10 files changed

+89
-87
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: 'kind/bug'
6-
assignees: ''
7-
4+
title: ""
5+
labels: "kind/bug"
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
Label the issue properly.
13+
1414
- Add `severity/` label.
1515
- Add `documentation` label if this issue is related to documentation changes.
1616

1717
**To Reproduce**
1818
Steps to reproduce the behavior:
19+
1920
1. Go to '...'
2021
2. Click on '....'
2122
3. Scroll down to '....'
@@ -29,8 +30,9 @@ If applicable, add screenshots to help explain your problem.
2930

3031
**Environment and Versions (please complete the following information):**
3132
A clear and precise description of your setup:
32-
- version for this project in use.
33-
- services, libraries, languages and tools list and versions.
33+
34+
- version for this project in use.
35+
- services, libraries, languages and tools list and versions.
3436

3537
**Additional context**
3638
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: 'kind/feature-request'
6-
assignees: ''
7-
4+
title: ""
5+
labels: "kind/feature-request"
6+
assignees: ""
87
---
98

109
**Note:**

.github/PULL_REQUEST_TEMPLATE.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!--
22
** Requirements for Contributing to this repository **
33
4-
* Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely
4+
* Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely
55
manner may be closed at the maintainers' discretion.
6-
* After you create the pull request, all status checks must be pass before a maintainer reviews your contribution.
6+
* After you create the pull request, all status checks must be pass before a maintainer reviews your contribution.
77
For more details, please see [CONTRIBUTING](/CONTRIBUTING.md).
88
-->
99

@@ -15,7 +15,7 @@ What inspired you to submit this pull request?
1515
Link to the issue describing the bug that you're fixing.
1616
1717
If there is not yet an issue for your bug, please open a new issue and then link to that issue in your pull request.
18-
Note: In some cases, one person's "bug" is another person's "feature."
18+
Note: In some cases, one person's "bug" is another person's "feature."
1919
If the pull request does not address an existing issue with the "bug" label, the maintainers have the final say on whether the current behavior is a bug.
2020
2121
We must be able to understand the design of your change from this description.
@@ -29,11 +29,12 @@ Keep in mind that the maintainer reviewing this PR may not be familiar with or h
2929
<!-- Anything else we should know when reviewing? -->
3030

3131
### Review checklist
32+
3233
Please check relevant items below:
33-
- [ ] This PR includes all [newly recorded cassettes](/DEVELOPMENT.md) for any modified tests.
3434

35+
- [ ] This PR includes all [newly recorded cassettes](/DEVELOPMENT.md) for any modified tests.
3536

3637
- [ ] This PR does not rely on API client schema changes.
37-
- [ ] The CI should be fully passing.
38+
- [ ] The CI should be fully passing.
3839
- [ ] Or, this PR relies on API schema changes and this is a Draft PR to include tests for that new functionality.
39-
- Note: CI shouldn't be run on this Draft PR, as its expected to fail without the corresponding schema changes.
40+
- Note: CI shouldn't be run on this Draft PR, as its expected to fail without the corresponding schema changes.

.github/workflows/approved_status.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- name: Get GitHub App token
2323
id: get_token
24-
uses: tibdex/github-app-token@v1.3.0
24+
uses: tibdex/github-app-token@v1
2525
with:
2626
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
2727
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}

.github/workflows/docs.yml

+36-36
Original file line numberDiff line numberDiff line change
@@ -3,60 +3,60 @@ name: docs
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010

1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
17-
with:
18-
# Fetch all history for applying timestamps to every page
19-
fetch-depth: 0
16+
- uses: actions/checkout@v2
17+
with:
18+
# Fetch all history for applying timestamps to every page
19+
fetch-depth: 0
2020

21-
- name: Set up Python
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: '3.8'
21+
- name: Set up Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: "3.8"
2525

26-
- name: Upgrade Python packaging tools
27-
run: pip install --disable-pip-version-check --upgrade pip setuptools wheel
26+
- name: Upgrade Python packaging tools
27+
run: pip install --disable-pip-version-check --upgrade pip setuptools wheel
2828

29-
- name: Install tox
30-
run: pip install tox
29+
- name: Install tox
30+
run: pip install tox
3131

32-
- name: Build documentation
33-
run: tox -e docs build
32+
- name: Build documentation
33+
run: tox -e docs build
3434

35-
- uses: actions/upload-artifact@v2
36-
with:
37-
name: documentation
38-
path: site
35+
- uses: actions/upload-artifact@v2
36+
with:
37+
name: documentation
38+
path: site
3939

4040
publish:
4141
runs-on: ubuntu-latest
4242

4343
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
4444
needs:
45-
- build
45+
- build
4646

4747
steps:
48-
- uses: actions/download-artifact@v2
49-
with:
50-
name: documentation
51-
path: site
52-
53-
- uses: peaceiris/actions-gh-pages@v3
54-
with:
55-
github_token: ${{ secrets.GITHUB_TOKEN }}
56-
publish_dir: ./site
57-
commit_message: ${{ github.event.head_commit.message }}
58-
# Write .nojekyll at the root, see:
59-
# https://help.github.com/en/github/working-with-github-pages/about-github-pages#static-site-generators
60-
enable_jekyll: false
61-
# Only deploy if there were changes
62-
allow_empty_commit: false
48+
- uses: actions/download-artifact@v2
49+
with:
50+
name: documentation
51+
path: site
52+
53+
- uses: peaceiris/actions-gh-pages@v3
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
publish_dir: ./site
57+
commit_message: ${{ github.event.head_commit.message }}
58+
# Write .nojekyll at the root, see:
59+
# https://help.github.com/en/github/working-with-github-pages/about-github-pages#static-site-generators
60+
enable_jekyll: false
61+
# Only deploy if there were changes
62+
allow_empty_commit: false

.github/workflows/labeler.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: "Pull Request Labeler"
22
on:
3-
- pull_request
3+
- pull_request
44

55
jobs:
66
triage:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: DataDog/labeler@glob-all
10-
with:
11-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
9+
- uses: DataDog/labeler@glob-all
10+
with:
11+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-python@v2
2121
name: Install Python
2222
with:
23-
python-version: '3.8'
23+
python-version: "3.10"
2424

2525
- name: Install datadog_checks_dev
2626
run: |

.github/workflows/stale.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@
33
name: "Stale issues and pull requests"
44
on:
55
schedule:
6-
- cron: "0 0 * * *"
6+
- cron: "0 0 * * *"
77

88
jobs:
99
stale:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/stale@v1
13-
with:
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
stale-issue-message: >-
16-
Thanks for your contribution!
12+
- uses: actions/stale@v4
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: >-
16+
Thanks for your contribution!
1717
1818
19-
This issue has been automatically marked as stale because it has not had
20-
activity in the last 30 days. Note that the issue will not be automatically
21-
closed, but this notification will remind us to investigate why there's
22-
been inactivity. Thank you for participating in the Datadog open source community.
19+
This issue has been automatically marked as stale because it has not had
20+
activity in the last 30 days. Note that the issue will not be automatically
21+
closed, but this notification will remind us to investigate why there's
22+
been inactivity. Thank you for participating in the Datadog open source community.
2323
2424
25-
If you would like this issue to remain open:
25+
If you would like this issue to remain open:
2626
27-
1. Verify that you can still reproduce the issue in the latest version of this project.
27+
1. Verify that you can still reproduce the issue in the latest version of this project.
2828
29-
1. Comment that the issue is still reproducible and include updated details requested in the issue template.
30-
days-before-stale: 30
31-
days-before-close: 99999
32-
stale-issue-label: 'stale'
33-
exempt-issue-label: 'stale/exempt'
34-
stale-pr-message: >-
35-
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
29+
1. Comment that the issue is still reproducible and include updated details requested in the issue template.
30+
days-before-stale: 30
31+
days-before-close: 99999
32+
stale-issue-label: "stale"
33+
exempt-issue-label: "stale/exempt"
34+
stale-pr-message: >-
35+
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
3636
37-
Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity.
38-
stale-pr-label: 'stale'
39-
exempt-pr-label: 'stale/exempt'
37+
Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity.
38+
stale-pr-label: "stale"
39+
exempt-pr-label: "stale/exempt"

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- name: Get GitHub App token
2525
id: get_token
26-
uses: tibdex/github-app-token@v1.3.0
26+
uses: tibdex/github-app-token@v1
2727
with:
2828
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
2929
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
@@ -36,7 +36,7 @@ jobs:
3636
run: python -m pip install pre-commit
3737
- name: set PY
3838
run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
39-
- uses: actions/cache@v1
39+
- uses: actions/cache@v2
4040
with:
4141
path: ~/.cache/pre-commit
4242
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
@@ -103,14 +103,14 @@ jobs:
103103
report:
104104
runs-on: ubuntu-latest
105105
if: always() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
106-
needs:
106+
needs:
107107
- test
108108
- examples
109109
steps:
110110
- name: Get GitHub App token
111111
if: github.event_name == 'pull_request'
112112
id: get_token
113-
uses: tibdex/github-app-token@v1.3.0
113+
uses: tibdex/github-app-token@v1
114114
with:
115115
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
116116
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}

.github/workflows/test_integration.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Get GitHub App token
3535
if: github.event_name == 'pull_request'
3636
id: get_token
37-
uses: tibdex/github-app-token@v1.3.0
37+
uses: tibdex/github-app-token@v1
3838
with:
3939
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
4040
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
@@ -57,10 +57,10 @@ jobs:
5757
run: npx @datadog/datadog-ci git-metadata upload
5858
env:
5959
DATADOG_API_KEY: ${{ secrets.DD_API_KEY }}
60-
- name: Set up Python 3.8
60+
- name: Set up Python 3.10
6161
uses: actions/setup-python@v2
6262
with:
63-
python-version: 3.8
63+
python-version: "3.10"
6464
- name: Upgrade pip
6565
run: |
6666
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)