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

Add support for Gitea Actions #148

Merged
merged 4 commits into from Jun 28, 2023
Merged

Add support for Gitea Actions #148

merged 4 commits into from Jun 28, 2023

Conversation

silverwind
Copy link
Contributor

@silverwind silverwind commented Jun 18, 2023

Add support for Gitea Actions.

Both GITHUB_ACTIONS and GITEA_ACTIONS are present, with the former being a compatibilty solution, the latter is the true identifier.

It supports 16 colors and true color, but not 256 color currently. I plan to fix 256 color and will follow up here once it's done.

@silverwind
Copy link
Contributor Author

The xo failure seems unrelated.

@silverwind
Copy link
Contributor Author

silverwind commented Jun 20, 2023

go-gitea/gitea#25401 adds 256 color support so now full 16m color is supported and the condition is simplified.

@silverwind
Copy link
Contributor Author

Tried updating xo, and that seems to at least not make it crash anymore. Locally it outputs a number of issues. All are unrelated to this PR:

  index.js:60:1
  ⚠  60:1   Function _supportsColor has a complexity of 37. Maximum allowed is 20.                            complexity

  test.js:24:1
  ⚠  24:1   Unexpected fixme comment: FIXME.                                                                  no-warning-comments

  index.d.ts:3:18
  ✖   3:18  Use a type instead of an interface.                                                               @typescript-eslint/consistent-type-definitions
  ✖  24:18  Use a type instead of an interface.                                                               @typescript-eslint/consistent-type-definitions

  browser.js:6:12
  ✖   6:12  Optional chainings are not supported until Node.js 14.0.0. The configured version range is >=12.  n/no-unsupported-features/es-syntax

  index.test-d.ts:3:1
  ✖   3:1   Imports "Options" and "ColorInfo" are only used as types.                                         @typescript-eslint/consistent-type-imports

@sindresorhus sindresorhus merged commit 038b21a into chalk:main Jun 28, 2023
3 checks passed
@sindresorhus
Copy link
Member

@silverwind
Copy link
Contributor Author

Sure, I can try.

@silverwind
Copy link
Contributor Author

chalk/chalk#603 for vendor update in chalk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants