Skip to content

Add automated label #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -72,15 +72,15 @@
- name: Ensure required labels exists on remote # noqa no-handler
ansible.builtin.include_tasks: "tasks/add_label.yml"
with_items:
- stackhpc-ci
- automated
- community-files
loop_control:
loop_var: label_name
when: community_copy.changed | bool

- name: Open pull request # noqa command-instead-of-shell no-handler
ansible.builtin.shell:
cmd: 'gh pr create -f -B {{ community_manifest.prefix | default("") }}{{ community_manifest.branch }} -l stackhpc-ci --label community-files'
cmd: 'gh pr create -f -B {{ community_manifest.prefix | default("") }}{{ community_manifest.branch }} -l automated --label community-files'
chdir: "{{ staging_path }}/{{ repository_manifest.name }}"
when: community_copy.changed | bool

8 changes: 4 additions & 4 deletions terraform/github/repositories.tf
Original file line number Diff line number Diff line change
@@ -33,12 +33,12 @@ resource "github_repository" "repositories" {
}
}

resource "github_issue_label" "stackhpc_ci_label" {
resource "github_issue_label" "automated_label" {
for_each = toset(flatten(values(var.repositories)))
repository = each.value
name = "stackhpc-ci"
color = "E6E2C0"
description = "Automated action performed by stackhpc-ci"
name = "automated"
color = "C4F2A5"
description = "Automated action performed by GitHub Actions"
}

resource "github_issue_label" "workflows_label" {