Read project identifier in asana service (#7)
This commit is contained in:
parent
a3f94738b6
commit
0f5172a820
@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
- Change the default value of subdomain to `unset` to have a well-formed URL.
|
- Change the default value of subdomain to `unset` to have a well-formed URL.
|
||||||
|
|
||||||
## [1.0.23] - 2019-03-28
|
## [1.1.0] - 2019-03-28
|
||||||
### Added
|
### Added
|
||||||
|
- Read project identifier from Asana project title
|
||||||
- Add support for meistertask.com
|
- Add support for meistertask.com
|
||||||
|
@ -17,7 +17,14 @@ export default {
|
|||||||
document
|
document
|
||||||
.querySelector(".ItemRow--focused textarea")
|
.querySelector(".ItemRow--focused textarea")
|
||||||
?.textContent?.trim() ||
|
?.textContent?.trim() ||
|
||||||
document.querySelector(".SingleTaskPane textarea")?.textContent?.trim()
|
document.querySelector(".SingleTaskPane textarea")?.textContent?.trim(),
|
||||||
|
projectId: document => {
|
||||||
|
const match = document
|
||||||
|
.querySelector(".ProjectPageHeader-projectName")
|
||||||
|
?.textContent?.trim()
|
||||||
|
?.match(/^\[(\w+)\]/)
|
||||||
|
return match && match[1]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"github-pr": {
|
"github-pr": {
|
||||||
|
Loading…
Reference in New Issue
Block a user