Revert "Merge pull request 'fix: gardener-poll.sh needs to file action issues (not call gardener-agent.sh directly) (#367)' (#474) from fix/issue-367 into main"

This reverts commit cbd52972f3, reversing
changes made to 0dd607c1bb.
This commit is contained in:
openhands 2026-03-21 11:00:48 +00:00
parent d7ca59dd2f
commit 38f9b29867
3 changed files with 27 additions and 51 deletions

View file

@ -4,9 +4,6 @@
# Usage: source this file, then call file_action_issue.
# Requires: codeberg_api() from lib/env.sh, jq, lib/secret-scan.sh
#
# build_formula_issue_body <formula_name> <model> <description> <source_script>
# Outputs a standard issue body with TOML frontmatter to stdout.
#
# file_action_issue <formula_name> <title> <body>
# Sets FILED_ISSUE_NUM on success.
# Returns: 0=created, 1=duplicate exists, 2=label not found, 3=API error, 4=secrets detected
@ -15,15 +12,6 @@
# shellcheck source=secret-scan.sh
source "$(dirname "${BASH_SOURCE[0]}")/secret-scan.sh"
# build_formula_issue_body <formula_name> <model> <description> <source_script>
# Builds a standard issue body with TOML frontmatter for formula-driven action issues.
# Outputs the body to stdout.
build_formula_issue_body() {
local formula_name="$1" model="$2" description="$3" source_script="$4"
printf -- '---\nformula: %s\nmodel: %s\n---\n\n%s\n\nFiled automatically by `%s`.' \
"$formula_name" "$model" "$description" "$source_script"
}
file_action_issue() {
local formula_name="$1" title="$2" body="$3"
FILED_ISSUE_NUM=""