forked from microsoft/vscode-black-formatter
-
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.
Update black formatter extension to latest extension template. (micro…
…soft#108) * Update github actions * Update launch.json * Update build yml * Update python code. * Update packages. * Add language translation to webpack. * rename bundled path to tool. * Update nox build support functions * Update packages. * Restore flake8 linting * Update typescript code * Update python test code. * Fix multi python tests. * Fix tests. * Update package json * Update readme * Clean up logging.
- Loading branch information
1 parent
cf05523
commit d95c51d
Showing
36 changed files
with
2,818 additions
and
979 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
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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- 'skip news' | ||
- 'no-changelog' | ||
|
||
categories: | ||
- title: Bug Fixes | ||
labels: | ||
- 'bug' | ||
- 'news' | ||
|
||
- title: Enhancements | ||
labels: | ||
- 'feature-request' | ||
- 'news' | ||
|
||
- title: Bug Fixes | ||
labels: | ||
- 'bug' | ||
|
||
- title: Code Health | ||
labels: | ||
- 'debt' | ||
- 'news' |
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 |
---|---|---|
@@ -1,40 +1,21 @@ | ||
name: PR labels | ||
|
||
name: 'PR labels' | ||
on: | ||
pull_request: | ||
types: ['opened', 'reopened', 'synchronize', 'labeled', 'unlabeled'] | ||
|
||
permissions: | ||
pull-requests: write | ||
types: | ||
- 'opened' | ||
- 'reopened' | ||
- 'labeled' | ||
- 'unlabeled' | ||
- 'synchronize' | ||
|
||
jobs: | ||
# From https://github.com/marketplace/actions/github-script#apply-a-label-to-an-issue. | ||
add-pr-label: | ||
name: 'Ensure Required Labels' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
- name: 'PR impact specified' | ||
uses: mheap/github-action-required-labels@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const result = await github.rest.pulls.get({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.issue.number, | ||
}) | ||
const labels = result.data.labels.map((label) => label.name) | ||
const hasNewsLabels = labels.some((label) => label === 'news' || label === 'skip news' ) | ||
if (hasNewsLabels) { | ||
console.log('This PR has the required "news" or "skip news" labels.') | ||
} else { | ||
core.setFailed('Please add "news" or "skip news" labels to the PR.') | ||
} | ||
const hasLabels = labels.some((label) => label === 'bug' || label === 'feature-request' || label === 'debt' ) | ||
if (hasLabels) { | ||
console.log('This PR has the required "bug", "feature-request" or "debt" labels.') | ||
} else { | ||
core.setFailed('Please add "bug", "feature-request" or "debt" labels to the PR.') | ||
} | ||
mode: exactly | ||
count: 1 | ||
labels: 'bug, debt, feature-request, no-changelog' |
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
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
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.