-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from MobileTeleSystems/develop
[DOP-14482] - release 0.1.5 version
- Loading branch information
Showing
33 changed files
with
787 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Set update schedule for GitHub Actions | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
labels: | ||
- type:ci | ||
# https://til.simonwillison.net/github/dependabot-python-setup | ||
groups: | ||
github-actions: | ||
patterns: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# config for https://github.com/marketplace/actions/github-labeler | ||
|
||
- name: attention:help wanted | ||
description: Extra attention is needed | ||
color: bfdadc | ||
from_name: help wanted | ||
|
||
- name: attention:invalid | ||
description: This doesn't seem right | ||
color: ea2357 | ||
from_name: invalid | ||
|
||
- name: ci:skip-changelog | ||
description: Add this label to skip changelog file check | ||
color: 04990f | ||
|
||
- name: kind:bug | ||
description: Something isn't working | ||
color: d73a4a | ||
from_name: bug | ||
|
||
- name: kind:feature | ||
description: New feature or request | ||
color: 389a3f | ||
|
||
- name: kind:improvement | ||
description: Improvement of some existing feature | ||
color: 1a92c2 | ||
from_name: enhancement | ||
|
||
- name: kind:question | ||
description: Further information is requested | ||
color: 0e857c | ||
from_name: question | ||
|
||
- name: resolution:duplicate | ||
description: This issue or pull request already exists | ||
color: cfd3d7 | ||
from_name: duplicate | ||
|
||
- name: resolution:wontfix | ||
description: This will not be worked on | ||
color: ec103b | ||
from_name: wontfix | ||
|
||
- name: type:ci | ||
description: CI-related changes | ||
color: cdb0bd | ||
|
||
- name: type:dependency | ||
description: Dependency-related changes | ||
color: 214efe | ||
|
||
- name: type:documentation | ||
description: Improvements or additions to documentation | ||
color: 6b9f54 | ||
from_name: documentation | ||
|
||
- name: type:tests | ||
description: Tests-related changes | ||
color: 5cca5b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Automerge | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
automerge: | ||
name: Enable pull request automerge | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.user.login == 'pre-commit-ci[bot]' || github.event.pull_request.user.login == 'dependabot[bot]' | ||
|
||
steps: | ||
- uses: alexwilson/[email protected] | ||
with: | ||
github-token: ${{ secrets.AUTOMERGE_TOKEN }} | ||
merge-method: REBASE | ||
|
||
autoapprove: | ||
name: Automatically approve pull request | ||
needs: [automerge] | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.user.login == 'pre-commit-ci[bot]' || github.event.pull_request.user.login == 'dependabot[bot]' | ||
|
||
steps: | ||
- uses: hmarr/auto-approve-action@v4 | ||
with: | ||
github-token: ${{ secrets.AUTOMERGE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Changelog | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, labeled, unlabeled, reopened] | ||
branches-ignore: | ||
- master | ||
|
||
env: | ||
DEFAULT_PYTHON: '3.12' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check-changelog: | ||
name: Changelog Entry Check | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
if: "!contains(github.event.pull_request.labels.*.name, 'ci:skip-changelog') && github.event.pull_request.user.login != 'pre-commit-ci[bot]' && github.event.pull_request.user.login != 'dependabot[bot]'" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-python-${{ env.DEFAULT_PYTHON }}-changelog-${{ hashFiles('requirements/core.txt', 'requirements/docs.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-python-${{ env.DEFAULT_PYTHON }}-changelog-${{ hashFiles('requirements/core.txt', 'requirements/docs.txt') }} | ||
${{ runner.os }}-python-${{ env.DEFAULT_PYTHON }}-changelog- | ||
- name: Upgrade pip | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -I -r requirements.txt -r requirements-docs.txt | ||
- name: Check changelog entry exists | ||
run: | | ||
if [ ! -s docs/changelog/next_release/${{ github.event.pull_request.number }}.*.rst ]; then | ||
echo "Please add corresponding file 'docs/changelog/next_release/<issue number>.<change type>.rst' with changes description" | ||
exit 1 | ||
fi | ||
- name: Validate changelog | ||
run: | | ||
# Fetch the pull request' base branch so towncrier will be able to | ||
# compare the current branch with the base branch. | ||
git fetch --no-tags origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }} | ||
towncrier check --compare-with origin/${{ github.base_ref }} | ||
towncrier --draft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Repo labels sync | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- .github/labels.yml | ||
- .github/workflows/repo-labels-sync.yml | ||
pull_request: | ||
paths: | ||
- .github/labels.yml | ||
- .github/workflows/repo-labels-sync.yml | ||
|
||
jobs: | ||
labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Labeler | ||
uses: crazy-max/ghaction-github-labeler@v5 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
yaml-file: .github/labels.yml | ||
dry-run: ${{ github.event_name == 'pull_request' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.