Concourse resource for GitHub Teams. It fires when a GitHub team was updated.
resource_types:
- name: github-team-resource
type: docker-image
source:
repository: suhlig/concourse-github-team-resource
tag: latest
organization
: Required Name of the organization the team belongs toteam
: Required Name of the team to trackaccess_token
: Required the OAuth access token that should be used for authenticated access to GitHubapi_endpoint
: Optional API endpoint if different thanhttps://api.github.com
, e.g.https://github.example.com/api/v3/
The resource will fetch the information about the given team
that is part of an organization
and will version items by their updated_at
attribute.
The resource will fetch the team at the requested updated_at
timestamp. For each attribute of the the team, it writes the attribute value to a file into the destination directory. You can then read these files in a task.
There is no output from this resource.
bundle install
Tests assume you have a running docker daemon:
bundle exec rake
TODO After a git push
to the master branch, if the build was successful, Travis automatically pushes an updated docker image.