elastic/oblt-actions
Action declares a main entrypointBasename is uppercase README.md
SHA-256f6ebaa7d737141d11a9490ed89e8c1eed737b149a009214eeb209ca5690b60c8
Evidence
1# AI agent instructions for oblt-actions
2
3This file provides guidance to AI agents (Claude Code, GitHub Copilot, etc.) when working with code in this repository.
4
5## Meta instructions
6
7Important: Keep this file accurate and up to date. Update it immediately when (1) users give new instructions, (2) you find contradictions, or (3) new patterns or standards emerge. Treat t …
7:196… ntenance as a blocking, highest‑priority task that doesn’t need an explicit prompt.
8
9Note: This file is exempt from the “no new docs” rule below. Proactively edit and maintain this file as part of your duties.
10
11## Code Standards
12
13### Required before each commit
⋯6 lines
1name: release-drafter
2
3on:
4 push:
5 branches:
⋯12 lines
18 - uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
19 env:
20 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1import os
2import json
3import requests
4
5def main():
6 # Get environment variables
7 github_token = os.environ['GITHUB_TOKEN']
8 pr_number = int(os.environ['PR_NUMBER'])
9 repository = os.environ['REPOSITORY']
10 backports_url = os.environ['BACKPORTS_URL']
11 print(f"Using backports URL: {backports_url}")
12
13 # Define GitHub API headers
14 headers = {
15 'Authorization': f'token {github_token}',
16 'Accept': 'application/vnd.github.v3+json'
17 }
18
19 labels = []
20 labels_json = os.environ.get('PR_LABELS', '[]')
21
22 # If we have some JSON data, try to extract label names
23 if labels_json and labels_json != 'null':
24 try:
25 labels_data = json.loads(labels_json)
26 if isinstance(labels_data, list):
27 for item in labels_data:
28 if isinstance(item, dict) and 'name' in item:
29 …
33:64… PR events)
34 if not labels:
35 try:
36 url = f"https://api.github.com/repos/{repository}/issues/{pr_number}/labels"
37 response = requests.get(url, headers=headers)
38 if response.status_code == 200:
39 api_labels = response.json()
40 for item in api_labels:
41 if isinstance(item, dict) and 'name' in item:
42 …
No evidence locations were recorded for this file. Raw result