From e128bd1c0e6b18c26075ef60b654c66b9042d2b6 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Tue, 10 Sep 2024 12:35:50 -0400 Subject: [PATCH] remove outdated items, remove all workflow triggers except for dispatch --- .github/ISSUE_TEMPLATE/bug_report.md | 33 ------------- .github/ISSUE_TEMPLATE/feature_request.md | 23 --------- .github/ISSUE_TEMPLATE/release.md | 10 ---- .github/workflows/bot-changelog.yml | 60 ----------------------- .github/workflows/changelog-existence.yml | 41 ---------------- .github/workflows/integration.yml | 14 ------ .github/workflows/jira-creation.yml | 26 ---------- .github/workflows/jira-label.yml | 27 ---------- .github/workflows/jira-transition.yml | 24 --------- .github/workflows/main.yml | 7 --- .github/workflows/stale.yml | 17 ------- .github/workflows/version-bump.yml | 2 - 12 files changed, 284 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/release.md delete mode 100644 .github/workflows/bot-changelog.yml delete mode 100644 .github/workflows/changelog-existence.yml delete mode 100644 .github/workflows/jira-creation.yml delete mode 100644 .github/workflows/jira-label.yml delete mode 100644 .github/workflows/jira-transition.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index edf110d77..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: Bug report -about: Report a bug or an issue you've found with dbt-redshift -title: '' -labels: bug, triage -assignees: '' - ---- - -### Describe the bug -A clear and concise description of what the bug is. What command did you run? What happened? - -### Steps To Reproduce -In as much detail as possible, please provide steps to reproduce the issue. Sample data that triggers the issue, example model code, etc is all very helpful here. - -### Expected behavior -A clear and concise description of what you expected to happen. - -### Screenshots and log output -If applicable, add screenshots or log output to help explain your problem. - -### System information -**The output of `dbt --version`:** -``` - -``` - -**The operating system you're using:** - -**The output of `python --version`:** - -### Additional context -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index ddce81ff6..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for dbt-redshift -title: '' -labels: enhancement, triage -assignees: '' - ---- - -### Describe the feature -A clear and concise description of what you want to happen. - -### Describe alternatives you've considered -A clear and concise description of any alternative solutions or features you've considered. - -### Additional context -Please include any other relevant context here. - -### Who will this benefit? -What kind of use case will this feature be useful for? Please be specific and provide examples, this will help us prioritize properly. - -### Are you interested in contributing this feature? -Let us know if you want to write some code, and how we can help. diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/ISSUE_TEMPLATE/release.md deleted file mode 100644 index 66776ce37..000000000 --- a/.github/ISSUE_TEMPLATE/release.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Release -about: Release a new version of dbt-redshift -title: '' -labels: release -assignees: '' - ---- - -### TBD diff --git a/.github/workflows/bot-changelog.yml b/.github/workflows/bot-changelog.yml deleted file mode 100644 index 8122ab8b4..000000000 --- a/.github/workflows/bot-changelog.yml +++ /dev/null @@ -1,60 +0,0 @@ -# **what?** -# When bots create a PR, this action will add a corresponding changie yaml file to that -# PR when a specific label is added. -# -# The file is created off a template: -# -# kind: -# body: -# time: -# custom: -# Author: -# PR: -# -# **why?** -# Automate changelog generation for more visability with automated bot PRs. -# -# **when?** -# Once a PR is created, label should be added to PR before or after creation. You can also -# manually trigger this by adding the appropriate label at any time. -# -# **how to add another bot?** -# Add the label and changie kind to the include matrix. That's it! -# - -name: Bot Changelog - -on: - pull_request: - # catch when the PR is opened with the label or when the label is added - types: [opened, labeled] - -permissions: - contents: write - pull-requests: read - -jobs: - generate_changelog: - strategy: - matrix: - include: - - label: "dependencies" - changie_kind: "Dependencies" - - label: "snyk" - changie_kind: "Security" - runs-on: ubuntu-latest - - steps: - - - name: Create and commit changelog on bot PR - if: "contains(github.event.pull_request.labels.*.name, ${{ matrix.label }})" - id: bot_changelog - uses: emmyoop/changie_bot@v1.0 - with: - GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} - commit_author_name: "Github Build Bot" - commit_author_email: "" - commit_message: "Add automated changelog yaml from template for bot PR" - changie_kind: ${{ matrix.changie_kind }} - label: ${{ matrix.label }} - custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n PR: ${{ github.event.pull_request.number }}\n" diff --git a/.github/workflows/changelog-existence.yml b/.github/workflows/changelog-existence.yml deleted file mode 100644 index 10b5a497a..000000000 --- a/.github/workflows/changelog-existence.yml +++ /dev/null @@ -1,41 +0,0 @@ -# **what?** -# Checks that a file has been committed under the /.changes directory -# as a new CHANGELOG entry. Cannot check for a specific filename as -# it is dynamically generated by change type and timestamp. -# This workflow should not require any secrets since it runs for PRs -# from forked repos. -# By default, secrets are not passed to workflows running from -# a forked repo. - -# **why?** -# Ensure code change gets reflected in the CHANGELOG. - -# **when?** -# This will run for all PRs going into main and *.latest. It will -# run when they are opened, reopened, when any label is added or removed -# and when new code is pushed to the branch. The action will then get -# skipped if the 'Skip Changelog' label is present is any of the labels. - -name: Check Changelog Entry - -on: - pull_request: - types: [opened, reopened, labeled, unlabeled, synchronize] - workflow_dispatch: - -defaults: - run: - shell: bash - -permissions: - contents: read - pull-requests: write - - -jobs: - changelog: - uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main - with: - changelog_comment: 'Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the [dbt-redshift contributing guide](https://github.com/dbt-labs/dbt-redshift/blob/main/CONTRIBUTING.MD).' - skip_label: 'Skip Changelog' - secrets: inherit # this is only acceptable because we own the action we're calling diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 14a8247d8..1969b3224 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -21,21 +21,7 @@ name: Adapter Integration Tests on: - # pushes to release branches - push: - branches: - - "main" - - "develop" - - "*.latest" - - "releases/*" - # all PRs, important to note that `pull_request_target` workflows - # will run in the context of the target branch of a PR - pull_request_target: - # manual trigger workflow_dispatch: - # run this once per night to ensure no regressions from latest dbt-core changes - schedule: - - cron: '0 5 * * *' # 5 UTC # explicitly turn off permissions for `GITHUB_TOKEN` permissions: read-all diff --git a/.github/workflows/jira-creation.yml b/.github/workflows/jira-creation.yml deleted file mode 100644 index c84e106a7..000000000 --- a/.github/workflows/jira-creation.yml +++ /dev/null @@ -1,26 +0,0 @@ -# **what?** -# Mirrors issues into Jira. Includes the information: title, -# GitHub Issue ID and URL - -# **why?** -# Jira is our tool for tracking and we need to see these issues in there - -# **when?** -# On issue creation or when an issue is labeled `Jira` - -name: Jira Issue Creation - -on: - issues: - types: [opened, labeled] - -permissions: - issues: write - -jobs: - call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-creation.yml@main - secrets: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} diff --git a/.github/workflows/jira-label.yml b/.github/workflows/jira-label.yml deleted file mode 100644 index fd533a170..000000000 --- a/.github/workflows/jira-label.yml +++ /dev/null @@ -1,27 +0,0 @@ -# **what?** -# Calls mirroring Jira label Action. Includes adding a new label -# to an existing issue or removing a label as well - -# **why?** -# Jira is our tool for tracking and we need to see these labels in there - -# **when?** -# On labels being added or removed from issues - -name: Jira Label Mirroring - -on: - issues: - types: [labeled, unlabeled] - -permissions: - issues: read - -jobs: - call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-label.yml@main - secrets: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - diff --git a/.github/workflows/jira-transition.yml b/.github/workflows/jira-transition.yml deleted file mode 100644 index 71273c7a9..000000000 --- a/.github/workflows/jira-transition.yml +++ /dev/null @@ -1,24 +0,0 @@ -# **what?** -# Transition a Jira issue to a new state -# Only supports these GitHub Issue transitions: -# closed, deleted, reopened - -# **why?** -# Jira needs to be kept up-to-date - -# **when?** -# On issue closing, deletion, reopened - -name: Jira Issue Transition - -on: - issues: - types: [closed, deleted, reopened] - -jobs: - call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-transition.yml@main - secrets: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 098c25a5e..35a25d3f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,13 +15,6 @@ name: Tests and Code Checks on: - push: - branches: - - "main" - - "develop" - - "*.latest" - - "releases/*" - pull_request: workflow_dispatch: permissions: read-all diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 2848ce8f7..000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Close stale issues and PRs' -on: - schedule: - - cron: "30 1 * * *" -jobs: - stale: - runs-on: ubuntu-latest - steps: - # pinned at v4 (https://github.com/actions/stale/releases/tag/v4.0.0) - - uses: actions/stale@cdf15f641adb27a71842045a94023bef6945e3aa - with: - stale-issue-message: "This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days." - stale-pr-message: "This PR has been marked as Stale because it has been open for 180 days with no activity. If you would like the PR to remain open, please remove the stale label or comment on the PR, or it will be closed in 7 days." - # mark issues/PRs stale when they haven't seen activity in 180 days - days-before-stale: 180 - # ignore checking issues with the following labels - exempt-issue-labels: "epic, discussion" \ No newline at end of file diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 2a8eb4498..4b2043f5f 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -26,8 +26,6 @@ on: description: 'Creates a draft PR to allow testing instead of committing to a branch' required: true default: 'true' - repository_dispatch: - types: [version-bump] jobs: bump: