Signal-iOS/.github
Evan Hahn 84ebba40a2 CI: only run precommit script for pull requests
According to [GitHub's docs][0], the `github.base_ref` property "is only
available when the event that triggers a workflow run is either
`pull_request` or `pull_request_target`.

Because of this, pushes were running the following command...

    python3 Scripts/precommit.py --ref origin/

...and getting this error:

    fatal: ambiguous argument 'origin/': unknown revision or path not in the working tree.

This has been broken for a long time, but it didn't cause CI to fail until
d7c33eb211.

After some discussion, we decided not to run these on pushes to `master`
or `release/*`.

(See also: [this GitHub issue][1] which asks for clarification.)

[0]: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
[1]: https://github.com/github/docs/issues/13810
2022-04-04 09:57:24 -05:00
..
ISSUE_TEMPLATE GitHub Issue config: sync changes from Signal-Android 2021-08-18 15:54:15 -07:00
workflows CI: only run precommit script for pull requests 2022-04-04 09:57:24 -05:00
FUNDING.yml Sync translations 2022-01-28 13:23:25 -08:00
PULL_REQUEST_TEMPLATE.md Update contributing.ms to use signal.org URLs; remove Bithub references (#2806) 2017-11-24 10:10:21 -08:00
stale.yml Add stale cleanup file 2022-01-10 10:50:09 -06:00