Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralfaro-dotcms committed Aug 30, 2024
1 parent 83e4551 commit 0cd3ef5
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/issue_comp_next-release-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,61 +17,3 @@ jobs:
- run: echo 'GitHub context'
env:
GITHUB_CONTEXT: ${{ toJson(github) }}

# - name: Check if QA not needed
# id: qa-not-needed-check
# if: github.event.action == 'edited'
# uses: actions/github-script@v7
# with:
# script: |
# const words = ['qa not needed', 'qa-not-needed'];
# const issue = context.payload.issue;
# const changes = context.payload.changes;
#
# function extractQANotNeededField(body) {
# const qaNotNeededLabel = 'QA not needed:';
# const lines = body.split('\n');
#
# for (const line of lines) {
# if (line.toLowerCase().startsWith(qaNotNeededLabel.toLowerCase())) {
# return line.replace(qaNotNeededLabel, '').trim();
# }
# }
#
# return null;
# }
#
# const actions = [];
# if (changes && changes.body && issue.body) {
# const oldBody = changes.body.from;
# const newBody = issue.body;
# console.log(`Old Body: [${oldBody}]`);
# console.log(`New Body: [${newBody}]`);
#
# const oldQANotNeeded = extractQANotNeededField(oldBody);
# const newQANotNeeded = extractQANotNeededField(newBody);
#
# console.log(`Old QA not needed: [${oldQANotNeeded}]`);
# console.log(`New QA not needed: [${newQANotNeeded}]`);
#
# if (newQANotNeeded && !oldQANotNeeded) {
# actions.push({
# action: 'QA_NOT_NEEDED',
# qa_not_needed: newQANotNeeded,
# });
# }
# }
#
# console.log(`Actions: ${JSON.stringify(actions)}`);
# console.log(`Issue: ${JSON.stringify(issue)}`);
# console.log(`Changes: ${JSON.stringify(changes)}`);
#
# console.log(`GitHub context: ${JSON.stringify(context)}`);
#
# console.log(`GitHub context payload: ${JSON.stringify(context.payload)}`);
#
# console.log(`GitHub context payload issue: ${JSON.stringify(context.payload.issue)}`);
#
# console.log(`GitHub context payload issue body: ${JSON.stringify(context.payload.issue.body)}`);
#
# console.log(`GitHub context payload issue changes: ${

0 comments on commit 0cd3ef5

Please sign in to comment.