Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Concourse resource for GitHub Teams that fires if a GitHub team was updated

License

Notifications You must be signed in to change notification settings

suhlig/concourse-github-team-resource

Repository files navigation

concourse-github-team-resource

Build Status

Concourse resource for GitHub Teams. It fires when a GitHub team was updated.

Resource Type Configuration

resource_types:
  - name: github-team-resource
    type: docker-image
    source:
      repository: suhlig/concourse-github-team-resource
      tag: latest

Source Configuration

  • organization: Required Name of the organization the team belongs to
  • team: Required Name of the team to track
  • access_token: Required the OAuth access token that should be used for authenticated access to GitHub
  • api_endpoint: Optional API endpoint if different than https://api.github.com, e.g. https://github.example.com/api/v3/

Behavior

check: Extract items from the team

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.

in: Fetch the team at the given updated_at timestamp

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.

out: Not implemented

There is no output from this resource.

Development

One-time Setup

bundle install

Running the Tests

Tests assume you have a running docker daemon:

bundle exec rake

Docker Image

TODO After a git push to the master branch, if the build was successful, Travis automatically pushes an updated docker image.

About

Concourse resource for GitHub Teams that fires if a GitHub team was updated

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published