зеркало из
1
0
Форкнуть 0
Граф коммитов

74 Коммитов

Автор SHA1 Сообщение Дата
Jeff Wilcox 20b1066ed9 Moving files 2024-01-03 11:44:13 -08:00
Jeff Wilcox ef55d3631a Typings: more interfaces to types 2023-12-16 18:16:42 -08:00
Jeff Wilcox c5837d6ec0 Updated typings 2023-12-13 16:35:32 -08:00
Jeff Wilcox 16ef3b6546 Org annotations update
Changing how the JSON API redacts the annotation, plus
allowing projection of multiple values in the annotations
API.
2023-12-08 10:46:06 -08:00
Jeff Wilcox 96671b3a7d Person page 404 should bubble 2023-12-08 10:45:35 -08:00
Jeff Wilcox c63dc75cba Uncontrolled organization fix
For modern apps using GitHub Apps instead of PATs or OAuth tokens,
this makes sure that the Uncontrolled Organization method can still
be used to retrieve other GitHub organizations that are not managed
by the apps for purposes such as pulling org details and basics.
2023-12-04 22:45:04 -08:00
Jeff Wilcox 89e3d29621 Company-specific team extensions
To support newer scenarios that are Microsoft-specific for automating
some types of team membership, this adds new extension points to
evaluate team join request conditions sooner in the middleware and
pipeline.

Also augments the JSON for client APIs about the team(s) to allow
inserting company-specific configuration or state into those responses.
2023-11-30 08:22:07 -08:00
Jeff Wilcox 00eb7c2ddc Custom properties, token refactor, open access teams
- Removes CENTRAL_OPERATIONS_TOKEN
- System teams - open access
  - adds open access concept, which is a broad access team anyone in the org can join without approval
  - open access teams are not recommended the same way as broad access teams during new repo setup
- TypeScript: prefer types to interfaces
- GitHub Apps and REST APIs:
  - Simplifying bound function calls
  - Relocated app and token management files
  - Improves types for header/tokens
  - Allow custom app purposes to retrieve app token instances
  - Custom app purpose debug display fix
  - PAT/app token type identification helper method
  - Collections now expose "collectAllPages" and "collectAllPagesViaHttpGet" to move specific code out of the file
  - Fix for custom apps initialized after startup
- Custom Properties Beta support
2023-11-11 16:24:15 -05:00
Jeff Wilcox 9cd60cdad8 Privatize API + updated dependencies
Syncing with our internal bits.
2023-10-20 15:50:54 -07:00
Jeff Wilcox 676d7b5691 +missing merge 2023-10-05 21:51:52 -07:00
Jeff Wilcox e55f5ca2b1 Repository invitations list support 2023-10-05 21:48:54 -07:00
Jeff Wilcox 040775abd7 API middleware 2023-10-03 16:52:23 -07:00
Jeff Wilcox e165cb14d0 Updates; remove rename branch code 2023-08-14 22:04:30 -07:00
Jeff Wilcox 682553ab0e Syncing updates 2023-07-12 21:00:23 -07:00
Jeff Wilcox d5a28ed738 Octicons, express: major type updates 2023-06-14 13:56:07 -07:00
Jeff Wilcox 4ca3b70ae1 Type updates 2023-06-11 17:42:22 -07:00
Jeff Wilcox deb80e82be Annotation updates 2023-06-08 09:30:25 -07:00
Jeff Wilcox 8bfc9c74b8 API: support watchdogs, multiple scopes 2023-05-31 19:22:40 -07:00
Jeff Wilcox 66b87b31d0 API session refactor + directory prune
- Client APIs remain behind the session middleware
- Non-client APIs no longer set cookies given their stateless nature
- Simplifies the directory structure
- Removes Microsoft-specific API configuration and code not useful to the OSS version
2023-05-11 13:07:14 -07:00
Jeff Wilcox 0f42e7f2cb ES2022: cause
Replaces the old custom "inner" and "innerError" concept from
the legacy app with the modern cause parameter.
2023-04-06 18:10:22 -07:00
Jeff Wilcox d26bf619b2 New fork lock: optional feature
Updates the fork lock (which admin-locks new forks) to instead delete
them right away. Helps reduce confusion and abandoned/messy instances
on official corp orgs when used.
2023-02-23 19:39:37 -08:00
Jeff Wilcox d2fed342dd Highlighted orgs 2023-02-23 08:25:56 -08:00
Jeff Wilcox ed5dd1e039 Downstream integration 2023-02-10 21:27:09 -08:00
Jeff Wilcox 5c39e50a8c Link mail: support company-specific view 2023-02-03 10:59:37 -08:00
Jeff Wilcox 96783326cd Link mail: support company-specific view 2023-02-03 10:59:11 -08:00
Jeff Wilcox ec62c143bf Debug DEBUG_UNLINK_WITHOUT_DROPS var 2023-02-03 10:57:55 -08:00
Jeff Wilcox e48e1dd11d Immutability: store new repo payloads to immutable blob 2023-01-24 15:20:16 -08:00
Jeff Wilcox eb203bef85 Chore: import debug 2023-01-19 23:01:39 -08:00
Jeff Wilcox 4083f75996 Supporting more app types, client flights
Integrates multiple changes from an internal fork to the open project:

- Strongly typing basic organization properties and flags
- Specialized app purposes
- Organization annotations
- Repo unarchive
- Configuration resolver supports dates
- Configuration resolver supporting above-root .env over env vars for Codespaces
- Initialization routine adds support for an optional company-specific secondary stage
- Supports flighting a second React frontend for specific or all users
- Most basic organization APIs support managed and unmanaged orgs for org details
2023-01-07 22:39:49 -08:00
Jeff Wilcox f1fa87b96d Repo API: add unarchivalAllows a repo direct owner, portal sudoer to unarchive a repo. 2023-01-07 20:53:41 -08:00
Jeff Wilcox 77f1b25ab1 Approvals: sudo supportSudoers should also be able to approve, inc. portal admins. 2023-01-07 20:50:04 -08:00
Jeff Wilcox c07b717731 Merge branch 'prefer-const' of https://github.com/nschonni/opensource-portal into nschonni-prefer-const 2022-10-31 21:52:59 +00:00
Jeff Wilcox 0af67ee0cd Latest build 2022-10-31 03:32:58 +00:00
Nick Schonning 8332719638
fix: prefer-const 2022-10-11 21:20:41 -04:00
Nick Schonning deea160f69
fix: various typos 2022-10-09 23:02:44 -04:00
Jeff Wilcox 9f3f1cb00d
Prettier linting, README update (#399) 2022-10-07 15:25:28 -07:00
Jeff Wilcox 9d54251c56 Prettier / consistency 2022-10-07 06:59:30 +00:00
Jeff Wilcox f892e1d3b6 Integration: Linting updates 2022-10-07 05:31:29 +00:00
mofury 820ed744d0
Remove hardcoded references to microsoft from mail templates (#289)
* Remove hardcoded references to microsoft (#6)

* add config to some more mail options

Co-authored-by: Moritz Fuchs <moritz.fuchs@sap.com>
Co-authored-by: Tobias Gabriel <tobias.gabriel@sap.com>
2022-10-06 20:25:32 -07:00
Jeff Wilcox 0921e2d578 Integrating latest Microsoft changes
Updates the open source project to reflect the recent updates
around continuing to make it easier to build in paralell and have
company-specific updates without impacting the upstream as much.
2022-10-07 01:23:29 +00:00
Jeff Wilcox 6aca65ae1e
Integrating stylistic community pull request saves 2021-10-07 15:23:50 -07:00
Jeff Wilcox c4a9d2b49f
Merge branch 'main' into import-destructor 2021-10-07 14:18:02 -07:00
Jeff Wilcox 626ab6ed64
Fork unlock: allow portal admins to unlock 2021-10-06 20:08:39 -07:00
Jeff Wilcox 74c3135744
API: create repo: org-optional additional notifications 2021-10-06 19:54:26 -07:00
Jeff Wilcox 2f2d466cda
API: simple organization list endpoint 2021-10-06 19:53:58 -07:00
Jeff Wilcox 57dd262162
Feature: whether to expose webhook ingestionNew default is to no longer expose the endpoint.This may be a breaking change for some users that needs documentation. 2021-10-06 19:52:14 -07:00
Jeff Wilcox e12cae1f8d
API: Teams: support forced refresh option 2021-10-06 19:49:40 -07:00
Jeff Wilcox 41047e2612
Latest source 2021-07-17 14:33:35 -07:00
Jeff Wilcox b256b70af0
Improved new repo lockdown, app/job reconfig
- Improved new repository lockdown experience
  - Supports swapping description and website URL for repos temporarily until approval
  - Supports an initial README commit directing people to the setup experience, if there are no commits yet
  - Directly created repos become private immediately but retain access for the initial creator of the repo with read permission
- Removes new repository branch rename feature (GitHub natively supports org-level and enterprise-level custom defaults now)
- Removes 'uuid' dependency to favor newer Node LTS 14+ crypto.randomUUID
- App and job configuration object replaces "treatGitHubAppAsBackground" with "enableAllGitHubApps"
- Table encryption bug fix when pulling from key vault
- Chore: updates NPM dependencies
2021-06-03 10:08:30 -07:00
Jeff Wilcox 8a8a2dc181
Removing painless-config support to prefer dotenv always; minor new features
- Removes antiquated Azure Storage and table SDKs
- Removes dependency on painless-config-resolver (which is now inline inside the project and adopts the latest Azure SDK for KeyVault)
- Adds company-specific unlink and link mail template overrides
- Adds new unlink notification mail to people who remove themselves, or are removed
- Updates more legacy functions from callbacks to more modern equivalents
- Removes unused reports "data lake" storage methods
- Removes moment timezone library
- System administrator data can now alternatively come from security groups instead of hard-coded configuration

Breaking changes

- Removes painless-config support. .env and environment/container env methods only. If you have a JSON env file, update it to a .env-compatible format for local development use.
2021-05-17 11:54:19 -07:00