diff --git a/.github/workflows/issue-migrator.yml b/.github/workflows/issue-migrator.yml new file mode 100644 index 000000000..c9e579b40 --- /dev/null +++ b/.github/workflows/issue-migrator.yml @@ -0,0 +1,27 @@ +name: Migrate Remote Plugin Issues + +on: + issues: + types: [labeled] + +permissions: + issues: write + +jobs: + PluginSplit: + if: startsWith(github.event.label.name, 'remote-plugin/') + runs-on: ubuntu-latest + steps: + - uses: bflad/action-migrate-issue@main + with: + source-issue-comment: | + This issue has been migrated to {target-issue-url} due to the [Packer Plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). + + Please follow the new issue for updates. + source-issue-skip-label-names: | + core + new-plugin-contribution + website + target-repository-name-prefix: 'packer-plugin-' + target-repository-name-prefix-label-prefix: 'remote-plugin/' + target-repository-github-token: ${{ secrets.PLUGIN_REPO_GITHUB_TOKEN }} diff --git a/.hashibot.hcl b/.hashibot.hcl deleted file mode 100644 index d58358af1..000000000 --- a/.hashibot.hcl +++ /dev/null @@ -1,17 +0,0 @@ -poll "label_issue_migrater" "remote_plugin_migrater" { - schedule = "0 20 * * * *" - new_owner = "hashicorp" - repo_prefix = "packer-plugin-" - label_prefix = "remote-plugin/" - excluded_label_prefixes = ["communicator/"] - excluded_labels = ["build", "core", "new-plugin-contribution", "website"] - - issue_header = <<-EOF - _This issue was originally opened by @${var.user} as ${var.repository}#${var.issue_number}. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._ - -
- - EOF - migrated_comment = "This issue has been automatically migrated to ${var.repository}#${var.issue_number} because it looks like an issue with that plugin. If you believe this is _not_ an issue with the plugin, please reply to ${var.repository}#${var.issue_number}." -} -