Commit graph

115 commits

Author SHA1 Message Date
Mike McNeil
d92e5df64c
Automation: Draft PRs now get #g-ceo label if appropriate (#13325)
Closes #13324

Previously, `expectedReviewers` were not built for draft PRs, (they were
left empty) which meant the code for determining whether a PR should get
the #g-ceo label didn't work for PRs that began their life as draft PRs.
2023-08-14 23:00:47 -05:00
Tim Lee
1a0186e0fd
Add mostlikelee to maintainers (#13185) 2023-08-07 12:47:20 -06:00
Isabell Reedy
ed121fcda8
Update received from github to add ireedy to new humans 2023-08-03 07:17:41 +09:30
Mike McNeil
b660c5a222
GitHub automation: Reduce logging (#12920)
- Smile at the log retention gods
- Plus fix a bug
2023-07-22 16:16:17 -05:00
Mike McNeil
55f6f8300b
Fix #g-ceo label attachment and simplify DRI auto-review-request logic (#12919)
- Fix #g-ceo label attachment
- Simplify DRI auto-review-request logic
2023-07-22 15:47:36 -05:00
Mike McNeil
6305cb18f8
Fix #g-ceo label management (#12918) 2023-07-22 14:57:45 -05:00
Mike McNeil
6460893a5c
Deduplicate config, auto-remove #g-ceo and #handbook labels when appropriate, improve comments (#12915)
- Deduplicate config for DRI vs CODEOWNERS (this eliminates extra
notifications folks were receiving)
- auto-remove #g-ceo and #handbook labels when appropriate
- improve comments
2023-07-22 14:07:54 -05:00
Mike McNeil
199dbf9211
Update logging in GitHub webhook (ensure we're reducing notifications) (#12913) 2023-07-22 11:50:26 -05:00
Mike McNeil
e591744b32
Remove accidental escalation of approval requests (#12911)
This fix reduces the extra approval requests that started appearing
recently for stuff like /imagine pages
2023-07-21 22:37:29 -05:00
Mike McNeil
5cfd2db4e2
GitHub automation: Listen for "synchronize" events (#12804) 2023-07-15 23:19:32 -05:00
Mike McNeil
33ae2dbc4a
Fix one more bug in github automation (#12801) 2023-07-15 22:49:32 -05:00
Mike McNeil
24d45c3316
Add in logs to see what's going on with ancestral paths (#12800) 2023-07-15 22:34:11 -05:00
Mike McNeil
9c11b43bce
GitHub automation: Correctly check author using lowercased version of… (#12795)
GitHub automation: Correctly check author using lowercased version of
github username
2023-07-15 22:06:06 -05:00
Mike McNeil
6aa57951f9
Properly handle PR edits even when the original PR author is the DRI (#12793) 2023-07-15 21:43:55 -05:00
Mike McNeil
9badb14d98
Fix flipped conditional in DRI auto-request logic (#12792) 2023-07-15 21:17:30 -05:00
Mike McNeil
bfb5fcc1ee
reevaluate and potentially request review from others when PR is edited (#12787)
- reevaluate and potentially request review from others when PR is
edit…ed
- plus two optimizations to avoid tricking/testing the github api with
duplicate reviewers and empty reviewers
2023-07-15 20:35:12 -05:00
Sampfluger88
0d93b9687b
Request review automatically for non-codeowners (#12786)
https://github.com/fleetdm/confidential/issues/3146

To test this works:
- sam should be able to change ceo handbook and be autoapproved
- mike submitting a PR to the ceo handbook should request review from
Sam but auto-approve for mike
- Jarod's use case of creating an article should now work, even if his
PR contains images

.

---------

Co-authored-by: Mike McNeil <[email protected]>
2023-07-15 19:56:30 -05:00
Sampfluger88
37884f2d0e
Added new user under humans for receive-from-github webhook (#12468)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-06-26 20:43:53 -05:00
Joanne Stableford
c3588e4f84
Add teammate to humans on receive from github webhook (#12321)
Added jostableford under humans list
2023-06-13 15:44:30 -04:00
Jin Yi
8a1bac7514
Added username to receive from github webhook (#12320)
Updated list of humans in Github webhook.
2023-06-13 12:21:16 -07:00
Mike McNeil
2aa3ee6f92
#g-ea => #g-ceo (#12027) 2023-05-29 23:49:03 -05:00
Mike McNeil
c1b7953f8c
Auto-tag PRs awaiting CEO approval (#11603)
Experiment w/ kanban board for CEO signature reviews and pending PR
reviews

cc @MissTeeLucas
2023-05-09 23:13:40 -05:00
Nathanael Holliday
b275c7e0ab
Removed departed team member (#11433)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [ ] Documented any permissions changes
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md))
2023-04-28 16:03:30 -05:00
Eric
2e2469cc9c
Website: Update GitHub webhook to trigger Zapier automation (#10807)
Closes: #10247

Changes:
- Updated `receive-from-github.js` to send a POST request to Zapier when
there is a new version of Fleet published.
2023-03-30 14:50:44 -05:00
Eric
6bce17976d
Website: Update GitHub webhook to use gpt-4 for generated haikus (#10854)
Changes:
- Changed the model used to generate haikus for closed issues.
2023-03-30 10:05:03 -05:00
Eric
92e079ea03
Website: Update request to generate Haikus for closed issues. (#10793)
Changes:
- Updated the request to the OpenAI API in `receive-from-github.js` to
send a request to the `chat/completions/` API and updated the request
body to be compatible with the `/chat/` API.
(https://platform.openai.com/docs/api-reference/chat/create)
2023-03-28 10:11:06 -05:00
Mike McNeil
92e52ca59c
Update receive-from-github.js (#10755)
I tried to use gpt4 in https://github.com/fleetdm/fleet/pull/10736, but
we're actually still on the waitlist. That's why it broke. Thanks Eric.
2023-03-24 15:07:24 -05:00
Mike McNeil
3c20efd74b
⛮ Upgrade haiku dynamos (#10736)
Upgrade to GPT-4. Increase max tokens 4x up to 8000 (aka the maximum
character length of issue description that it can pontificate about in
the form of a short haiku)
.
2023-03-24 10:02:25 -05:00
Charlie Chance
07b5c15a14
offboarding charlie (#10143)
.
2023-02-27 16:45:04 -06:00
Eric
a860328c04
Website: Update Github webhook to ignore Mergefreeze status for PRs outside of the Fleet repo (#10123)
Changes:
- Updated `receive-from-github.js` to only send requests to freeze and
unfreeze the Fleet repo when the PR it is checking is from the
fleetdm/fleet repo.
2023-02-27 12:29:32 -06:00
Eric
49c694e676
Website: update GitHub webhook to tolerate failed Merge Freeze requests (#9934)
Changes:
- Updated the `receive-from-github` webhook to tolerate failed requests
to the Merge Freeze API. If a request fails, the webhook logs a warning
and continues as if the main branch is not frozen.

---------

Co-authored-by: Mike McNeil <[email protected]>
2023-02-17 19:37:58 -06:00
Mike McNeil
d80101924f
Tolerate haiku failures (#9738)
Co-authored-by: Eric <[email protected]>
2023-02-07 16:07:54 -06:00
Eric
cb5b220989
Website: Disable bot comments on closed issues. (#9696)
Changes:
- Disabled the Open AI API request in the `receive-from-github` webhook.
It is currently returning a `429` response and causing `500` errors.
<img width="753" alt="image"
src="https://user-images.githubusercontent.com/7445991/217028846-77e75d98-a595-46e7-aefa-7a76811b32d4.png">
2023-02-06 10:45:29 -06:00
Eric
bc5e19c252
Website: Update GitHub webhook (#9432)
Changes:
- Updated the conditional statement that determines if we will be
notified in Slack to filter out commit comments and deleted comments
from Fleet team members with uppercase letters in their GitHub
usernames.
2023-01-20 15:06:35 -06:00
Charlie Chance
8e35500f21
offboarding Guillaume (#9420) 2023-01-18 17:36:00 -07:00
Mike McNeil
dfef4c4924
Fix prefix trimming (#9341)
Improve https://github.com/fleetdm/fleet/pull/9336 to fix prefix
trimming.
2023-01-14 18:45:52 -06:00
Mike McNeil
173b898bed
GH automations: Improve #9336 (#9340)
Improve https://github.com/fleetdm/fleet/pull/9336 providing default
settings similar to the OpenAI playground, including a higher
temperature and number of maximum tokens. Also fixes prefix trimming.
2023-01-14 18:28:52 -06:00
Mike McNeil
ffa5dc36dd
Improve #9336 (#9339)
This improves https://github.com/fleetdm/fleet/pull/9336 by eliminating
junk text and encouraging better replies. Uses an h1 to emphasize the
issue title, so that short issues don't get weird and truncated, and the
bot reply stays focused on the main point of the issue.
2023-01-14 17:55:29 -06:00
Mike McNeil
bc874cdd1d
GH automation: Add missing user-agent header for GitHub api (#9338)
Fixes https://github.com/fleetdm/fleet/pull/9336
2023-01-14 17:25:37 -06:00
Mike McNeil
7b65368920
GH automation: fix #9336 (#9337)
GH automation: Fix copy/paste error in
https://github.com/fleetdm/fleet/pull/9336
2023-01-14 17:10:30 -06:00
Mike McNeil
88d4dcad3d
Haikus (#9336)
When an issue is closed, post a comment with a Fleet-themed haiku about
it.
2023-01-14 16:56:16 -06:00
Charlie Chance
2599c1c40c
Offboarding: Chris (#9324)
.
2023-01-13 13:39:45 -06:00
Nathanael Holliday
56d54e8cd1
Offboarding (#9174)
Removed Frank.

Co-authored-by: Mike McNeil <[email protected]>
2023-01-04 08:51:50 -06:00
Nathanael Holliday
7affb67540
Offboarding (#9153)
Removed some offboarded folks.
2023-01-02 19:20:48 -06:00
Charlie Chance
9ca5e67bed
Offboarding: wclithero (#9055) 2022-12-16 17:12:29 -07:00
Jarod Reyes
231de42a88
Update receive-from-github.js (#8918)
Added 'jarodreyes' to list of humans.
2022-12-07 08:23:38 -06:00
Eric
a59e1cce80
Website: Add support for confidential repo to Github webhook (#8654)
* add confidentialGithubRepoDRIByPath to custom config

* Add support for the confidential repo to receive-from-github & get-is-pr-preapproved

* Update confidential repo DRIs

* remove no longer relevant folder

* Fix lint

* repository » repo

Co-authored-by: Mike McNeil <[email protected]>
2022-12-05 13:58:21 -06:00
Brad Macdowall
4edc9659fe
Add Brad and Alex to github maintainers list (#6943)
Co-authored-by: Zach Wasserman <[email protected]>
2022-11-21 10:59:57 -08:00
Charlie Chance
54294b7879
MAINTAINERS: offboarding (#8513)
offboarding Tim and Juan.
2022-10-31 23:09:19 -05:00
Zay Hanlon
dca77054c5
Onboarding: Add 'zayhanlon' to Humans (#8166)
As part of onboarding issue, add 'zayhanlon' to Humans within receive-from-github.js
2022-10-11 11:35:23 -05:00