Commit Graph

560 Commits (269ec03957b71c85601deca47e3acb4b7a9d5827)

Author SHA1 Message Date
Jonathan Chang 5d35fe1f38 workflows: don't use Docker container 2020-04-19 22:43:05 +10:00
Issy Long 052d729e64
publish-commit-bottles: Fix bug with error message syntax from #53098 (#53104)
- I tried to be too clever. Given that I don't know JS, that was a bad
  idea. Let's do this the less elegant but (hopefully) definitely
  working way to avoid cryptic errors like:

```
[error]Cookies must be enabled to use GitHub.
```

from [`pr-publish` Actions runs](https://github.com/Homebrew/homebrew-core/runs/583194836?check_suite_focus=true).
2020-04-13 18:09:24 +01:00
Issy Long cbc4461925
publish-commit-bottles: Improve linking in "merge triggered/failed" messages (#53098)
- It was probably not entirely clear to users what "bottle pull" meant.
- We can use Markdown style links to make the message shorter.
- Tested in a browser with `console.log()` as that's as far as my JS
  goes!
2020-04-13 17:33:27 +01:00
Mike McQuaid 06a8b116f1 workflows/tests: make consistent with Homebrew/brew.
Make more of the logic consistent with what Homebrew/brew's GitHub
Actions' configuration does.
2020-04-13 11:31:58 +01:00
Issy Long c1c9fe85bc
publish-commit-bottles: Comment on a PR when someone triggers the Action (#53002)
- I went to do my first `brew pr-publish` on a "ready to merge" PR and
  it failed, because @dawidd6 had already started.
- We can't expect maintainers to pick through the Actions UI to find
  existing Actions that are running for the formula - the UI isn't
  that good.
- So this adds a comment to the PR, when the Action starts, to say who
  started it. It serves as a warning to other maintainers that it's in
  hand and to not try. Unless it fails for some reason.
2020-04-12 11:41:20 +01:00
Jonathan Chang 36497e0c51 workflows: update name to reflect migration 2020-04-11 18:37:12 +10:00
Sean Molenaar bbd457a944 Workflow: Set GITHUB_TOKEN variable 2020-04-09 18:25:51 +10:00
Jonathan Chang f34ce2de48 workflows: post comment on pr-publish failure 2020-04-08 20:03:38 +01:00
Bo Anderson 26f20caec7 workflows/tests: update Homebrew before running 2020-04-04 16:01:25 +11:00
Bo Anderson c974d3d6af
workflows/tests: always upload bottles (#52431) 2020-04-02 10:09:45 +01:00
Dawid Dziurla 16722fb659
workflows: mount unzip from runner 2020-03-31 14:27:27 +02:00
Dawid Dziurla 087583d351
workflows: configure git for pull-pr 2020-03-31 14:26:41 +02:00
Dawid Dziurla 39cc29c9f7
workflows: verbose pull-pr 2020-03-31 13:52:28 +02:00
Dawid Dziurla e76a9e1153
workflows: install unzip
required by `brew pr-pull`
2020-03-31 13:42:11 +02:00
Dawid Dziurla bceaedeb7d
workflows: set HOMEBREW_GITHUB_API_TOKEN for pr-pull 2020-03-31 13:29:25 +02:00
Dawid Dziurla 1f14d3b40d
workflows: fix 2020-03-31 13:19:42 +02:00
Dawid Dziurla 14306c1a6a
workflows: use brew pr-pull (#52372) 2020-03-31 13:17:07 +02:00
Bo Anderson 24edab7e65
workflows/tests: don't fail fast (#52152) 2020-03-26 19:55:28 +11:00
Jonathan Chang 052a37f40d workflows: do full checkouts from the beginning 2020-03-22 21:03:57 +11:00
Jonathan Chang d323ccba87 workflows: fetch origin too 2020-03-22 20:58:03 +11:00
Jonathan Chang 9301a9e357 workflows: rebase against master 2020-03-22 20:55:24 +11:00
Jonathan Chang 205854f4db workflows: cd to correct repo 2020-03-22 20:44:45 +11:00
Jonathan Chang b32264669b workflows: also fetch master 2020-03-22 20:41:35 +11:00
Jonathan Chang aba0ab419f workflows: fetch HEAD commit 2020-03-22 20:36:52 +11:00
Jonathan Chang 1d74a0a1d9 workflows: fetch the pull request commit 2020-03-22 20:23:17 +11:00
Jonathan Chang ca2100f359 workflows: set timeout to 72 hours
This matches our current Jenkins configuration.
2020-03-22 15:15:34 +11:00
Jonathan Chang 2868560ecd workflows: fix git authentication
Populate the git checkout with BrewTestBot's personal access token
(in HOMEBREW_GITHUB_API_TOKEN), rather than github[bot]'s token. This
permits us to override the branch protection rule for our rebase
workflow.
2020-03-22 13:04:37 +11:00
Jonathan Chang 724fabcaaf workflows: remove testing lines 2020-03-22 02:56:38 +11:00
Jonathan Chang a9b5c45281 workflows: use literal newline 2020-03-22 02:49:12 +11:00
Jonathan Chang a84733a820 workflows: amend with close message and signoff 2020-03-22 02:31:09 +11:00
Jonathan Chang 7ce5cba08d workflows: rebase against origin/master
We're pushing to master so of course a rebase against master would
result in a no-op.
2020-03-22 01:55:18 +11:00
Jonathan Chang cd5943e51a workflows: use correct email 2020-03-22 01:45:52 +11:00
Jonathan Chang 34e5c38b16 workflows: don't rely on JSON returns 2020-03-22 01:42:24 +11:00
Jonathan Chang dcce4571e3 workflows: add debug information 2020-03-22 01:27:42 +11:00
Jonathan Chang 48dec09c4b workflow: temporarily tap test-bot repo 2020-03-22 00:10:38 +11:00
Jonathan Chang 66c20fbab8 workflows: checkout earlier in steps 2020-03-22 00:08:51 +11:00
Jonathan Chang 7f7942785a workflows: set up tap and test-bot changes 2020-03-22 00:05:56 +11:00
Jonathan Chang 1975b561eb workflows: fix commiter identification 2020-03-21 22:25:08 +11:00
Jonathan Chang 463c9984b2 workflows: emit more debugging information 2020-03-21 22:10:15 +11:00
Jonathan Chang 133951cad6 workflows: fix Bintray username 2020-03-21 19:58:37 +11:00
Jonathan Chang f2ac8550e3 workflows: clobber existing unpublished upload 2020-03-21 19:22:28 +11:00
Jonathan Chang 045f4a6231 workflows: cd from pwd 2020-03-21 19:07:57 +11:00
Jonathan Chang 1e890d98ce workflows: don't commit (for now) 2020-03-21 18:08:31 +11:00
Jonathan Chang 0be4876b74
workflows: add dispatch event to commit bottles (#51936) 2020-03-21 02:27:58 +11:00
Jonathan Chang 2575b61bb6
workflows: update for brew test-bot changes (#50620) 2020-03-11 00:52:42 +11:00
chenrui 68a7f98323
Update .github files to ref .github ones (#51328) 2020-03-08 15:30:41 -04:00
Mike McQuaid 8d4fa10423 GitHub Actions CI tweaks
- rename to `tests.yml` and `tests` job to be consistent with
  Homebrew/brew
- eventually name `GitHub Actions CI` to be consistent with
  Homebrew/brew but (for now) be `New CI Testing (Ignore Failures)` to
  avoid contributors being confused by failures.
- run on all pull requests
2020-03-02 12:50:21 +00:00
Jonathan Chang d0a1667529
workflows: add self-hosted bottling workflow (#50468) 2020-02-24 03:21:37 +11:00
Issy Long 232f4e1fdd
[Actions] Revert addition of auto-labeller action for `bottle :unneeded` (#48929)
- I forgot that GitHub doesn't support secrets in Actions from forked repos, [until there was a legitimate use case for adding a label](https://github.com/Homebrew/homebrew-core/pull/48927), so the action will fail:

```
/opt/hostedtoolcache/Ruby/2.6.3/x64/lib/ruby/gems/2.6.0/gems/octokit-4.15.0/lib/octokit/response/raise_error.rb:16:in `on_complete': POST https://api.github.com/repos/Homebrew/homebrew-core/issues/48927/labels: 403 - Resource not accessible by integration // See: https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue (Octokit::Forbidden)
```

- Given our PR workflow is "forked repo for everything", we can't do this until
  GitHub supports using secrets in forked PRs. It's a [requested
  feature](https://github.community/t5/GitHub-Actions/how-to-use-GITHUB-TOKEN-for-PRs-from-forks/td-p/37450).
- Maybe at some other point in the future, we can revisit this and other
  auto-labelling actions.
- I enjoyed making it nonetheless, and now I have "forked repos" to add to my
  testing for future Actions proof-of-concepts!

----

Reverts #48911 and supersedes #48919.
2020-01-12 17:41:47 +00:00
Issy Long db38f1e3e1
[Actions] Label PRs where the formula is `bottle :unneeded` (#48911)
- The vast majority of formulae here have bottles, but there are some
  that we can merge through the GitHub web UI buttons.
- Yes, we'll still check the diff of submitted formulae, but for those
  short on time, it might be good to know that we can review submissions
  and merge them on GitHub without having to be near a computer to pull
  the bottles.
- This was also a nice look into how we can potentially in future
  auto-label other conditions for formulae (new formula, test failure,
  etc).
2020-01-12 13:12:50 +00:00
Mike McQuaid 0486103e4e
.github/stale: add extend configuration.
This seems to be necessary for stalebot to behave as expected.
2020-01-02 09:36:16 +00:00
Issy Long 0e054fe558 git rm .github/issue-close-app.yml (#48039)
- We disabled the auto-close issue bot earlier this year, so we don't
  need these configs any more.
2019-12-19 20:04:25 +11:00
Mike McQuaid 9068085dd2
generate_formulae.brew.sh_data: fetch/rebase when needed.
Similar change to https://github.com/Homebrew/brew/pull/6791.
2019-12-02 13:22:51 +00:00
Mike McQuaid 047ce267b1 More issue template tweaks
Be more consistent between items and with Homebrew/brew.
2019-10-29 17:32:37 +00:00
Mike McQuaid 5c96f1b3d7 Issue template tweaks
More some stuff from the templates to the chooser and disable blank
issues.

See:
https://github.blog/changelog/2019-10-28-new-issue-template-configuration-options/
2019-10-29 16:13:35 +00:00
Cheng XU ecd943c2bd github action: only run in the main repo
This prevents the action being run in the fork, which
will generate errors due to missing token.
2019-10-02 23:36:37 +02:00
Eric Knibbe ab8015a4d8 Migrate data generation workflow to YAML (#44203) 2019-09-13 09:33:39 +01:00
Mike McQuaid a88c655906
Update issue-close-app.yml (#41322)
Clarify the wording while hopefully remaining friendly.
2019-06-25 19:07:11 +01:00
Mike McQuaid ef210630ba .github/issue-close-app: make message friendlier. (#41132)
This should hopefully make the experience a little more pleasant when users make an innocent mistake.
2019-06-19 18:55:27 +02:00
Sean Molenaar 406649d3d1 issue-close-app: only check issue for checkboxes (#40441) 2019-05-29 19:24:56 +02:00
Mike McQuaid 9b555bdd01
issue-close-app.yml: fix YAML syntax (again)
Use the correct multiline syntax.
2019-05-27 13:41:46 +01:00
Issy Long 818a78cd58 .github/issue-close-app: Fix YAML syntax (#40350)
According to the [README](https://github.com/offu/close-issue-app#usage) it was missing  an `issueConfigs` key. This was causing errors to be posted to new issues rather than the desired text.
2019-05-27 08:51:06 +01:00
Mike McQuaid 4079234670
github/issue-close-app: autoclose missing issue template. (#40317)
It's not a good use of maintainer time to handle these manually.
2019-05-25 13:10:51 +02:00
Mike McQuaid 51ad1ed299
.github/: defer to Homebrew/.github repo. (#40212)
This allows maintaining more settings in one place.
2019-05-23 10:11:45 +02:00
Mike McQuaid 13da06ef33
.github/main.workflow.sh: get latest homebrew-core (#38467) 2019-03-28 21:20:44 +00:00
Mike McQuaid 30a4e37629
.github/main.workflow.sh: exit cleanly on no changes (#38465) 2019-03-28 21:05:30 +00:00
Eric Knibbe 46ca97228a .github/main.workflow.sh: include added files for new formulae (#38460) 2019-03-28 20:50:56 +00:00
Eric Knibbe 199330b59a .github/main.workflow.sh: also push _data/analytics directory (#38147) 2019-03-27 14:26:22 +00:00
Jonathan Chang 9e26b050a2
ISSUE_TEMPLATE: update Linux issue location
It now lives at homebrew/linuxbrew-core.
2019-03-14 15:30:18 +11:00
Mike McQuaid e69b14cbd3
.github/main.workflow.sh: also commit formula directory. 2019-03-06 17:31:07 +00:00
Mike McQuaid 29e6b3f6a7
.github/main.workflow.sh: also update API. 2019-03-06 17:23:08 +00:00
Mike McQuaid 10bc77109a
Push to formulae.brew.sh with GitHub Actions (#37123)
Update formulae.brew.sh with GitHub Actions (and remove Travis CI). This removes the need for Travis CI for pushing changes to formulae.brew.sh and uses GitHub Actions instead.
2019-02-21 12:32:23 +00:00
Mike McQuaid 9f349ab6a9
Update main.workflow* (#37010) 2019-02-15 15:38:06 +00:00
Mike McQuaid 186a030501
main.workflow.sh: fix permissions. 2019-02-15 15:32:28 +00:00
Mike McQuaid 8003b5910a
Update main.workflow.sh
This should get feature parity with Travis CI bar analytics.
2019-02-15 15:07:34 +00:00
Mike McQuaid a807e991cd
Update GitHub Actions main.workflow (#36960) 2019-02-15 13:40:41 +00:00
Mike McQuaid f7e5f35765 Update formulae.brew.sh.workflow 2019-02-13 16:09:36 +00:00
Mike McQuaid f6cf53416d Deploy formulae.brew.sh changes with Actions
Try using GitHub Actions to replace https://github.com/Homebrew/homebrew-core/blob/master/.travis.yml
2019-02-13 16:09:36 +00:00
Mike McQuaid ecd2c4f05b
Add Linuxbrew documentation changes (#36422)
Note Linuxbrew/homebrew-core in the README and in the issue template.
2019-01-27 12:14:06 +00:00
Mike McQuaid 0de5e99130
Remove probot-move. (#35643)
This has been replaced with GitHub's beta feature.
2019-01-02 21:50:58 +00:00
Sumit Murari 9df2dee1fc PULL_REQUEST_TEMPLATE.md: update template (#35327) 2018-12-22 09:37:55 +01:00
Sean Molenaar 55727d2a4b Deny software requests in Bugreport template (#35192) 2018-12-17 19:24:46 +00:00
commitay f58b37306a
reproducible-bug-report: update cask url (#28293) 2018-05-26 19:46:38 +10:00
commitay 190235f4d3 reproducible-bug-report.md: update cask url (#27794) 2018-05-13 17:27:17 -07:00
commitay ae1dadaaf2 support probot: bugs only (#27684) 2018-05-10 02:51:43 -07:00
commitay f5d02871e0 issue_template.md: point questions to discourse (#27685) 2018-05-10 02:33:44 -07:00
Mike McQuaid e6c5264342 Use new ISSUE_TEMPLATEs
Use the new issue template format.
2018-05-08 19:41:20 -04:00
Mike McQuaid 9aa50fb9fc Add more Probots
We're already using the stale bot which seems to work quite well for us.
Let's also add:

- [No Response](https://probot.github.io/apps/no-response/) (replacing
[github-snooze-button](https://github.com/tdsmith/github-snooze-button))
- [Move Issues](https://probot.github.io/apps/move/)
- [Support Requests](https://probot.github.io/apps/support/)
- [Lock Threads](https://probot.github.io/apps/lock/)
2018-05-04 09:13:14 +01:00
Mike McQuaid b494d5a717 ISSUE_TEMPLATE: various updates.
Most notably: try to point people towards Discourse for non-bugs.
2018-02-13 09:28:28 +00:00
ilovezfs d275fde979 ISSUE_TEMPLATE: fix link to caskroom new issue 2017-10-06 07:05:20 -07:00
Mike McQuaid 459e0f3ac5 ISSUE_TEMPLATE: firm up language
Try to be even clearer that we need you to read this.
2017-08-24 11:48:27 +01:00
Mike McQuaid 392c977ce2 ISSUE_TEMPLATE: more tweaks.
- note we don't want cask issues here (again)
- harden closing issue without comment disclaimer
2017-06-16 16:31:34 +01:00
Mike McQuaid f038f9d405 ISSUE_TEMPLATE: tweak instructions.
- Note that Homebrew Cask issues should be filed elsewhere.
- Make `brew`/homebrew-core issue differential in simpler language
- Tell people to fix all `brew doctor` issues
- Refer to the issue checklist and make it even more clear and prominent
  that we may close it out immediately if they don't use it.

Fixes https://github.com/Homebrew/brew/issues/2608
2017-05-10 11:38:01 -05:00
Mike McQuaid 0e8c113400 Add probot-stale configuration. (#12091) 2017-04-05 09:15:38 +01:00
Mike McQuaid 8ceac96314 ISSUE_TEMPLATE: tweak instructions. (#11972)
* ISSUE_TEMPLATE: tweak instructions.

Be clearer about what's expected and where to file things.

* ISSUE_TEMPLATE: tweak new formula title.

* ISSUE_TEMPLATE: formula not formulae
2017-04-02 17:01:32 +01:00
Tej Chajed 53a4acf094 ISSUE_TEMPLATE: fix typo 2017-03-01 08:40:48 +01:00
Mike McQuaid 95256d78c3 ISSUE_TEMPLATE: request more specific information.
And note that we may close things without comment.

Closes #7912.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2016-12-16 17:32:50 +01:00
Mike McQuaid ff1fc077cb ISSUE_TEMPLATE: tweak based on recent issues. 2016-12-06 14:35:05 +00:00
Mike McQuaid bbe3376088 ISSUE_TEMPLATE: point people to the right repo. 2016-11-30 11:38:14 +00:00
mattdipasquale bf0cbceea2 Update Contributing documents
- Add `brew uninstall foo`
- Add `--build-from-source` to `brew install foo`
- Add `--new-formula` to `brew audit foo`

Closes #3872.
2016-10-15 12:24:19 +01:00
Mike McQuaid 37f8c5f736 Fix more CONTRIBUTING.md links. 2016-09-20 12:33:50 +01:00
Mike McQuaid 5a5b672682 CONTRIBUTING: move to repository root. 2016-09-20 11:52:35 +01:00
Zhiming Wang 3dc500b5c1 README and ISSUE_TEMPLATE: quote $(brew --repo) (#4580)
Always a good idea to quote command substitution.
2016-09-08 06:08:35 -04:00
Catherine Ball ca507fe09f Updated ; with && in brew update fix to improve safety. (#4255) 2016-08-26 16:41:20 -07:00
Mike McQuaid 14790e3b57 Tell people about update bug in README/issue template. 2016-08-18 19:47:44 +01:00
Mike McQuaid 6fc6420a44 PULL_REQUEST_TEMPLATE: point to --new-formula. 2016-08-15 18:30:26 +01:00
Andrew Janke 08ecb75f9e PR template: use HR to separate checklist from body 2016-05-03 00:31:37 -04:00
Andrew Janke 64d463fbe9 PR template: do install before audit
This new order matches the order in the test-bot process, and allows
audit to catch issues with file installation locations, which require
the formula to be installed.

Closes #476.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-20 22:43:26 -04:00
Mike McQuaid 82dbbfb4b1 Update documentation after repository split. 2016-04-03 13:48:24 +01:00
Andrew Janke 51800ddecb Add .github template files 2016-04-03 12:59:20 +01:00