Use repository_dispatch event to have control on when to generate a release by making an HTTP request, e.g.:
Github Workflow:
name: Release
on:
repository_dispatch:
types: [semantic-release]
jobs:
"use strict"; | |
const PR_NUMBER = "2454"; // pr number for master to production merge | |
const execSync = require("child_process").execSync; | |
const getCommitsUnderPrQuery = `gh pr view ${PR_NUMBER} --json "commits"`; | |
const commitsUnderPrQueryResponse = JSON.parse( | |
execSync(getCommitsUnderPrQuery, (error, stdout, stderr) => stdout).toString() |
"use strict"; | |
const AFTER_DATE = "2024-12-02"; | |
const MY_GITHUB_ID = "ravgeetdhillon"; | |
const REPOS = ["cloudanswers/designeradvantage-2"]; | |
const beautifyCommitObject = ({ | |
messageBody, | |
messageHeadline, | |
prNumber, |
Use repository_dispatch event to have control on when to generate a release by making an HTTP request, e.g.:
Github Workflow:
name: Release
on:
repository_dispatch:
types: [semantic-release]
jobs:
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://example.com/$1 [R,L] | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ | |
RewriteRule ^index\.html$ https://example.com/ [R=301,L] | |
<FilesMatch ".(jpg|jpeg|png|gif|ico|svg)$"> | |
Header set Cache-Control "max-age=7776000, public" | |
</FilesMatch> |
import requests | |
import os | |
def get_urls(content): | |
''' | |
Parses the css file and retrieves the font urls. | |
Parameters: | |
content (string): The data which needs to be parsed for the font urls. |
var ajax = new XMLHttpRequest(); | |
ajax.onreadystatechange = function() { | |
if (ajax.status == 200 && ajax.readyState == 4) { | |
var answer = document.createElement( 'html' ); | |
answer.innerHTML = ajax.responseText; | |
console.log(answer.querySelector('.language-python').innerHTML); | |
} | |
} |