Skip to content

Add release assets#1195

Merged
kfcampbell merged 5 commits intointegrations:mainfrom
shabbyrobe:release-assets
Nov 8, 2022
Merged

Add release assets#1195
kfcampbell merged 5 commits intointegrations:mainfrom
shabbyrobe:release-assets

Conversation

@shabbyrobe
Copy link
Copy Markdown
Contributor

Add support for assets portion of Github releases to the output of the github release data source:

{
  // ...
  "assets": [
    {
      "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1",
      "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip",
      "id": 1,
      "node_id": "MDEyOlJlbGVhc2VBc3NldDE=",
      // ...
    }
  ]
}

Please let me know how I should test this; to run the tests it seems I needed to create a release and then pass the GITHUB_TEMPLATE_REPOSITORY_RELEASE_ID=... env var. I can configure a test that anticipates that the release referenced by that env var must have at least one asset attached to it. I presume I'd document that requirement in CONTRIBUTING.md?

@crqrdotcom
Copy link
Copy Markdown

Hey 👋🏽 any news about this?

@bogdangi
Copy link
Copy Markdown

bogdangi commented Nov 7, 2022

It would be nice to have this feature!

@kfcampbell
Copy link
Copy Markdown
Contributor

@shabbyrobe Sorry for the delay! It looks like the build failure is related to a website linting error that can easily be fixed. I'd be happy to get this in once it is!

As far as testing, I'm not sure. This is a great question and something I'm thinking about as well for #1120. Balancing the need for integration testing with the hassle of keeping several organizations and credentials current across several flavors of GitHub is obnoxious.

My immediate, tentative vote would be to postpone integration testing this functionality until we have working integration tests in CI.

@shabbyrobe
Copy link
Copy Markdown
Contributor Author

Thanks for the update @kfcampbell, just fixed the typo, can you please re-approve the workflow?

@kfcampbell kfcampbell merged commit ffd6f0a into integrations:main Nov 8, 2022
@crqrdotcom
Copy link
Copy Markdown

Thanks!

kazaker pushed a commit to auto1-oss/terraform-provider-github that referenced this pull request Dec 28, 2022
* Add release assets

* Add assets to release documentation

* Fix typo in documentation

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this pull request Feb 5, 2024
* Add release assets

* Add assets to release documentation

* Fix typo in documentation

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants