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

feat(manager): add bitrise manager #30256

Merged
merged 16 commits into from
Jul 26, 2024
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
add doc and naming suggestions
secustor committed Jul 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 71d81c4a54210327a4ee7d01352d2c7a9d0aa433
6 changes: 3 additions & 3 deletions lib/modules/datasource/bitrise/index.spec.ts
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ describe('modules/datasource/bitrise/index', () => {
).resolves.toBeNull();
});

it('support GHE api url', async () => {
it('support GitHub Enterprise API URL', async () => {
httpMock
.scope(
'https://github.mycompany.com/api/v3/repos/foo/bar/contents/steps',
@@ -60,7 +60,7 @@ describe('modules/datasource/bitrise/index', () => {
});
});

it('returns version and filter out asset folder', async () => {
it('returns version and filters out the asset folder', async () => {
httpMock
.scope(
'https://api.github.com/repos/bitrise-io/bitrise-steplib/contents/steps',
@@ -156,7 +156,7 @@ describe('modules/datasource/bitrise/index', () => {
).resolves.toBeNull();
});

it('returns null if there is an unexpected format a package', async () => {
it('returns null if the package has an unexpected format', async () => {
httpMock
.scope(
'https://api.github.com/repos/bitrise-io/bitrise-steplib/contents/steps',
12 changes: 8 additions & 4 deletions lib/modules/datasource/bitrise/readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
This datasource allows to fetch Bitrise steps from Git repositories.
Renovate uses this datasource to fetch Bitrise steps from GitHub repositories.

**Currently only Github is support**
| Renovate field | What value to use? |
| -------------- | --------------------------------------- |
| `packageName` | Name of the Bitrise step |
| `registryUrl` | GitHub HTTP Git URL, as used by Bitrise |

As `packageName` the step name expected e.g. for the following snippet the `packageName` would be `script`.
For example, in the YAML snippet below:

`registryUrl` expects a GitHub HTTP Git Url as used below by Bitrise. See the `default_step_lib_source` field for an example.
- `packageName` is `script`
- `registryUrl` is `https://github.com/bitrise-io/bitrise-steplib.git`

```yaml
format_version: 11