This Probot checks changes to packages.json to ensure that URL schemes match intended pattern and that forks are referenced with a tag, instead of a branch
Go to file
Jakub Sokołowski 8e6e2152ba accept URLs with long Git tag refs
Extends `urlRegex` to accept tags specified with full `refs/tags/*` format.
Note the use of `?:` part to make the group not present in the `matche` list.

The need to reference Git tags with `refs/tags/` prefix is caused by
changes in how Nix `2.4` and newer versions handle Git tags. They expect
tags without full name to be branches, which fails with:
```
fatal: couldn't find remote ref refs/heads/v2.0.3-status-v6
error: program 'git' failed with exit code 128
```

Issue: https://github.com/status-im/status-react/issues/12832
PR: https://github.com/status-im/status-react/pull/12980

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-01-11 16:19:56 +01:00
.vscode Fix exception after updating check run 2019-01-25 10:27:57 +01:00
scripts Migrate to TypeScript to avoid silent errors and improve debugging 2019-01-17 19:23:58 +01:00
src accept URLs with long Git tag refs 2022-01-11 16:19:56 +01:00
test Fix exception after updating check run 2019-01-25 10:27:57 +01:00
.env.example Initial commit 2019-01-16 22:30:39 +01:00
.gitignore Switch linter to tslint 2019-01-20 22:05:53 +01:00
.travis.yml Initial commit 2019-01-16 22:30:39 +01:00
CODE_OF_CONDUCT.md Initial commit 2019-01-16 22:30:39 +01:00
CONTRIBUTING.md Switch linter to tslint 2019-01-20 22:05:53 +01:00
LICENSE Minor changes 2019-01-22 17:28:38 +01:00
README.md Minor changes 2019-01-22 17:28:38 +01:00
app.yml Minor cleanup 2019-01-17 13:34:06 +01:00
jest.config.js Migrate to TypeScript to avoid silent errors and improve debugging 2019-01-17 19:23:58 +01:00
nodemon.json Migrate to TypeScript to avoid silent errors and improve debugging 2019-01-17 19:23:58 +01:00
package.json upgrade Node dependencies, including typescript 2022-01-11 16:19:56 +01:00
tsconfig.json Switch linter to tslint 2019-01-20 22:05:53 +01:00
tslint.json Switch linter to tslint 2019-01-20 22:05:53 +01:00
yarn.lock upgrade Node dependencies, including typescript 2022-01-11 16:19:56 +01:00

README.md

packages-check-bot

A GitHub App built with Probot that checks changes to packages.json to ensure that URL schemes match intended pattern and that forks are referenced with a tag, instead of a branch.

Setup

# Install dependencies
yarn install

# Run the bot
yarn start

Contributing

If you have suggestions for how packages-check-bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2019 Status.im pombeirp@users.noreply.github.com (https://status.im)