Skip to content

Commit cca52b4

Browse files
committed
Chore: Minor updates for releasing v4
1 parent 6b2f4c2 commit cca52b4

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.github/workflows/CoverallsReport.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ jobs:
1212

1313
runs-on: ubuntu-latest
1414

15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
include:
19-
- ideaVersion: 2024.1
20-
2115
steps:
2216
- uses: actions/checkout@v2
2317
- name: Set up JDK 17
@@ -29,7 +23,7 @@ jobs:
2923
run: chmod +x gradlew
3024
- name: Build with Gradle
3125
env:
32-
IDEA_VERSION: ${{ matrix.ideaVersion }}
26+
IDEA_VERSION: 2024.1
3327
run: xvfb-run ./gradlew test
3428
- name: Coveralls
3529
uses: coverallsapp/[email protected]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Plugin version](https://img.shields.io/jetbrains/plugin/d/10037-csv-plugin.svg)](https://plugins.jetbrains.com/plugin/10037-csv-plugin)
22
[![Build Action Status](https://github.com/SeeSharpSoft/intellij-csv-validator/actions/workflows/CIBuild.yml/badge.svg)](https://github.com/SeeSharpSoft/intellij-csv-validator/actions)
33
[![EAP Status](https://github.com/SeeSharpSoft/intellij-csv-validator/actions/workflows/CronEAP.yml/badge.svg)](https://github.com/SeeSharpSoft/intellij-csv-validator/actions)
4-
[![Coverage Status](https://coveralls.io/repos/github/SeeSharpSoft/intellij-csv-validator/badge.svg?branch=master)](https://coveralls.io/github/SeeSharpSoft/intellij-csv-validator?branch=main)
4+
[![Coverage Status](https://coveralls.io/repos/github/SeeSharpSoft/intellij-csv-validator/badge.svg?branch=main)](https://coveralls.io/github/SeeSharpSoft/intellij-csv-validator?branch=main)
55
[![Known Vulnerabilities](https://snyk.io/test/github/SeeSharpSoft/intellij-csv-validator/badge.svg?targetFile=build.gradle)](https://snyk.io/test/github/SeeSharpSoft/intellij-csv-validator?targetFile=build.gradle)
66
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/97769359388e44bfb7101346d510fccf)](https://www.codacy.com/gh/SeeSharpSoft/intellij-csv-validator/dashboard?utm_source=github.com&utm_medium=referral&utm_content=SeeSharpSoft/intellij-csv-validator&utm_campaign=Badge_Grade)
77

@@ -30,15 +30,15 @@ This enables default editor features like syntax validation, highlighting and in
3030
- support for line comments (# per default, customizable)
3131
- tab (↹) separator highlighting
3232

33-
(see [full changelog](./CHANGELOG))
33+
(see [full changelog](./CHANGELOG.md))
3434

3535
**NOTE**
3636

3737
Release 4.* is focusing on text-editor features.
3838
Text-editor is the default editor (again).
3939
It requires IntelliJ platform version 2024.1 or newer.
4040

41-
The previous version (incl README) can still be accessed [here](https://github.com/SeeSharpSoft/intellij-csv-validator/tree/release_2) and installed manually (see section [Installation](https://github.com/SeeSharpSoft/intellij-csv-validator#installation)).
41+
Previous versions (incl README) can still be accessed and installed manually (see section [Installation](https://github.com/SeeSharpSoft/intellij-csv-validator#installation)).
4242

4343
### Syntax parser & validation
4444

src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvGithubIssueSubmitter.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.jetbrains.plugins.github.api.data.GithubResponsePage;
2020
import org.jetbrains.plugins.github.api.data.GithubSearchedIssue;
2121
import org.jetbrains.plugins.github.api.data.request.GithubRequestPagination;
22+
import org.jetbrains.plugins.github.authentication.GHAccountAuthData;
2223
import org.jetbrains.plugins.github.authentication.GHAccountsUtil;
2324
import org.jetbrains.plugins.github.authentication.accounts.GithubAccount;
2425
import org.jetbrains.plugins.github.util.GHCompatibilityUtil;
@@ -81,7 +82,13 @@ protected boolean reportWasRecentlySent() {
8182

8283
protected boolean submit(IdeaLoggingEvent event, String additionalInfo, Project project, Consumer<? super SubmittedReportInfo> consumer) {
8384
GithubAccount account = GHAccountsUtil.getSingleOrDefaultAccount(project);
84-
if (account == null) return false;
85+
if (account == null) {
86+
GHAccountAuthData accountData = GHAccountsUtil.requestNewAccount(project);
87+
if (accountData == null) {
88+
return false;
89+
}
90+
account = accountData.getAccount();
91+
}
8592
String token = GHCompatibilityUtil.getOrRequestToken(account, project);
8693
if (token == null) return false;
8794

0 commit comments

Comments
 (0)