We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646b616 commit 60cd97dCopy full SHA for 60cd97d
lib/modifiers/summary/editArticleRef.js
@@ -0,0 +1,17 @@
1
+var mergeAtLevel = require('./mergeAtLevel');
2
+
3
+/**
4
+ Edit ref of an article
5
6
+ @param {Summary} summary
7
+ @param {String} level
8
+ @param {String} newRef
9
+ @return {Summary}
10
+*/
11
+function editArticleRef(summary, level, newRef) {
12
+ return mergeAtLevel(summary, level, {
13
+ ref: newRef
14
+ });
15
+}
16
17
+module.exports = editArticleRef;
lib/modifiers/summary/index.js
@@ -5,5 +5,6 @@ module.exports = {
unshiftArticle: require('./unshiftArticle'),
editPartTitle: require('./editPartTitle'),
- editArticleTitle: require('./editArticleTitle')
+ editArticleTitle: require('./editArticleTitle'),
+ editArticleRef: require('./editArticleRef')
};
0 commit comments