Skip to content

Commit

Permalink
Fix gitlab token error labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Feb 1, 2022
1 parent 9d1afdd commit 284f226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l

- Fixes
- Remove extraheader in git repo when using Azure Pipelines ([#1125](https://github.com/megalinter/megalinter/issues/1125))
- Fix gitlab token error message ([#1228](https://github.com/megalinter/megalinter/issues/1228))

- Linter versions upgrades
- [markdown-table-formatter](https://www.npmjs.com/package/markdown-table-formatter) from 1.2.0 to **1.3.0** on 2022-01-31
Expand Down
4 changes: 2 additions & 2 deletions megalinter/reporters/GitlabCommentReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def produce_report(self):
)
except gitlab.GitlabError as e:
logging.warning(
"[GitHub Comment Reporter] Unable to post merge request comment"
"[Gitlab Comment Reporter] Unable to post merge request comment"
)
self.display_auth_error(e)
except Exception as e:
Expand All @@ -138,6 +138,6 @@ def produce_report(self):
def display_auth_error(self, e):
logging.error(
"[Gitlab Comment Reporter] You may need to define a masked Gitlab CI/CD variable "
"MEGALINTER_ACCESS_TOKEN containing a personal token with scope 'api'\n"
"MEGALINTER_ACCESS_TOKEN containing a personal token with scope 'api'\n (if already defined, your token is probably invalid)"
+ str(e)
)

0 comments on commit 284f226

Please sign in to comment.