Benjamin Janssens
95439bbdad
refactor(scaffolder): move getOctokitOptions to separate util file
...
Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com >
2025-02-04 14:37:53 +01:00
Benjamin Janssens
fda96db681
refactor(scaffolder): split getOctokitOptions repoUrl parameter into host, owner and repo parameters
...
Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com >
2025-02-04 14:37:53 +01:00
Jonathan Sundquist
edaf925841
Upates to allow users to subscribe to the newly created GitHub repo
...
Signed-off-by: Jonathan Sundquist <jsundquist@gmail.com >
2024-12-17 08:28:26 -06:00
Ben Lambert
d871eb618f
Merge pull request #28134 from paulmowat/feat/github_add_additional_properties
...
feat: adding requiredLinearHistory property
2024-12-16 10:15:59 +01:00
Paul Mowat
7df6179b7f
feat: adding requiredLinearHistory property
...
Signed-off-by: Paul Mowat <paul.mowat@oneadvanced.com >
2024-12-13 16:41:45 +00:00
Ben Lambert
bc018aa540
Merge pull request #27796 from stegosaurus21/stegosaurus21/fix-create-github-env-auth
...
Make GitHub environment Scaffolder action use auth to resolve reviewers
2024-12-13 16:57:38 +01:00
Fredrik Adelöw
973dd6f25d
fix some little things that vale was complaining about
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-12-10 14:31:54 +01:00
Jason Liu
2a9bd224a8
Pass auth service when initializing GitHub scaffolder actions
...
Signed-off-by: Jason Liu <a.jason.liu21@gmail.com >
2024-12-05 22:22:33 +11:00
Juan Escalada
bc42275038
Add github backend module and doc links to errors
...
Signed-off-by: Juan Escalada <juanescalada175@gmail.com >
2024-12-04 11:37:53 +09:00
Jason Liu
b5e002b1cc
Make GitHub environment Scaffolder action use auth to resolve reviewers
...
Changes the github:environment:create Scaffolder action to request and
use a backend auth token when resolving the reviewer entityRefs from the
Backstage catalog.
This is because previously it would throw a 401 error when backend auth
was not disabled.
The logic for requesting the token is copied from the existing
catalog:fetch action, which needs to do a similar thing.
Also slightly clarifies that Backstage entityRefs are expected in the
reviewers list for this action.
Signed-off-by: Jason Liu <a.jason.liu21@gmail.com >
2024-11-23 20:57:53 +11:00
Adam Letizia
8ce0c4cd51
feat(scaffolder-backend-module-github): add github:branch-protection:create action
...
Signed-off-by: Adam Letizia <LetiziaAdam@JohnDeere.com >
2024-10-02 07:21:03 -05:00
Raghunandan Balachandran
286647dd9d
Make catalog client optional in github env create action
...
Signed-off-by: Raghunandan Balachandran <raghunandan@spotify.com >
2024-09-16 17:59:16 +02:00
Raghunandan Balachandran
878c8080b7
Pass a catalogClient to the Github Environment Action
...
Signed-off-by: Raghunandan Balachandran <raghunandan@spotify.com >
2024-09-16 17:59:16 +02:00
Raghunandan Balachandran
d0ea1748aa
Change imput param keys to camelCase. Fetch entityrefs from catalog and get users and teams from github for env reviewers.
...
Signed-off-by: Raghunandan Balachandran <raghunandan@spotify.com >
2024-09-16 17:59:16 +02:00
Raghunandan Balachandran
ce0d10cb48
support reviewers, prevent_self_review and wait_timer
...
Signed-off-by: Raghunandan Balachandran <raghunandan@spotify.com >
2024-09-16 17:59:16 +02:00
Efren Aguilar
8eb75423a5
Add custom prop functionality
...
Signed-off-by: Efren Aguilar <efrenaguilar95@hotmail.com >
2024-08-29 15:13:43 -07:00
Ben Lambert
0a894fa703
Merge pull request #25801 from parmar-abhinav/master-code-17
...
Added examples for action github:pages and improved test cases
2024-08-11 11:30:28 +02:00
Ben Lambert
ac80681fc1
Merge pull request #25802 from parmar-abhinav/master-code-18
...
Added examples for github:repo:create action and improved test cases
2024-08-11 11:29:57 +02:00
parmar-abhinav
6d4cb97f07
Added examples for github:repo:create action and improved test cases
...
Signed-off-by: parmar-abhinav <abhinav.parmar@infosys.com >
2024-07-30 12:41:44 +05:30
parmar-abhinav
cd203f1250
Added examples for action github:pages and improved test cases
...
Signed-off-by: parmar-abhinav <abhinav.parmar@infosys.com >
2024-07-27 15:27:20 +05:30
parmar-abhinav
d21d3079fc
Added examples for github:environment:create action and improve its test cases
...
Signed-off-by: parmar-abhinav <abhinav.parmar@infosys.com >
2024-07-26 13:38:08 +05:30
Mccaskey Skye
ccfc9d12c1
fix: Added owner and repo args to getEnvironmentPublicKey
...
Signed-off-by: Mccaskey Skye <smccaskey@me.com >
2024-07-10 12:57:23 -05:00
Ben Lambert
0927084609
Merge pull request #25355 from awanlin/topic/github-pages-action
...
Added action to enable GitHub Pages on a repo
2024-07-01 12:17:23 +02:00
Fredrik Adelöw
bf2a81033a
Merge pull request #25301 from koalaty-code/require-last-push-approval-github-scaffolder
...
fix(scaffolder-backend-module-github): adds requireLastPushApproval input
2024-06-29 22:23:24 +02:00
Andre Wanlin
1469ddade4
Rename based on feedback
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2024-06-28 15:43:55 -05:00
Andre Wanlin
141f366625
Added action to enable GitHub Pages on a repo
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2024-06-28 15:10:43 -05:00
Diego Iglesias
36f3c5e693
fix(scaffolder-backend-module-github): createOrUpdateEnvironmentSecret missing owner and repo
...
Signed-off-by: Diego Iglesias <diegohi@gmail.com >
2024-06-25 00:31:03 +02:00
Diego Iglesias
4410fed9d9
fix(scaffolder-backend-module-github): createEnvironmentVariable missing owner and repo
...
Signed-off-by: Diego Iglesias <diegohi@gmail.com >
2024-06-25 00:31:03 +02:00
Christopher Diaz
fc6db7af1d
update tests and API reports
...
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com >
2024-06-20 17:10:40 -04:00
Christopher Diaz
bdcb2990b3
feat: support tag based policies
...
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com >
2024-06-19 15:28:07 -04:00
Adam Letizia
3008b63797
chore(test): extract test case scenarios for branch protection settings
...
Signed-off-by: Adam Letizia <LetiziaAdam@JohnDeere.com >
2024-06-18 10:04:33 -05:00
Adam Letizia
dfaa28db07
fix(scaffolder-backend-module-github): adds requireLastPushApproval input
...
Signed-off-by: Adam Letizia <LetiziaAdam@JohnDeere.com >
2024-06-18 09:54:52 -05:00
Romain Billon
aee300c364
chore: run yarn prettier:fix
...
Signed-off-by: Romain Billon <romain.billon@agicap.com >
2024-06-01 22:11:22 +02:00
Romain Billon
f912f6150a
chore: add tests on github pull request action to force empty authors
...
Signed-off-by: Romain Billon <romain.billon@agicap.com >
2024-06-01 21:53:31 +02:00
Romain Billon
2e01ccacfb
feat: add forceEmptyGitAuthor option to GitHub pull request action
...
This update introduces the `forceEmptyGitAuthor` option to the GitHub pull request action in the scaffolder-backend-module-github. This new boolean option allows for the author information to be omitted from commits, which is particularly useful when using a GitHub App, enabling commits to be verified on GitHub.
Signed-off-by: Romain Billon <romain.billon@agicap.com >
2024-06-01 21:36:43 +02:00
Camila Belo
737f3ae5ef
Merge branch 'master' into camilaibs/nbs10-deprecate-legacy-system-commons
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-05-21 15:12:02 +02:00
Camila Belo
eb34b87d5a
refactor: stop using getVoidLogger in tests
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-05-16 09:21:54 +02:00
Nolan, Tavi
7170a4edd1
Merge branch 'master' into feature/enable-scaffolder-dry-run
...
Signed-off-by: Nolan, Tavi <Tavi.Nolan@fmr.com >
2024-05-15 16:26:16 +01:00
Tavi Nolan
f145a0458b
Fixed test imports, added changeset
...
Signed-off-by: Tavi Nolan <Tavi.Nolan@fmr.com >
2024-05-14 16:04:00 +01:00
Camila Belo
d229dc49ad
refator(backend-common): extract path utilities to plugin api
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-05-13 13:23:45 +02:00
Matheus Castiglioni
18cd46471f
chore(plugins/scaffolder-backend-module-github): making config optional
...
Signed-off-by: Matheus Castiglioni <mahenrique94@users.noreply.github.com >
2024-05-07 15:01:44 -03:00
Matheus Castiglioni
e5486988c0
test(plugins/scaffolder-backend-module-github): adding missing author data priority test
...
Signed-off-by: Matheus Castiglioni <mahenrique94@users.noreply.github.com >
2024-05-05 22:39:44 -03:00
Matheus Castiglioni
b000ee6fa2
fix(plugins/scaffolder-backend-module-github): api report config undocumented
...
Signed-off-by: Matheus Castiglioni <mahenrique94@users.noreply.github.com >
2024-05-05 22:12:18 -03:00
Matheus Castiglioni
a35ef27ead
fix(plugins/scaffolder-backend-module-github): only overriding default comit author when provide it
...
Signed-off-by: Matheus Castiglioni <mahenrique94@users.noreply.github.com >
2024-05-05 21:53:57 -03:00
Matheus Castiglioni
52ab24122a
chore(plugins/scaffolder-backend-module-githu): adding support to override default author commit for github PRs
...
Signed-off-by: Matheus Castiglioni <mahenrique94@users.noreply.github.com >
2024-05-03 20:27:36 -03:00
Tavi Nolan
ed30d2cb7a
Fixed imports
...
Signed-off-by: Tavi Nolan <Tavi.Nolan@fmr.com >
2024-04-29 16:58:09 +01:00
Nolan, Tavi
d1428a0d36
Update githubRepoPush.ts
...
Signed-off-by: Nolan, Tavi <Tavi.Nolan@fmr.com >
2024-04-26 13:16:18 +01:00
Nolan, Tavi
e381232758
Update githubRepoCreate.ts
...
Signed-off-by: Nolan, Tavi <Tavi.Nolan@fmr.com >
2024-04-26 13:15:49 +01:00
Nolan, Tavi
565f2a5eba
Update githubRepoCreate.test.ts
...
Signed-off-by: Nolan, Tavi <Tavi.Nolan@fmr.com >
2024-04-26 13:15:23 +01:00
Nolan, Tavi
c465caddc5
Update github.ts
...
Signed-off-by: Nolan, Tavi <Tavi.Nolan@fmr.com >
2024-04-26 13:14:53 +01:00