Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Adds workflows for PR checks and release #485

Merged
merged 34 commits into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f31ed6e
chore: manually run eslint & prettier
metacurb Mar 30, 2024
a26b31b
chore: Updates prettier task
metacurb Mar 30, 2024
ccb9476
chore: try marketplace action
metacurb Mar 30, 2024
e0ed767
chore: fix eslint and prettier, add tsc
metacurb Mar 30, 2024
caa4db7
chore: exclude .github dir from eslint and prettier
metacurb Mar 30, 2024
163c8cb
chore: updates package.json
metacurb Mar 30, 2024
1648a9a
chore: fix?
metacurb Mar 30, 2024
bc3737d
chore: adds build check
metacurb Mar 30, 2024
485eecd
chore: remove space?
metacurb Mar 30, 2024
c9afaad
chore: tidy up
metacurb Mar 30, 2024
2d1cbd5
chore: test publishing to vs code marketplace
metacurb Mar 30, 2024
961f06b
chore: test build package
metacurb Mar 30, 2024
28a7772
chore: package
metacurb Mar 30, 2024
9400fd5
chore: oops
metacurb Mar 30, 2024
466c310
cmon
metacurb Mar 30, 2024
65dd096
pls
metacurb Mar 30, 2024
2b5a34d
yup
metacurb Mar 30, 2024
3af5494
add
metacurb Mar 30, 2024
541ff5b
list
metacurb Mar 30, 2024
8eb91fb
rec
metacurb Mar 30, 2024
d1b90ad
define icon properly
metacurb Mar 30, 2024
53a13c3
bingo
metacurb Mar 30, 2024
bbbb5b3
testing
metacurb Mar 30, 2024
979f6fc
test again
metacurb Mar 30, 2024
0459422
remove if
metacurb Mar 30, 2024
b360948
configure release
metacurb Mar 30, 2024
42c1ac3
hmm
metacurb Mar 30, 2024
e30a4f9
final test
metacurb Mar 30, 2024
d87bfc4
ok
metacurb Mar 30, 2024
55fb554
test?
metacurb Mar 30, 2024
4ea6f5a
final test
metacurb Mar 30, 2024
dcd759f
chore: sets up release workflow
metacurb Mar 31, 2024
972a014
chore: clean up readme and changelog
metacurb Mar 31, 2024
26080fa
update readme
metacurb Mar 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"unused-imports/no-unused-imports": "error",
"no-console": "error"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
"ignorePatterns": ["out", "dist", "**/*.d.ts", ".github"]
}
56 changes: 30 additions & 26 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
name: Lint
name: Linting

on:
push:
branches:
- master
pull_request:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master

permissions:
checks: write
contents: write
checks: write
contents: write

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3
steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Node.js dependencies
run: npm ci
- name: Install Node.js dependencies
run: npm ci

- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_auto_fix: true
eslint_extensions: ts
prettier: true
prettier_auto_fix: true
tsc: true
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on: workflow_dispatch

permissions:
contents: read

jobs:
run-release:
name: Run release
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Node.js dependencies
run: npm ci

- name: Package VS Code extension
id: package
uses: nhedger/package-vscode-extension@v1

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Ignore artifacts:
.github
build
coverage
dist
out
img
img
out
64 changes: 48 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,84 @@

All notable changes to the "blamer-vs" extension will be documented in this file.

## 0.6.0
## [0.6.0] - 2024-03-28

### Changed

- Major refactor & update of the codebase

### Added

- Introduces auto-blame - blame files as you open them
- Adds configuration option to disable fetching logs. Blame will still work as usual
- Fixes bug where revision is not set, blamer would fail
- Adds a toggle command - toggle between showing and clearing blame
- Appends blame to the line when clicked, a-la gitlens

## 0.5.2
### Fixed

- Fixes bug where revision is not set, blamer would fail

## [0.5.2] - 2019-12-10

### Fixed

- Fixed a bug where the commit author disappeared

## 0.5.1
## [0.5.1] - 2019-11-20

### Changed

- Handle cases where author metadata is missing
- Use spawn instead of exec
- Dependency updates

## 0.5.0
## [0.5.0] - 2019-05-30

### Added

- Mac blame shortcut added
- Setting added to toggle visual indicators

### Changed

- Better error handling, blame indicator in workbench

## 0.4.0
## [0.4.0] - 2018-08-17

### Added

- Revision number added to tooltips

## 0.3.2
## [0.3.2] - 2018-07-25

### Fixed

- Decoration issues causing characters to show incorrectly depending on the language

## [0.3.1] - 2018-06-28

### Fixed

- Formatting error in decoration caused by conflict with `mailto:`

## [0.3.0] - 2018-06-28

### Added

- Fixed decoration issue causing characters to show incorrectly depending on the language
- Linux support

## 0.3.1
## [0.2.0] - 2017-10-24

- Removed formatting error in decoration caused by conflict with `mailto:`
### Added

## 0.3.0
- Keyboard shortcut

- Linux support was added.
### Fixed

## 0.2.0
- Readme typo

- Added keyboard shortcut
- Fixed readme typo
## [0.1.0] - 2017-10-21

## 0.1.0
### Added

- Initial release
70 changes: 5 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
A Visual Studio Code extension to SVN blame files.
When run, this extension will place an icon next to each line of your file. Each differently-coloured icon means a different revision. Hovering a line will display a tooltip, showing the committer, date, and message. Blame data will also display inline.

https://github.com/BeauAgst/blamer-vs/assets/10343831/e1512c76-4388-490d-b67e-fc56c77e2b4b
![](/marketplace/example.gif)

## Requirements

Expand Down Expand Up @@ -40,70 +40,10 @@ This extension contributes the following commands to the Command palette.

## Known Issues

- Causes slowdown when the "**Enable Details**" setting is enabled because all unique logs have to be retrieved first. ([#3](/../../issues/3))
- Authentication errors [#5](/../../issues/5), [#9](/../../issues/9)
- Causes slowdown when the "**Enable Details**" setting is enabled because all unique logs have to be retrieved first.
- Authentication errors [#5](https://github.com/BeauAgst/svn-blamer/issues/5)

## Feedback & Contributing

Please report any bugs, suggestions or documentation requests via [issues](/../../issues)
Feel free to submit [pull requests](/../../pulls)

## TODO

- Automate release flow
- Tests pass
- https://github.com/marketplace/actions/gh-release
- https://github.com/marketplace/actions/vsix-publisher

## Release Notes

## 0.6.0

- Major refactor & update of the codebase
- Introduces auto-blame - blame files as you open them
- Adds configuration option to disable fetching logs. Blame will still work as usual [#77](/../../issues/77) [#471](/../../issues/471)
- Fixes bug where revision is not set, blamer would fail [#470](/../../issues/470)
- Adds a toggle command - toggle between showing and clearing blame [#71](/../../issues/71) [#88](/../../issues/88)
- Appends blame to the line when clicked, a-la gitlens [#327](/../../issues/327)

## 0.5.2

- Fixed a bug where the commit author disappeared

## 0.5.1

- Handle cases where author metadata is missing [#53](/../../issues/53)
- Use spawn instead of exec [#53](/../../issues/53)
- Dependency updates

## 0.5.0

- Mac blame shortcut added
- Setting added to toggle visual indicator visibility [#10](/../../issues/10)
- Better error handling, blame indicator in workbench [#3](/../../issues/3)

## 0.4.0

- Revision number added to tooltips [#7](/../../issues/7)

## 0.3.2

- Fixed decoration issue causing characters to show incorrectly depending on the language [#6](/../../issues/6)

## 0.3.1

- Removed formatting error in decoration caused by conflict with `mailto:`
- Added icon to extension

## 0.3.0

- Linux support was added. [#2](/../../issues/2)

## 0.2.0

- Added keyboard shortcut
- Fixed readme typo

## 0.1.0

- Initial release
Please report any bugs, suggestions or documentation requests via [issues](https://github.com/BeauAgst/svn-blamer/issues)
Feel free to submit [pull requests](https://github.com/BeauAgst/svn-blamer/pulls)
2 changes: 1 addition & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let ctx = await esbuild.context({
entryPoints: ["./src/extension.ts"],
external: ["vscode"],
format: "cjs",
logLevel: "info",
logLevel: "debug",
minify: process.argv.includes("--minify"),
outfile: "./dist/extension.js",
platform: "node",
Expand Down
Binary file added marketplace/example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/BeauAgst/blamer-vs/issues"
},
"homepage": "https://github.com/BeauAgst/blamer-vs",
"icon": "./dist/public/icon.png",
"icon": "dist/public/icon.png",
"engines": {
"vscode": "^1.87.0"
},
Expand Down Expand Up @@ -78,13 +78,11 @@
"scripts": {
"compile-tests": "tsc -p . --outDir out",
"esbuild": "node ./esbuild.config.mjs",
"eslint": "eslint src --ext ts",
"eslint:fix": "eslint src --ext ts --fix",
"lint": "npm run eslint && npm run prettier",
"package": "webpack --mode production --devtool hidden-source-map",
"format": "prettier --write --ignore-unknown .",
"lint:fix": "npm run lint -- --fix",
"lint": "eslint src --ext ts",
"prepare": "husky",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"prettier": "prettier --write --ignore-unknown .",
"test": "vscode-test",
"vscode:prepublish": "npm run esbuild -- --minify",
"watch-tests": "tsc -p . -w --outDir out",
Expand Down Expand Up @@ -118,8 +116,8 @@
},
"lint-staged": {
"**/*.{js,ts}": [
"prettier --write --ignore-unknown",
"eslint src --ext ts --fix"
"eslint src --ext ts --fix",
"prettier --cache --write --ignore-unknown"
]
}
}
Loading