INNER CODE UNIT · JavaScript

run

MatiPl01/react-native-sortables · .github/actions/labeler/index.js:105

async function run() {
  try {
    // Setup and validation
    const githubToken = validateEnvironment();
    const config = loadAndValidateConfig();
    const pr = context.payload.pull_request;

    console.log(`📝 Processing PR #${pr.number}: "${pr.title}"`);

    // Create GitHub client
    const octokit = getOctokit(githubToken);

    // Analyze PR and determine changes
    const { fileLabelInfos, labelsToAdd, labelsToRemove, titleLabelInfo } =
      await analyzePR(octokit, pr, config);

    // Apply changes
    await applyLabelChanges(octokit, labelsToAdd, labelsToRemove);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…