@backstage/plugin-scaffolder-backend-module-github 0.4.1-next.0 → 0.4.1-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.cjs.js +202 -0
- package/dist/index.cjs.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend-module-github
|
|
2
2
|
|
|
3
|
+
## 0.4.1-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d21d307: Added examples for github:environment:create action and improve its test cases
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-plugin-api@0.7.1-next.1
|
|
10
|
+
- @backstage/backend-common@0.23.4-next.1
|
|
11
|
+
- @backstage/integration@1.14.0-next.0
|
|
12
|
+
- @backstage/config@1.2.0
|
|
13
|
+
- @backstage/errors@1.2.4
|
|
14
|
+
- @backstage/plugin-scaffolder-node@0.4.9-next.1
|
|
15
|
+
|
|
3
16
|
## 0.4.1-next.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -1649,6 +1649,208 @@ const examples$4 = [
|
|
|
1649
1649
|
}
|
|
1650
1650
|
]
|
|
1651
1651
|
})
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
description: "Create a GitHub Environment with Custom Tag Policies",
|
|
1655
|
+
example: yaml__default.default.stringify({
|
|
1656
|
+
steps: [
|
|
1657
|
+
{
|
|
1658
|
+
action: "github:environment:create",
|
|
1659
|
+
name: "Create Environment",
|
|
1660
|
+
input: {
|
|
1661
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1662
|
+
name: "envname",
|
|
1663
|
+
customTagPolicyNames: ["release/*/*", "v*.*.*"]
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
]
|
|
1667
|
+
})
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
description: "Create a GitHub Environment with Both Branch and Tag Policies",
|
|
1671
|
+
example: yaml__default.default.stringify({
|
|
1672
|
+
steps: [
|
|
1673
|
+
{
|
|
1674
|
+
action: "github:environment:create",
|
|
1675
|
+
name: "Create Environment",
|
|
1676
|
+
input: {
|
|
1677
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1678
|
+
name: "envname",
|
|
1679
|
+
deploymentBranchPolicy: {
|
|
1680
|
+
protected_branches: false,
|
|
1681
|
+
custom_branch_policies: true
|
|
1682
|
+
},
|
|
1683
|
+
customBranchPolicyNames: ["feature/*", "hotfix/*"],
|
|
1684
|
+
customTagPolicyNames: ["release/*", "v*"]
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
]
|
|
1688
|
+
})
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
description: "Create a GitHub Environment with Full Configuration",
|
|
1692
|
+
example: yaml__default.default.stringify({
|
|
1693
|
+
steps: [
|
|
1694
|
+
{
|
|
1695
|
+
action: "github:environment:create",
|
|
1696
|
+
name: "Create Environment",
|
|
1697
|
+
input: {
|
|
1698
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1699
|
+
name: "envname",
|
|
1700
|
+
deploymentBranchPolicy: {
|
|
1701
|
+
protected_branches: false,
|
|
1702
|
+
custom_branch_policies: true
|
|
1703
|
+
},
|
|
1704
|
+
customBranchPolicyNames: ["dev/*", "test/*"],
|
|
1705
|
+
customTagPolicyNames: ["v1.*", "v2.*"],
|
|
1706
|
+
environmentVariables: {
|
|
1707
|
+
API_KEY: "123456789",
|
|
1708
|
+
NODE_ENV: "production"
|
|
1709
|
+
},
|
|
1710
|
+
secrets: {
|
|
1711
|
+
DATABASE_URL: "supersecretdatabaseurl",
|
|
1712
|
+
API_SECRET: "supersecretapisecret"
|
|
1713
|
+
},
|
|
1714
|
+
token: "ghp_abcdef1234567890"
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
]
|
|
1718
|
+
})
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
description: "Create a GitHub Environment with Only Token Authentication",
|
|
1722
|
+
example: yaml__default.default.stringify({
|
|
1723
|
+
steps: [
|
|
1724
|
+
{
|
|
1725
|
+
action: "github:environment:create",
|
|
1726
|
+
name: "Create Environment",
|
|
1727
|
+
input: {
|
|
1728
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1729
|
+
name: "envname",
|
|
1730
|
+
token: "ghp_abcdef1234567890"
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
]
|
|
1734
|
+
})
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
description: "Create a GitHub Environment with No Deployment Policies",
|
|
1738
|
+
example: yaml__default.default.stringify({
|
|
1739
|
+
steps: [
|
|
1740
|
+
{
|
|
1741
|
+
action: "github:environment:create",
|
|
1742
|
+
name: "Create Environment",
|
|
1743
|
+
input: {
|
|
1744
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1745
|
+
name: "envname",
|
|
1746
|
+
deploymentBranchPolicy: null
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
]
|
|
1750
|
+
})
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
description: "Create a GitHub Environment with Custom Branch and Tag Policies",
|
|
1754
|
+
example: yaml__default.default.stringify({
|
|
1755
|
+
steps: [
|
|
1756
|
+
{
|
|
1757
|
+
action: "github:environment:create",
|
|
1758
|
+
name: "Create Environment",
|
|
1759
|
+
input: {
|
|
1760
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1761
|
+
name: "envname",
|
|
1762
|
+
deploymentBranchPolicy: {
|
|
1763
|
+
protected_branches: false,
|
|
1764
|
+
custom_branch_policies: true
|
|
1765
|
+
},
|
|
1766
|
+
customBranchPolicyNames: ["release/*", "hotfix/*"],
|
|
1767
|
+
customTagPolicyNames: ["v*", "release-*"]
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
]
|
|
1771
|
+
})
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
description: "Create a GitHub Environment with Environment Variables Only",
|
|
1775
|
+
example: yaml__default.default.stringify({
|
|
1776
|
+
steps: [
|
|
1777
|
+
{
|
|
1778
|
+
action: "github:environment:create",
|
|
1779
|
+
name: "Create Environment",
|
|
1780
|
+
input: {
|
|
1781
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1782
|
+
name: "envname",
|
|
1783
|
+
environmentVariables: {
|
|
1784
|
+
VAR1: "value1",
|
|
1785
|
+
VAR2: "value2"
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
]
|
|
1790
|
+
})
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
description: "Create a GitHub Environment with Deployment Secrets Only",
|
|
1794
|
+
example: yaml__default.default.stringify({
|
|
1795
|
+
steps: [
|
|
1796
|
+
{
|
|
1797
|
+
action: "github:environment:create",
|
|
1798
|
+
name: "Create Environment",
|
|
1799
|
+
input: {
|
|
1800
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1801
|
+
name: "envname",
|
|
1802
|
+
secrets: {
|
|
1803
|
+
SECRET1: "secretvalue1",
|
|
1804
|
+
SECRET2: "secretvalue2"
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
]
|
|
1809
|
+
})
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
description: "Create a GitHub Environment with Deployment Branch Policy and Token",
|
|
1813
|
+
example: yaml__default.default.stringify({
|
|
1814
|
+
steps: [
|
|
1815
|
+
{
|
|
1816
|
+
action: "github:environment:create",
|
|
1817
|
+
name: "Create Environment",
|
|
1818
|
+
input: {
|
|
1819
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1820
|
+
name: "envname",
|
|
1821
|
+
deploymentBranchPolicy: {
|
|
1822
|
+
protected_branches: true,
|
|
1823
|
+
custom_branch_policies: false
|
|
1824
|
+
},
|
|
1825
|
+
token: "ghp_abcdef1234567890"
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
]
|
|
1829
|
+
})
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
description: "Create a GitHub Environment with Environment Variables, Secrets, and Token",
|
|
1833
|
+
example: yaml__default.default.stringify({
|
|
1834
|
+
steps: [
|
|
1835
|
+
{
|
|
1836
|
+
action: "github:environment:create",
|
|
1837
|
+
name: "Create Environment",
|
|
1838
|
+
input: {
|
|
1839
|
+
repoUrl: "github.com?repo=repository&owner=owner",
|
|
1840
|
+
name: "envname",
|
|
1841
|
+
environmentVariables: {
|
|
1842
|
+
VAR1: "value1",
|
|
1843
|
+
VAR2: "value2"
|
|
1844
|
+
},
|
|
1845
|
+
secrets: {
|
|
1846
|
+
SECRET1: "secretvalue1",
|
|
1847
|
+
SECRET2: "secretvalue2"
|
|
1848
|
+
},
|
|
1849
|
+
token: "ghp_abcdef1234567890"
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
]
|
|
1853
|
+
})
|
|
1652
1854
|
}
|
|
1653
1855
|
];
|
|
1654
1856
|
|