8000 feature/build-issue-label-history-model by fivetran-savage · Pull Request #85 · fivetran/dbt_github · GitHub
[go: up one dir, main page]

Skip to content

feature/build-issue-label-history-model - #85

Merged
fivetran-savage merged 5 commits into
mainfrom
feature/build-issue-label-history-model
Nov 5, 2026
Merged

fivetran-savage merged 5 commits into
mainfrom
feature/build-issue-label-history-model

Conversation

@fivetran-savage
Copy link
Copy Markdown
Contributor

PR Overview

Package version introduced in this PR:

  • 1.5.0

This PR addresses the following Issue/Feature(s):

Summary of changes:

  • Adds the github__issue_label_history end model, which tracks each period a label is applied to an issue or pull request, including when the label was added and removed and who added and removed it. Disabled by default.
  • Adds stg_github__issue_label_history source table to the package. Disabled by default.

Submission Checklist

  • Alignment meeting with the reviewer (if needed)
    • Timeline and validation requirements discussed
  • Provide validation details:
    • Validation Steps: Check for unintentional effects (e.g., add/run consistency & integrity tests)
    • Testing Instructions: Confirm the change addresses the issue(s)
    • Focus Areas: Complex logic or queries that need extra attention
  • Merge any relevant open PRs into this PR

Changelog

  • Draft changelog for PR
  • Final changelog for release review

@fivetran-savage fivetran-savage added the docs:ready Triggers the docs generator workflow. label Nov 3, 2026
@fivetran-data-model-bot fivetran-data-model-bot removed the docs:ready Triggers the docs generator workflow. label Nov 3, 2026
@fivetran-jamie fivetran-jamie left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome! Some doc comments that shouldn't block approval

Comment thread README.md
| [github__weekly_metrics](https://fivetran.github.io/dbt_github/#!/model/model.github.github__weekly_metrics) | Aggregates weekly repository activity to analyze sprint-level productivity, track week-over-week trends, and understand development patterns at the weekly cadence. <br></br>**Example Analytics Questions:**<ul><li>What is the weekly throughput of pull requests and issues by repository?</li><li>How do weekly development metrics trend over time?</li><li>Which weeks show the highest productivity in terms of PRs merged and issues resolved?</li></ul>|
| [github__monthly_metrics](https://fivetran.github.io/dbt_github/#!/model/model.github.github__monthly_metrics) | Summarizes monthly repository activity to track long-term development trends, measure team productivity over time, and identify seasonal patterns in contribution activity. <br></br>**Example Analytics Questions:**<ul><li>How do monthly pull request and issue volumes trend across repositories?</li><li>What is the month-over-month growth in development activity and code contributions?</li><li>Which months show the highest productivity and how does this align with roadmap milestones?</li></ul>|
| [github__quarterly_metrics](https://fivetran.github.io/dbt_github/#!/model/model.github.github__quarterly_metrics) | Provides quarterly repository performance metrics to support strategic planning, measure progress against OKRs, and understand high-level development trends by quarter. <br></br>**Example Analytics Questions:**<ul><li>What is the quarterly velocity of feature development and issue resolution by repository?</li><li>How do quarterly metrics align with product roadmap goals and release cycles?</li><li>Which quarters show the strongest team performance and code contribution activity?</li></ul>|
| [github__issue_label_history](https://fivetran.github.io/dbt_github/#!/model/model.github.github__issue_label_history) | Tracks each period a label is applied to an issue or pull request, including when the label was added and removed and who added and removed it. <br></br>**Example Analytics Questions:**<ul><li>How long do issues typically keep a given label, such as `needs triage` or `blocked`?</li><li>How often is a label removed and re-applied to the same issue?</li><li>Which contributors apply and remove labels most often?</li></ul>|
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the model count in the README?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, interesting...that wasn't caught by the data model builder. Will open a PR for that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Comment thread .changes/1.5.0.yml
Comment on lines +12 to +16
- '[stg_github__issue_label_history](https://fivetran.github.io/dbt_github/#!/model/model.github.stg_github__issue_label_history)'
change_type: New model
notes: Stages the `ISSUE_LABEL_HISTORY` source table.
- models:
- '[stg_github__issue_label_history_tmp](https://fivetran.github.io/dbt_github/#!/model/model.github.stg_github__issue_label_history_tmp)'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably combine these

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't they usually get their own entries?

@fivetran-savage fivetran-savage Nov 5, 2026 •
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're not consistent. Combined them.

Comment thread .changes/1.5.0.yml Outdated
for details.
- models:
- '[stg_github__issue_label_history](https://fivetran.github.io/dbt_github/#!/model/model.github.stg_github__issue_label_history)'
change_type: New model
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
change_type: New model
change_type: New staging model

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread .changes/1.5.0.yml Outdated
notes: Stages the `ISSUE_LABEL_HISTORY` source table.
- models:
- '[stg_github__issue_label_history_tmp](https://fivetran.github.io/dbt_github/#!/model/model.github.stg_github__issue_label_history_tmp)'
change_type: New model
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
change_type: New model
change_type: New staging model

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread .changes/1.5.0.yml Outdated
Comment on lines +20 to +24
- description: Adds the `github__using_issue_label_history` variable, which defaults
to `true`. Set it to `false` to disable the new issue label history models if you
don't sync the `ISSUE_LABEL_HISTORY` table. The models are also disabled when
`github__using_label` is `false`. See the [README](https://github.com/fivetran/dbt_github/#disable-models-for-non-existent-sources)
for details.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- description: Adds the `github__using_issue_label_history` variable, which defaults
to `true`. Set it to `false` to disable the new issue label history models if you
don't sync the `ISSUE_LABEL_HISTORY` table. The models are also disabled when
`github__using_label` is `false`. See the [README](https://github.com/fivetran/dbt_github/#disable-models-for-non-existent-sources)
for details.
- description: Adds the `github__using_issue_label_history` variable, which is dynamically configured in Quickstart and defaults
to `true` for self-managed dbt projects . Set it to `false` to disable the new issue label history models if you
don't sync the `ISSUE_LABEL_HISTORY` table. The models are also disabled when
`github__using_label` is `false`. See the [README](https://github.com/fivetran/dbt_github/#disable-models-for-non-existent-sources)
for details.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@fivetran-savage fivetran-savage added the docs:ready Triggers the docs generator workflow. label Nov 5, 2026
@fivetran-savage
fivetran-savage merged commit 677bbeb into main Nov 5, 2026
17 checks passed
@fivetran-savage
fivetran-savage deleted the feature/build-issue-label-history-model branch November 5, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs:ready Triggers the docs generator workflow.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0