This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2002-2004 | |
* All rights reserved. | |
*/ | |
package com.atlassian.jira.mail; | |
import java.util.HashMap; | |
import java.util.Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Ken D: Uemura <[email protected]> on 6/1/2016. | |
* | |
* On Issue Update Event | |
* If Component is changed and only one component is assigned | |
* then re-assigns the issue to the Component Lead | |
* | |
* Tested with JIRA 6.4.11 | |
* Set this in Add-On -> Script Lisner -> Custom Listener | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
PARAMS: | |
text XML (In this gist, namespace needs to be 'http://www.w3.org/1999/xhtml') | |
path XPATH (So far tested with simple indexed lookup /html/body/table[3]) | |
RETURNS: | |
Array[][] (Table data) | |
Missing th/thead/tfoot support | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by kuemura on 6/1/2016. | |
* | |
* On Issue Update Event | |
* If Component is changed and only one component is assigned | |
* then re-assigns the issue to the Component Lead | |
*/ | |
import com.atlassian.crowd.embedded.api.User |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* On Issue Update Event | |
* If Component is changed and only one component is assigned | |
* then re-assigns the issue to the Component Lead | |
*/ | |
import com.atlassian.crowd.embedded.api.User | |
import com.atlassian.jira.bc.project.component.ProjectComponent | |
import com.atlassian.jira.component.ComponentAccessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import gerritlib.gerrit as gerrit | |
logging.basicConfig(level=logging.DEBUG) | |
message = """Gerrit review message | |
Links automatically becomes link http://www.google.com | |
But newlines need to be doubled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getFolderName() { | |
def array = pwd().split("/") | |
return array[array.length - 2]; | |
} | |
node(){ | |
stage 'Get Folder Name' | |
def foldername = getFolderName() | |
print "${foldername}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shlex | |
from subprocess import Popen, PIPE | |
def run_shell(cmd): | |
""" | |
Execute the external command and get its exitcode, stdout and stderr. | |
""" | |
args = shlex.split(cmd) | |
proc = Popen(args, stdout=PIPE, stderr=PIPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<h1>Hello world</h1> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LIST="cargo-edit \ | |
bat \ | |
zoxide \ | |
xcp \ | |
choose \ | |
dua-cli \ | |
exa \ | |
fd-find \ |