Skip to content

Commit

Permalink
switch control to chronus (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored Apr 17, 2024
1 parent 0d48590 commit 34f87a3
Show file tree
Hide file tree
Showing 8 changed files with 1,140 additions and 733 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/few-poets-call.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/little-masks-grin.md

This file was deleted.

50 changes: 50 additions & 0 deletions .chronus/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
baseBranch: main

changeKinds:
internal:
versionType: none
title: Internal
description: Internal changes that are not user facing

fix:
versionType: patch
title: Bug Fix
description: Fixes to existing features

dependencies:
versionType: patch
title: Bump dependencies
description: Bumps dependencies

feature:
versionType: minor
title: Feature
description: Adds new features

deprecation:
versionType: minor
title: Deprecation
description: Change that deprecate an existing feature but is not breaking.

breaking:
versionType: major
title: Breaking Change
description: Changes that break existing features

versionPolicies:
- name: python-generator
type: lockstep
step: minor
packages:
- "@azure-tools/typespec-python"
- "@autorest/python"

changelog: ["@chronus/github/changelog", { repo: "azure/autorest.python" }]

ignore:
- "@typespec/*"

changedFiles:
- "!**/*.md"
- "!**/*.test.ts"
- "!**/test_*.py"
28 changes: 28 additions & 0 deletions eng/pipelines/pr_tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PR Tools
trigger: none
pr:
- providerhub
- release/*

extends:
template: /eng/pipelines/templates/1es-redirect.yml
parameters:
variables:
- template: /eng/pipelines/templates/variables/globals.yml@self
stages:
- stage: change_comment
jobs:
- job: change_comment
displayName: Describe changes on PR
condition: and(succeeded(), eq(startsWith(variables['System.PullRequest.SourceBranch'], 'publish/'), false))
pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux
steps:
- checkout: self

- script: npx -p @chronus/github-pr-commenter@0.4.0 chronus-github-pr-commenter verify
displayName: Make comment about changes
env:
GITHUB_TOKEN: $(azuresdk-github-pat)
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"format": "npx prettier **/*.ts --write",
"check-format": "npx prettier **/*.ts --check --end-of-line auto",
"check-version-mismatch": "syncpack list-mismatches --types prod,peer",
"fix-version-mismatch": "syncpack fix-mismatches"
"fix-version-mismatch": "syncpack fix-mismatches",
"change": "chronus"
},
"engines": {
"node": ">=16.0.0",
Expand All @@ -33,7 +34,8 @@
"homepage": "https://github.com/Azure/autorest.python#readme",
"devDependencies": {
"@azure-tools/cadl-ranch": "~0.12.7",
"@changesets/cli": "^2.27.1",
"@chronus/chronus": "^0.10.1",
"@chronus/github": "^0.3.2",
"@typespec/prettier-plugin-typespec": "~0.55.0",
"autorest": "3.6.3",
"eslint": "^8.57.0",
Expand Down
Loading

0 comments on commit 34f87a3

Please sign in to comment.