Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f9312e0
Updates go-github dep to v68
nickfloyd Nov 13, 2025
d5c316c
Vendoring updates
nickfloyd Nov 13, 2025
211cc10
Update to go-github v77
nickfloyd Nov 13, 2025
aaf8089
vendor
nickfloyd Nov 13, 2025
13f6e20
add project item, deprecate project card
nickfloyd Nov 13, 2025
5c5babb
Add project item to the resource map
nickfloyd Nov 13, 2025
6a6163a
make org project read-only
nickfloyd Nov 13, 2025
8064292
Deprecate project column
nickfloyd Nov 13, 2025
bb3b6ed
API renames: edit to update
nickfloyd Nov 13, 2025
808de22
API renames: edit to update
nickfloyd Nov 13, 2025
3a82a12
Use new CreateRef API
nickfloyd Nov 13, 2025
06076f2
Defer ruleset changes - they need to be done in a separate branch to …
nickfloyd Nov 13, 2025
b12b4ad
Adds / Updates rulesets
nickfloyd Nov 14, 2025
24df569
Renames Project V2 and removes legacy/classic projects concerns
nickfloyd Nov 14, 2025
1229e45
Merge remote-tracking branch 'origin/main' into go-github-v68
nickfloyd Nov 14, 2025
5045600
manual updates from merge
nickfloyd Nov 14, 2025
fc9e86e
Linting fixes and updating APIs
nickfloyd Nov 14, 2025
7fe7910
Update deprecated func ListSecurityManagerTeams > ListTeamsAssignedTo…
nickfloyd Nov 14, 2025
e1888a2
Deprecation fix: GetTeamByID > GetTeamBySlug
nickfloyd Nov 14, 2025
20fd948
Fix deprecated team APIs
nickfloyd Nov 14, 2025
f977162
Merge branch 'main' into projects-v2
nickfloyd Nov 18, 2025
9be35cc
Merge branch 'main' into projects-v2
nickfloyd Nov 19, 2025
f646d75
update to go-github v79
nickfloyd Nov 19, 2025
1ec7eda
clean up debug comments
nickfloyd Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,22 @@ This may come in handy when debugging both acceptance and manual testing.
]
}
```

## Updating go-github

If done frequently enough this process is generally smooth. Occasionaly there will be a breaking change, see our release doc for [details](./RELEASE.md) but for the most part you can take the following steps to update this foundational library.

1. Run `go get github.com/google/go-github/v#@v#.#.#` where # is replaced by the actual version. We also want to specify the version not just the release version (in case there was patching)

2. Next make sure to replace the references in all of the files, you can do this manually or run the script below:

- For instance we are upgrading from `v77` to `v79` (making sure that we ignore the `vendor` directory, we'll get to that later)
```
find . -name "*.go" -not -path "./vendor/*" -exec sed -i '' 's|github.com/google/go-github/v77|github.com/google/go-github/v79|g' {} \;
```

3. Run `go mod tidy`

4. Run `go mod vendor`

6. Run `make build && make lint && make test` to validate the changes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project is used to manipulate GitHub resources (repositories, teams, files,
## Requirements

- [Terraform](https://www.terraform.io/downloads.html) 0.10.x
- [Go](https://golang.org/doc/install) 1.19.x (to build the provider plugin)
- [Go](https://golang.org/doc/install) 1.24.x (to build the provider plugin)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion github/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
"github.com/shurcooL/githubv4"
"golang.org/x/oauth2"
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_environment_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/url"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_environment_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/url"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_organization_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_actions_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_app_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"testing"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"net/http"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_codespaces_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_codespaces_user_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_collaborators.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"context"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_dependabot_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_external_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"strconv"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/shurcooL/githubv4"
)
Expand Down
2 changes: 1 addition & 1 deletion github/data_source_github_organization_custom_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/google/go-github/v67/github"
"github.com/google/go-github/v79/github"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
Loading
Loading