Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boost/tdd-action
Automates the process of tracking TDD usage and developer experiences across projects.
https://github.com/boost/tdd-action
github-actions
Last synced: 20 days ago
JSON representation
Automates the process of tracking TDD usage and developer experiences across projects.
- Host: GitHub
- URL: https://github.com/boost/tdd-action
- Owner: boost
- Created: 2024-10-15T22:40:44.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T02:54:36.000Z (3 months ago)
- Last Synced: 2024-11-11T17:45:39.165Z (2 months ago)
- Topics: github-actions
- Homepage:
- Size: 12.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TDD Feedback Action
This GitHub Action suite adds a Test-Driven Development (TDD) feedback question to new pull requests and stores the responses in a Google Sheet upon PR closure. It helps track TDD usage and developer experiences across projects.
## Features
- Automatically adds a TDD feedback question to new pull requests
- Collects responses when a pull request is closed
- Stores feedback data in a Google Sheet for easy analysis## Setup Instructions
### Make sure the Boost organisation has the correct secrets
In order to read and write from the [TDD Metrics Spreadsheet](https://docs.google.com/spreadsheets/d/1JxCmHpwnhe8vxGVAXP_vWxhfbDJQ4gZcpdmwVHK0tsM/edit?pli=1&gid=0#gid=0) the GitHub organistion or repository needs the following secrets:
- `GOOGLE_SHEETS_CREDENTIALS`
- `GOOGLE_SHEET_ID`These have been added at the Boost organisation level, so you shouldn't need to do anything for this to work. If you need them for any reason, they are also stored in 1Password.
### Create Workflow Files
1. Create a new file `.github/workflows/tdd-question.yml` in your repository with the following content:
```yaml
name: Add TDD Questionon:
pull_request:
types: [opened]jobs:
add-tdd-question:
if: github.event_name == 'pull_request' && github.event.action == 'opened'
runs-on: boost-eks-github-runners
steps:
- name: Add TDD Question
uses: boost/tdd-action/.github/actions/add-tdd-question@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
```2. Create a new file `.github/workflows/tdd-feedback-capture.yml` in your repository with the following content:
```yaml
name: Capture TDD Feedbackon:
pull_request:
types: [closed]jobs:
store-tdd-data:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: boost-eks-github-runnerssteps:
- name: Store TDD Data
uses: boost/tdd-action/.github/actions/store-tdd-data@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
google-credentials: ${{ secrets.GOOGLE_SHEETS_CREDENTIALS }}
sheet-id: ${{ secrets.TDD_SHEET_ID }}
```