Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in upstream changes #1

Merged
merged 45 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f6add3e
v4.1.0
Dec 1, 2020
65e8c3f
Fix unable to resolve node id for branch_protection (#610)
Polygens Dec 8, 2020
925082e
temporarily disable PR acceptance testing
Dec 10, 2020
44a0b0d
remove `ForceNew` on `template*` as they are concerns only at creatio…
majormoses Dec 18, 2020
56470d7
Add diff suppression function to the branch protection resource (#614)
patrickmarabeas Dec 18, 2020
81cbb1a
Add Apps to actor types in branch protection (#615)
patrickmarabeas Dec 18, 2020
8927341
Added `allowsDeletions`and `allowsForcePushes`settings (#623)
frbayart Dec 18, 2020
5863a2b
Fix syntax error
Dec 24, 2020
f88876b
Conditionally Run GHES Test Suite
Dec 24, 2020
87b0c75
Run gofmt (#645)
shoekstra Jan 7, 2021
e0dd312
Allow dependabot to check github actions (#643)
jlosito Jan 7, 2021
eb0948c
Typo: s/visiblity/visibility (#629)
bcomnes Jan 7, 2021
2e5e268
github_repository_webhook: describe content_type options (#510)
holyjak Jan 7, 2021
3862f96
change private to visibility (#635)
shogo82148 Jan 7, 2021
ce15a11
Use commit SHA to lookup commit info in github_repository_file resour…
shoekstra Jan 7, 2021
a1809f3
add release automation for terraform registry
Jan 7, 2021
7745b65
Add v4.2.0 Release (#641)
Jan 7, 2021
cc9acc7
add goreleaser configuration to enable release automation
Jan 7, 2021
39ef30e
resource/repository: add support for enabling github pages (#490)
anGie44 Jan 14, 2021
405dc41
Add `github_branch_protection_v3` Resource (#642)
Jan 14, 2021
872bb96
add changelog entries for v4.3.0 release (#658)
Jan 16, 2021
3494128
Remove github.com/hashicorp/terraform from dependencies (#628)
Jan 16, 2021
75d6a3e
Allow dependabot to check go dependencies (#653)
jlosito Jan 16, 2021
3a9dbb0
Fix link to Milestones page (#663)
dievri Jan 19, 2021
b61a71f
github_branch_default: send only fields that changed. Fixes #625 #620…
dee-kryvenko Jan 22, 2021
ec33896
Fix error handling (#668)
rustycl0ck Jan 22, 2021
dec1456
Update CHANGELOG.md
Jan 22, 2021
b4ebe6d
Remove Obsolete Test
Jan 22, 2021
54371c9
Update GitHub organization references (#672)
sa-spag Jan 26, 2021
ad5dffb
Add Example For `github_team_repository` (#676)
Jan 27, 2021
ad27808
changelog: manually fix links to issues (#673)
docwhat Jan 29, 2021
ced560d
Handle base64 decodable repo names (#684)
k24dizzle Feb 2, 2021
f649466
github/config: Fix detection of individual, non-org accounts (#685)
issyl0 Feb 2, 2021
c5eda72
add changelog entry for v4.3.2
Feb 2, 2021
3ab313b
Add `create_default_maintainer` Option To `github_team` (#661)
Feb 5, 2021
ddfb742
Refresh CONTRIBUTING Documentation (#682)
Feb 5, 2021
21f85f9
Add Diff Suppression Option To `repository_collaborator` (#683)
Feb 5, 2021
140e5ab
Update CHANGELOG for v4.4.0 release
Feb 5, 2021
2342771
Add repo context to error message when branch is not found (#691)
mbarany Feb 10, 2021
512343c
fix based on linter (#694)
Feb 10, 2021
2d5e38f
add v4.4.1 release notes
Feb 17, 2021
97c7957
Modify github_team_repository to accept slug as a valid team_id as we…
k24dizzle Feb 18, 2021
61238b9
add v4.5.0 release notes
Feb 18, 2021
22d9388
temporarily ignore `darwin/arm64` to unblock releases
Feb 18, 2021
8defb41
update release notes for v4.5.0
Feb 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
5 changes: 3 additions & 2 deletions .github/workflows/dotcom-acceptance-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Dotcom Acceptance Tests

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- test/**

jobs:

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/ghes-acceptance-tests-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,20 @@ on:
- cron: '0 0 * * *'

jobs:
runtime:
runs-on: ubuntu-latest
steps:
- name: Query server address
id: server-address
run: |
SERVER_ADDRESS=$(dig +short terraformtesting-ghe.eastus.cloudapp.azure.com)
echo "::set-output name=server-address::${SERVER_ADDRESS}"
outputs:
server-address: ${{ steps.server-address.outputs.server-address }}

acceptance-tests-anonymous:
needs: [runtime]
if: ${{ needs.runtime.outputs.server-address != '255.255.255.255' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -26,6 +38,8 @@ jobs:
GITHUB_BASE_URL: "https://terraformtesting-ghe.eastus.cloudapp.azure.com/"

acceptance-tests-individual:
needs: [runtime]
if: ${{ needs.runtime.outputs.server-address != '255.255.255.255' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -55,6 +69,8 @@ jobs:
GITHUB_TEST_USER_TOKEN: ${{ secrets.GHES_TEST_USER_TOKEN }}

acceptance-tests-organization:
needs: [runtime]
if: ${{ needs.runtime.outputs.server-address != '255.255.255.255' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/ghes-acceptance-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
name: GHES Acceptance Tests

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- test/**

jobs:
runtime:
runs-on: ubuntu-latest
steps:
- name: Query server address
id: server-address
run: |
SERVER_ADDRESS=$(dig +short terraformtesting-ghe.eastus.cloudapp.azure.com)
echo "::set-output name=server-address::${SERVER_ADDRESS}"
outputs:
server-address: ${{ steps.server-address.outputs.server-address }}

acceptance-tests-anonymous:
needs: [runtime]
if: ${{ needs.runtime.outputs.server-address != '255.255.255.255' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -20,6 +33,8 @@ jobs:
GITHUB_BASE_URL: "https://terraformtesting-ghe.eastus.cloudapp.azure.com/"

acceptance-tests-individual:
needs: [runtime]
if: ${{ needs.runtime.outputs.server-address != '255.255.255.255' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -35,6 +50,8 @@ jobs:
GITHUB_TEST_USER_TOKEN: ${{ secrets.GHES_TEST_USER_TOKEN }}

acceptance-tests-organization:
needs: [runtime]
if: ${{ needs.runtime.outputs.server-address != '255.255.255.255' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
#
# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
#
# You will need to pass the `--batch` flag to `gpg` in your signing step
# in `goreleaser` to indicate this is being used in a non-interactive mode.
#
name: release
on:
push:
tags:
- 'v*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56 changes: 56 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
before:
hooks:
# this is just an example and not a requirement for provider building/publishing
- go mod tidy
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: arm64
- goos: darwin
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
# if you are using this in a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
# If you want to manually examine the release before its live, uncomment this line:
# draft: true
changelog:
skip: true
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ matrix:
script: make test
- name: "make website-lint"
script: make website-lint
- name: "make website-test"
script: make website-test
Loading